Browse Source

Merge "Fix KeyError exc in volumes_client"

changes/48/744048/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
4237716010
2 changed files with 11 additions and 1 deletions
  1. +10
    -0
      releasenotes/notes/Fix-KeyError-bug-in-v3-volumes_client-ff5d9b894f2257c8.yaml
  2. +1
    -1
      tempest/lib/services/volume/v3/volumes_client.py

+ 10
- 0
releasenotes/notes/Fix-KeyError-bug-in-v3-volumes_client-ff5d9b894f2257c8.yaml View File

@@ -0,0 +1,10 @@
---
fixes:
- |
is_resource_deleted method of v3 volumes_client might have returned
a KeyError exception due to an incorrect accessing of a volume id
in the case the volume was in error_deleting state.
incorrect code - volume['id']
correct code - volume['volume']['id']
More details about the issue can be found at
https://bugs.launchpad.net/tempest/+bug/1887980

+ 1
- 1
tempest/lib/services/volume/v3/volumes_client.py View File

@@ -219,7 +219,7 @@ class VolumesClient(base_client.BaseClient):
if volume["volume"]["status"] == "error_deleting":
raise lib_exc.DeleteErrorException(
"Volume %s failed to delete and is in error_deleting status" %
volume['id'])
volume['volume']['id'])
return False

@property


Loading…
Cancel
Save