Bug #3004
bootstrapped initial monitor can't find its own keyring with relative paths
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
I ran the following sequence of commands, which I sourced from vstart (while extracting the ceph.conf):
monmaptool --create --add mon.a 192.168.106.225:6789 ./ceph-authtool --create-keyring --gen-key --name=mon. mon.keyring ./ceph-authtool --gen-key --name=client.admin --set-uid=0 --cap mon "allow *" --cap osd "allow *" --cap mds "allow" mon.keyring ./ceph-mon --mkfs -i a --public-addr 192.168.106.225:6789 --monmap mon.map --mon-data dev/mon.a --keyring mon.keyring
Then on trying to actually start the monitor, I get this at the end of the log:
./ceph-mon -i a --public-addr 192.168.106.225:6789 --mon-data dev/mon.a --log-file out/mon.a.log --debug-mon 20 --debug-auth 20
2012-08-20 16:37:12.988139 7f8fb8a31780 10 mon.a@-1(probing) e0 loading initial keyring to bootstrap authentication for mkfs 2012-08-20 16:37:12.988148 7f8fb8a31780 20 store(/home/gregf/ceph/src/dev/mon.a) reading at off 0 of 137 2012-08-20 16:37:12.988151 7f8fb8a31780 15 store(/home/gregf/ceph/src/dev/mon.a) get_bl mkfs/keyring = 137 bytes 2012-08-20 16:37:12.988336 7f8fb8a31780 -1 auth: error reading file: dev/mon.a/keyring: can't open dev/mon.a/keyring: (2) No such file or directory 2012-08-20 16:37:12.988344 7f8fb8a31780 -1 mon.a@-1(probing) e0 unable to load initial keyring /etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin
It's definitely there:
gregf@kai:~/ceph/src [(no branch)]$ ls -lha dev/mon.a/keyring -rw------- 1 gregf gregf 55 Aug 20 16:13 dev/mon.a/keyring gregf@kai:~/ceph/src [(no branch)]$ date Mon Aug 20 16:31:43 PDT 2012 gregf@kai:~/ceph/src [(no branch)]$ ./ceph-authtool dev/mon.a/keyring --list [mon.] key = AQAiwzJQUHRFDxAAnkSAN400aCLZp21xjSqlyw==
It works if I use "/home/gregf/ceph/src/dev/mon.a" instead of "dev/mon.a".
History
#1 Updated by Greg Farnum over 11 years ago
- Category set to Monitor
- Target version set to v0.51
#2 Updated by Sage Weil about 11 years ago
- Status changed from New to Resolved