The test creates 3 backups with the rotation 2 and checks that
2 backups exist with getting its image list. test_create_backup
fails sometimes due to the existence of 3 backups.
Glance v1 delete_image API changes an image's status to 'deleted'
then the deleted flag to 'true'. If getting a list between the
status change and the delete flag change, we can get a list including
the deleting backup also like the following:
Reviewed: https:/ /review. openstack. org/69369 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=06d37cfbcf3 87fac74f558a2c6 a1c66c33b6d9f2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 06d37cfbcf387fa c74f558a2c6a1c6 6c33b6d9f2
Author: Ken'ichi Ohmichi <email address hidden>
Date: Tue Jan 28 07:55:46 2014 +0900
Specify 'active' status for deleting situations
The test creates 3 backups with the rotation 2 and checks that
2 backups exist with getting its image list. test_create_backup
fails sometimes due to the existence of 3 backups.
Glance v1 delete_image API changes an image's status to 'deleted'
then the deleted flag to 'true'. If getting a list between the
status change and the delete flag change, we can get a list including
the deleting backup also like the following:
{"images": [ 1-tempest- 438772029" , 2-tempest- 2111479443" ,
{"status": "deleted", "name": "backup-
"deleted": false, ..},
{"status": "active", "name": "backup-
"deleted": false, ..},
To avoid this situation, this patch adds the status 'active' to the
calls which get the backup list.
Change-Id: I59966534a8eb14 30604cada1f64b8 c8df46a5f17
Closes-Bug: #1267326