The race condition caused by image created_at break registry v2 api test cases

Bug #1279753 reported by Zhi Yan Liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Zhi Yan Liu
Havana
Fix Released
Undecided
Unassigned

Bug Description

For now there are two cases I got:

1. glance.tests.unit.v2.test_registry_api.TestRegistryRPC.test_get_index_sort_status_desc

http://logs.openstack.org/79/67079/3/gate/gate-glance-python27/2b0dea1/console.html#_2014-02-13_06_27_19_371

2. glance.tests.unit.v2.test_registry_api.TestRegistryRPC.test_get_index_sort_default_created_at_desc

http://logs.openstack.org/79/67079/3/gate/gate-glance-python27/348ad19/console.html#_2014-02-11_18_42_13_276

It is the same reason as https://bugs.launchpad.net/glance/+bug/1272136 fixed.

Zhi Yan Liu (lzy-dev)
Changed in glance:
assignee: nobody → Zhi Yan Liu (lzy-dev)
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :
Changed in glance:
status: New → In Progress
Revision history for this message
Sean Dague (sdague) wrote :
Changed in glance:
importance: High → Critical
milestone: none → icehouse-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/74386
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=31bcc97214358482e9ccc035189ef70ced1afc21
Submitter: Jenkins
Branch: master

commit 31bcc97214358482e9ccc035189ef70ced1afc21
Author: Zhi Yan Liu <email address hidden>
Date: Fri Jan 31 19:08:39 2014 +0800

    Provide explicit image create value in Registry v2 API test

    Assign an explicit created_at datetime value to image db fixtures,
    it be used to fixes race condition in Registry v2 API test cases.

    Closes-Bug: #1279753
    Change-Id: Ia1957e8c024f81eeaa3c0bc094dd62db1be52d07
    Signed-off-by: Zhi Yan Liu <email address hidden>

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-rc1 → 2014.1
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to glance (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/89617

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (stable/havana)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: stable/havana
Review: https://review.openstack.org/89617
Reason: No one is really interested in fixing sporadic failures in havana branches.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/havana)

Reviewed: https://review.openstack.org/89617
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=05c2043805ffd518a53d95717d4cf3eedacb0730
Submitter: Jenkins
Branch: stable/havana

commit 05c2043805ffd518a53d95717d4cf3eedacb0730
Author: Zhi Yan Liu <email address hidden>
Date: Fri Jan 31 19:08:39 2014 +0800

    Provide explicit image create value in Registry v2 API test

    Assign an explicit created_at datetime value to image db fixtures,
    it be used to fixes race condition in Registry v2 API test cases.

    Closes-Bug: #1279753
    Change-Id: Ia1957e8c024f81eeaa3c0bc094dd62db1be52d07
    Signed-off-by: Zhi Yan Liu <email address hidden>
    (cherry picked from commit 31bcc97214358482e9ccc035189ef70ced1afc21)

tags: added: in-stable-havana
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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