[system tests] Need to add wait until volume is deleted

Bug #1457367 reported by Andrey Sledzinskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Andrey Sledzinskiy

Bug Description

We need to wait here until status will be deleted - https://github.com/stackforge/fuel-qa/blob/master/fuelweb_test/helpers/os_actions.py#L204
Because of that we can face problems in stat collecting test like that - resource was collected in process of deletion that caused failure

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
    self._testFunc()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/6.1.system_test.centos.thread_3/fuelweb_test/helpers/decorators.py", line 70, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/6.1.system_test.centos.thread_3/fuelweb_test/tests/test_ceph.py", line 359, in check_openstack_stat
    'tenant', 'keystone_user'])
  File "/home/jenkins/workspace/6.1.system_test.centos.thread_3/fuelweb_test/helpers/checkers.py", line 936, in check_oswl_stat
    operation][resource]))
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/asserts.py", line 163, in assert_true
    raise ASSERTION_ERROR(message)
AssertionError: number of resources in current 0, expected is 0

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Andrey Sledzinskiy (asledzinskiy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (master)

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

Changed in fuel:
status: New → In Progress
Changed in fuel:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/184973
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=7be958c13cca1b3c297e7f654ff3a103d3919011
Submitter: Jenkins
Branch: master

commit 7be958c13cca1b3c297e7f654ff3a103d3919011
Author: asledzinskiy <email address hidden>
Date: Fri May 22 11:30:02 2015 +0300

    Add wait for volume to be deleted

    - Add method to os_actions in which we wait until volume will
    be deleted

    Change-Id: I8d72d615e7dab5fd560a14ac91472212c4f312d1
    Closes-Bug: #1457367

Changed in fuel:
status: In Progress → Fix Committed
Changed in fuel:
status: Fix Committed → Fix Released
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.