Repository navigation
Improve robustness and reliability of the volume backup API conformance check script - #802
Conversation
Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
|
Test with healthy backup service: Test with absent backup service: |
mbuechse
left a comment
There was a problem hiding this comment.
This seems to be effective. The only thing that I would do in addition: if at the beginning there are backups that can't be deleted, and the error message says that cinder-backup is missing, then the test should already be considered an overall fail.
Co-authored-by: Matthias Büchse <[email protected]> Signed-off-by: Markus Hentsch <[email protected]>
Co-authored-by: Matthias Büchse <[email protected]> Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
I made the backup deletion failure due to the absence of the cinder-backup service fatal now. The script will now already abort during the initial cleanup phase accordingly: |
Signed-off-by: Markus Hentsch <[email protected]>
Signed-off-by: Markus Hentsch <[email protected]>
According to research in #795, Cinder will create volume backup resources even if the volume backup service is disabled/down/absent but such resources cannot be deleted by the normal user and will be stuck in error state. This made the script get stuck and not even reach the volume cleanup.
Currently it does not seem possible for a non-admin user to determine the presence and health of the volume backup service before attempting to create backups.
This PR aims to increase the reliability and robustness of the corresponding check script to handle misconfigured clouds a bit more gracefully:
assertfor error handling which would be omitted bypython3 -OCloses #795