cephfs-shell: AttributeError when undefined an conf opt is attemptted to read
conf_get() from pybind/cephfs/cephfs.pyx returns None when passed argument is not present as config file option which in turn leads to AttributeError.
shell.debug = get_bool_vals_for_boolopts(cephfs.\ conf_get('debug_shell')
This happens because get_bool_vals_for_boolopts() accesses as args assuming that it'll be string which is not that the case when arg is undefined in Ceph.
def get_bool_vals_for_boolopts(val): if val.lower() in ['true', 'yes']: return True elif val.lower() in ['false', 'no']: return False else: return val