Race with changing image status when snapshotting

Bug #1258635 reported by Bob Ball
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Bob Ball

Bug Description

{code}
19:18:16 ======================================================================
19:18:16 FAIL: setUpClass (tempest.api.compute.images.test_list_image_filters.ListImageFiltersTestJSON)
19:18:16 setUpClass (tempest.api.compute.images.test_list_image_filters.ListImageFiltersTestJSON)
19:18:16 ----------------------------------------------------------------------
19:18:16 _StringException: Traceback (most recent call last):
19:18:16 File "tempest/api/compute/images/test_list_image_filters.py", line 61, in setUpClass
19:18:16 resp, body = cls.create_image_from_server(cls.server1['id'])
19:18:16 File "tempest/api/compute/base.py", line 172, in create_image_from_server
19:18:16 server_id, name)
19:18:16 File "tempest/services/compute/json/images_client.py", line 49, in create_image
19:18:16 post_body, self.headers)
19:18:16 File "tempest/common/rest_client.py", line 302, in post
19:18:16 return self.request('POST', url, headers, body)
19:18:16 File "tempest/common/rest_client.py", line 436, in request
19:18:16 resp, resp_body)
19:18:16 File "tempest/common/rest_client.py", line 491, in _error_checker
19:18:16 raise exceptions.Conflict(resp_body)
19:18:16 Conflict: An object with that identifier already exists
19:18:16 Details: {u'conflictingRequest': {u'message': u"Cannot 'createImage' while instance is in task_state image_uploading", u'code': 409}}
{code}

This is a tempest bug - but the test creates a server, starts a snapshot and then waits for the server to have the "ACTIVE" state. There is waiting for the image to have finished uploading - but the instance may not have been returned to the "ACTIVE" state immediately.

Changed in tempest:
assignee: nobody → Bob Ball (bob-ball)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/60604
Committed: http://github.com/openstack/tempest/commit/621e460c4effd3575630ae35c75df3cae28a262b
Submitter: Jenkins
Branch: master

commit 621e460c4effd3575630ae35c75df3cae28a262b
Author: Bob Ball <email address hidden>
Date: Fri Dec 6 19:53:43 2013 +0000

    Race condition in ListImageFilters tests

    The server may not have moved back to ACTIVE state for
    a short period after the image has been successfully
    uploaded - so wait for the server to be ACTIVE
    before continuing with the tests

    Change-Id: I2d471c83d902a408004a4b2ccb8b42fdfcd764b0
    Closes-bug: 1258635

Changed in tempest:
status: In Progress → Fix Released
Bob Ball (bob-ball)
no longer affects: nova
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.