volume_path_str = str(volume_path)
if (auth_meta is None) or (not auth_meta['volumes']):
- log.warn("deauthorized called for already-removed auth"
+ log.warning("deauthorized called for already-removed auth"
"ID '{auth_id}' for volume ID '{volume}'".format(
auth_id=auth_id, volume=volume_path.volume_id
))
return
if volume_path_str not in auth_meta['volumes']:
- log.warn("deauthorized called for already-removed auth"
+ log.warning("deauthorized called for already-removed auth"
"ID '{auth_id}' for volume ID '{volume}'".format(
auth_id=auth_id, volume=volume_path.volume_id
))
vol_meta = self._volume_metadata_get(volume_path)
if (vol_meta is None) or (auth_id not in vol_meta['auths']):
- log.warn("deauthorized called for already-removed auth"
+ log.warning("deauthorized called for already-removed auth"
"ID '{auth_id}' for volume ID '{volume}'".format(
auth_id=auth_id, volume=volume_path.volume_id
))
try:
self.fs.rmdir(self._snapshot_path(dir_path, snapshot_name))
except cephfs.ObjectNotFound:
- log.warn("Snapshot was already gone: {0}".format(snapshot_name))
+ log.warning("Snapshot was already gone: {0}".format(snapshot_name))
def create_snapshot_volume(self, volume_path, snapshot_name, mode=0o755):
self._snapshot_create(self._get_path(volume_path), snapshot_name, mode)
try:
ioctx.remove_object(object_name)
except rados.ObjectNotFound:
- log.warn("Object '{0}' was already removed".format(object_name))
+ log.warning("Object '{0}' was already removed".format(object_name))
finally:
ioctx.close()