[
{
"msg": "Failed to apply export: export FSAL user_id must be 'nfs.my-nfs.1'",
"state": "error"
},
{
"msg": "Failed to apply export: export FSAL user_id must be 'nfs.my-nfs.2'",
"state": "error"
}
]
it is a bit of hassle to know which export's update/creation failed as the dict contains
no info about the export(like pseudo path), therefore with something like below, it is
much better to figure out which export block needs correction
[
{
"pseudo": "cephfs1",
"msg": "Failed to apply export: export FSAL user_id must be 'nfs.my-nfs.1'",
"state": "error"
},
{
"pseudo": "cephfs2",
"msg": "Failed to apply export: export FSAL user_id must be 'nfs.my-nfs.2'",
"state": "error"
}
]
Fixes: https://tracker.ceph.com/issues/62626
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
except Exception as ex:
msg = f'Failed to apply export: {ex}'
log.exception(msg)
- return {"state": "error", "msg": msg, "exception": ex}
+ return {"state": "error", "msg": msg, "exception": ex,
+ "pseudo": export['pseudo']}
def _update_user_id(
self,