diff --git a/cinder/volume/volume_utils.py b/cinder/volume/volume_utils.py index 831b137b9a1..174f00be560 100644 --- a/cinder/volume/volume_utils.py +++ b/cinder/volume/volume_utils.py @@ -996,6 +996,7 @@ def delete_encryption_key(context: context.RequestContext, "cinder's service context.", encryption_key_id) conf = CONF ks_loading.register_auth_conf_options(conf, 'keystone_authtoken') + ks_loading.load_auth_from_conf_options(conf, 'keystone_authtoken') service_context = keystone_password.KeystonePassword( password=conf.keystone_authtoken.password, auth_url=conf.keystone_authtoken.auth_url, diff --git a/releasenotes/notes/bug-1946483-cryptic-error-in-backup-fe03939577867e0a.yaml b/releasenotes/notes/bug-1946483-cryptic-error-in-backup-fe03939577867e0a.yaml new file mode 100644 index 00000000000..53173c00399 --- /dev/null +++ b/releasenotes/notes/bug-1946483-cryptic-error-in-backup-fe03939577867e0a.yaml @@ -0,0 +1,9 @@ +--- +fixes: + - | + `Bug #1946483 `_: Fixed + an issue where admin user fails to delete backup of an encrypted + volume with an ``oslo_config.cfg.NoSuchOptError`` error in logs + of cinder-backup service. + With this fix cloud admin is able to delete backups of encrypted volumes + created by other users if Barbican API policies allow it.