test_purge test fails on gate-heat-dsvm-functional-convg-mysql-lbaasv1

Bug #1570398 reported by Oleksii Chuprykov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Low
Steven Hardy

Bug Description

 Captured traceback:
 ~~~~~~~~~~~~~~~~~~~
     Traceback (most recent call last):
       File "/opt/stack/new/heat/heat_integrationtests/functional/test_purge.py", line 47, in test_purge
         self.assertNotIn(stack_identifier.split('/')[1], stacks)
       File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertNotIn
         self.assertThat(haystack, matcher, message)
       File "/opt/stack/new/heat/.tox/integration/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
         raise mismatch_error
     testtools.matchers._impl.MismatchError:
[...]
matches Contains(u'0e6e8497-77d1-4b5f-90af-948d1ad76c14')

http://logs.openstack.org/45/252945/4/check/gate-heat-dsvm-functional-convg-mysql-lbaasv1/1609815/console.html#_2016-04-13_15_08_07_673

Revision history for this message
Thomas Herve (therve) wrote :

The stack we're trying to purge is not purge, so it's not a race with other tests, but within the test itself. It looks like we're trying to purge the stack too quickly after deleting it. Maybe a simple timing issue, but it's weird we've not seen it until now.

description: updated
Changed in heat:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/332500

Changed in heat:
assignee: nobody → Steve Baker (steve-stevebaker)
status: Confirmed → In Progress
Changed in heat:
milestone: none → newton-2
Changed in heat:
assignee: Steve Baker (steve-stevebaker) → Steven Hardy (shardy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/332500
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=cefd3d08895432e60a35e70b7981a951275cb988
Submitter: Jenkins
Branch: master

commit cefd3d08895432e60a35e70b7981a951275cb988
Author: Steve Baker <email address hidden>
Date: Wed Jun 22 10:42:43 2016 +1200

    Add a sleep after delete before purging

    heat-manage purge_deleted 0 might not purge deleted stacks which are
    less than a second old, this is a cause of gate failures.

    Change-Id: Ie95370354aa0534483730ef1ce93f46d004931d8
    Closes-Bug: 1570398

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/heat 7.0.0.0b2

This issue was fixed in the openstack/heat 7.0.0.0b2 development milestone.

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.