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 protected]> 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 ** Changed in: tempest Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1267326 Title: test_create_backup fails due to unexpected image number Status in OpenStack Image Registry and Delivery Service (Glance): New Status in Tempest: Fix Released Bug description: test_create_backup failed with the following traceback: Traceback (most recent call last): File "tempest/api/compute/servers/test_server_actions.py", line 298, in test_create_backup self.assertEqual(2, len(image_list)) File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 324, in assertEqual self.assertThat(observed, matcher, message) File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 414, in assertThat raise MismatchError(matchee, matcher, mismatch, verbose) MismatchError: 2 != 3 This test expects the gotten backup image number should be 2 which is limited with a rotation. However, we could get 3 images and the test failed. The log are * http://logs.openstack.org/65/63365/5/check/check-tempest-dsvm-postgres-full/996c8f9/ * http://logs.openstack.org/65/63365/5/gate/gate-tempest-dsvm-postgres-full/4880d61/ To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1267326/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

