Comment 13 for bug 1267326

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/69369
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=06d37cfbcf387fac74f558a2c6a1c66c33b6d9f2
Submitter: Jenkins
Branch: master

commit 06d37cfbcf387fac74f558a2c6a1c66c33b6d9f2
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": [
      {"status": "deleted", "name": "backup-1-tempest-438772029",
       "deleted": false, ..},
      {"status": "active", "name": "backup-2-tempest-2111479443",
       "deleted": false, ..},

    To avoid this situation, this patch adds the status 'active' to the
    calls which get the backup list.

    Change-Id: I59966534a8eb1430604cada1f64b8c8df46a5f17
    Closes-Bug: #1267326