Bug #4952
closedceph-create-keys talked to mon, got back non-JSON
0%
Description
netmass in IRC today reported a failure to create the client.admin key with ceph-deploy; he found
a crash from ceph-create-keys that included an untrapped JSON exception:
PythonArgs: ['/usr/sbin/ceph-create-keys', '--cluster=ceph', '-i', 'ceph01']
Traceback:
Traceback (most recent call last):
File "/usr/sbin/ceph-create-keys", line 228, in <module>
main()
File "/usr/sbin/ceph-create-keys", line 199, in main
wait_for_quorum(cluster=args.cluster, mon_id=args.id)
File "/usr/sbin/ceph-create-keys", line 37, in wait_for_quorum
data = json.loads(out)
File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I don't know what the monitor said, but IWBNI:
1) ceph-create-keys trapped that exception, and
2) logged something about what went wrong, and
3) perhaps added that to the retry loop conditions