The intent was to allow "no fsid" configurations when only one
conf file named 'ceph.conf' was present, but the code has a bug
in that ceph-osd --show-config-value will return a default all-0
uuid. Treat 'all-0' as we were treating 'None'.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
:return: The fsid or raises Error.
"""
fsid = get_conf_with_default(cluster=cluster, variable='fsid')
- if fsid is None:
+ # uuids from boost always default to 'the empty uuid'
+ if fsid == '00000000-0000-0000-0000-000000000000':
raise Error('getting cluster uuid from configuration failed')
return fsid.lower()