fail test with not found in delete

Bug #1737100 reported by Rico Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
In Progress
Low
Rico Lin

Bug Description

Fail to delete stack when race condition with actually delete and cleanup jobs
We should ignore not found when in deletion test case

http://logs.openstack.org/94/525394/1/gate/legacy-heatclient-dsvm-functional/f5f2554/job-output.txt.gz#_2017-12-07_17_40_45_062960

2017-12-07 17:40:45.018686 | primary | 2017-12-07 17:40:45.018 | FAIL: heatclient.tests.functional.osc.v1.test_stack.OpenStackClientStackTest.test_stack_delete
2017-12-07 17:40:45.021738 | primary | 2017-12-07 17:40:45.021 | tags: worker-3
2017-12-07 17:40:45.023514 | primary | 2017-12-07 17:40:45.023 | ----------------------------------------------------------------------
2017-12-07 17:40:45.025194 | primary | 2017-12-07 17:40:45.024 | pythonlogging:'': {{{
2017-12-07 17:40:45.027475 | primary | 2017-12-07 17:40:45.026 | 2017-12-07 17:40:38,754 8333 WARNING [tempest.lib.cli.output_parser] skipping invalid table line: 2017-12-07 17:40:33Z [tempest-test-stack-1575655090]: CREATE_IN_PROGRESS Stack CREATE started
2017-12-07 17:40:45.029089 | primary | 2017-12-07 17:40:45.028 | 2017-12-07 17:40:38,754 8333 WARNING [tempest.lib.cli.output_parser] skipping invalid table line: 2017-12-07 17:40:33Z [tempest-test-stack-1575655090.test_resource]: CREATE_IN_PROGRESS state changed
2017-12-07 17:40:45.030702 | primary | 2017-12-07 17:40:45.030 | 2017-12-07 17:40:38,755 8333 WARNING [tempest.lib.cli.output_parser] skipping invalid table line: 2017-12-07 17:40:34Z [tempest-test-stack-1575655090.test_resource]: CREATE_COMPLETE state changed
2017-12-07 17:40:45.032867 | primary | 2017-12-07 17:40:45.032 | 2017-12-07 17:40:38,755 8333 WARNING [tempest.lib.cli.output_parser] skipping invalid table line: 2017-12-07 17:40:34Z [tempest-test-stack-1575655090]: CREATE_COMPLETE Stack CREATE completed successfully
2017-12-07 17:40:45.034480 | primary | 2017-12-07 17:40:45.034 | }}}
2017-12-07 17:40:45.037069 | primary | 2017-12-07 17:40:45.036 |
2017-12-07 17:40:45.038638 | primary | 2017-12-07 17:40:45.038 | traceback-1: {{{
2017-12-07 17:40:45.040610 | primary | 2017-12-07 17:40:45.040 | Traceback (most recent call last):
2017-12-07 17:40:45.042387 | primary | 2017-12-07 17:40:45.041 | File "heatclient/tests/functional/osc/v1/base.py", line 84, in _stack_delete
2017-12-07 17:40:45.044204 | primary | 2017-12-07 17:40:45.043 | self.openstack(cmd)
2017-12-07 17:40:45.046609 | primary | 2017-12-07 17:40:45.045 | File "heatclient/tests/functional/osc/v1/base.py", line 40, in openstack
2017-12-07 17:40:45.049739 | primary | 2017-12-07 17:40:45.047 | return self.clients.openstack(*args, **kwargs)
2017-12-07 17:40:45.049864 | primary | 2017-12-07 17:40:45.048 | File "/opt/stack/new/python-heatclient/.tox/functional/local/lib/python2.7/site-packages/tempest/lib/cli/base.py", line 357, in openstack
2017-12-07 17:40:45.050723 | primary | 2017-12-07 17:40:45.050 | 'openstack', action, flags, params, fail_ok, merge_stderr)
2017-12-07 17:40:45.052636 | primary | 2017-12-07 17:40:45.052 | File "/opt/stack/new/python-heatclient/.tox/functional/local/lib/python2.7/site-packages/tempest/lib/cli/base.py", line 396, in cmd_with_auth
2017-12-07 17:40:45.054346 | primary | 2017-12-07 17:40:45.054 | self.cli_dir, prefix=self.prefix)
2017-12-07 17:40:45.056492 | primary | 2017-12-07 17:40:45.056 | File "/opt/stack/new/python-heatclient/.tox/functional/local/lib/python2.7/site-packages/tempest/lib/cli/base.py", line 71, in execute
2017-12-07 17:40:45.058145 | primary | 2017-12-07 17:40:45.057 | result_err)
2017-12-07 17:40:45.059857 | primary | 2017-12-07 17:40:45.059 | tempest.lib.exceptions.CommandFailed: Command '['/opt/stack/new/python-heatclient/.tox/functional/bin/openstack', '--os-username', 'admin', '--os-tenant-name', 'admin', '--os-password', 'secretadmin', '--os-auth-url', 'http://15.184.67.153/identity', 'stack', 'delete', 'c924a552-7b7b-4d65-9a4a-5713c4e637a4', '--yes']' returned non-zero exit status 1.
2017-12-07 17:40:45.061328 | primary | 2017-12-07 17:40:45.061 | stdout:
2017-12-07 17:40:45.062960 | primary | 2017-12-07 17:40:45.062 | Stack not found: c924a552-7b7b-4d65-9a4a-5713c4e637a4
2017-12-07 17:40:45.064648 | primary | 2017-12-07 17:40:45.064 |
2017-12-07 17:40:45.066205 | primary | 2017-12-07 17:40:45.065 | stderr:
2017-12-07 17:40:45.068177 | primary | 2017-12-07 17:40:45.067 | Unable to delete 1 of the 1 stacks.
2017-12-07 17:40:45.069679 | primary | 2017-12-07 17:40:45.069 | }}}

Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: none → 1.14.0
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

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

Changed in python-heatclient:
status: Triaged → In Progress
Rico Lin (rico-lin)
description: updated
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.14.0 → 1.15.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.15.0 → 1.16.0
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.