quota = int(fs_handle.getxattr(src_path, 'ceph.quota.max_bytes').decode('utf-8'))
except cephfs.NoData:
pass
+ except cephfs.ObjectNotFound:
+ log.info('set_quota_on_clone(): getxattr failed because source path '
+ f'"{src_path}" has gone missing')
+ raise
if quota is not None:
try:
fs_handle.setxattr(dst_path, 'ceph.quota.max_bytes', str(quota).encode('utf-8'), 0)
except cephfs.InvalidValue:
raise VolumeException(-errno.EINVAL, "invalid size specified: '{0}'".format(quota))
+ except cephfs.ObjectNotFound:
+ log.info('set_quota_on_clone(): getxattr failed because destination path '
+ f'"{dst_path}" has gone missing')
+ raise
except cephfs.Error as e:
raise VolumeException(-e.args[0], e.args[1])
quota_files = int(fs_handle.getxattr(src_path, 'ceph.quota.max_files').decode('utf-8'))
except cephfs.NoData:
pass
+ except cephfs.ObjectNotFound:
+ log.info('set_quota_on_clone(): getxattr failed because source path '
+ f'"{src_path}" has gone missing')
+ raise
if quota_files is not None:
try:
fs_handle.setxattr(dst_path, 'ceph.quota.max_files', str(quota_files).encode('utf-8'), 0)
except cephfs.InvalidValue:
raise VolumeException(-errno.EINVAL, "invalid file count specified: '{0}'".format(quota_files))
+ except cephfs.ObjectNotFound:
+ log.info('set_quota_on_clone(): getxattr failed because destination path '
+ f'"{dst_path}" has gone missing')
+ raise
except cephfs.Error as e:
raise VolumeException(-e.args[0], e.args[1])