tempest.api.orchestration.stacks.test_nova_keypair_resources failed in tearDownClass

Bug #1355666 reported by Zhikun Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Zhikun Liu
Nominated for Icehouse by Ihar Hrachyshka

Bug Description

http://logs.openstack.org/64/106664/4/check/check-tempest-dsvm-postgres-full-icehouse/879e7ca/console.html#_2014-08-12_04_39_20_761

2014-08-12 04:39:20.761 | ==============================
2014-08-12 04:39:20.761 | Failed 1 tests - output below:
2014-08-12 04:39:20.761 | ==============================
2014-08-12 04:39:20.761 |
2014-08-12 04:39:20.761 | tearDownClass (tempest.api.orchestration.stacks.test_nova_keypair_resources.NovaKeyPairResourcesAWSTest)
2014-08-12 04:39:20.761 | --------------------------------------------------------------------------------------------------------
2014-08-12 04:39:20.761 |
2014-08-12 04:39:20.761 | Captured traceback:
2014-08-12 04:39:20.761 | ~~~~~~~~~~~~~~~~~~~
2014-08-12 04:39:20.761 | Traceback (most recent call last):
2014-08-12 04:39:20.761 | File "tempest/api/orchestration/base.py", line 144, in tearDownClass
2014-08-12 04:39:20.761 | cls._clear_stacks()
2014-08-12 04:39:20.762 | File "tempest/api/orchestration/base.py", line 89, in _clear_stacks
2014-08-12 04:39:20.762 | stack_identifier, 'DELETE_COMPLETE')
2014-08-12 04:39:20.762 | File "tempest/services/orchestration/json/orchestration_client.py", line 185, in wait_for_stack_status
2014-08-12 04:39:20.762 | resp, body = self.get_stack(stack_identifier)
2014-08-12 04:39:20.762 | File "tempest/services/orchestration/json/orchestration_client.py", line 108, in get_stack
2014-08-12 04:39:20.762 | resp, body = self.get(url)
2014-08-12 04:39:20.762 | File "tempest/common/rest_client.py", line 221, in get
2014-08-12 04:39:20.762 | return self.request('GET', url, extra_headers, headers)
2014-08-12 04:39:20.762 | File "tempest/common/rest_client.py", line 430, in request
2014-08-12 04:39:20.762 | resp, resp_body)
2014-08-12 04:39:20.762 | File "tempest/common/rest_client.py", line 520, in _error_checker
2014-08-12 04:39:20.763 | raise exceptions.IdentityError(message)
2014-08-12 04:39:20.763 | IdentityError: Got identity error
2014-08-12 04:39:20.763 | Details: The Key (heat-1987453190_1) could not be found.

cls._clear_stacks() should also deal with 'NotFound' for wait_for_stack_status

Zhikun Liu (zhikunliu)
Changed in tempest:
assignee: nobody → Zhi Kun Liu (zhikunliu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

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

Reviewed: https://review.openstack.org/113466
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=03aec1decc66fcb259edb8abac114a5fac17d7ab
Submitter: Jenkins
Branch: master

commit 03aec1decc66fcb259edb8abac114a5fac17d7ab
Author: Zhi Kun Liu <email address hidden>
Date: Tue Aug 12 16:57:05 2014 +0800

    Fix "NotFound" error in _clear_stacks()

    _clear_stacks() will raise "NotFound" exception if stack was
    deleted before wait its status. This patch adds a try block
    to fix the problem.

    Change-Id: I29d4e443e5f355dbba188ccebe930f9401f3ccea
    Closes-Bug: #1355666

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

The fix is not enough. It failed in tearDownClass here with the same error: http://logs.openstack.org/30/124030/1/check/check-tempest-dsvm-postgres-full/4c052d7/logs/testr_results.html.gz (Icehouse but probably Juno is affected too).

Changed in tempest:
status: Fix Released → Confirmed
Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :

The bug itself is already fixed in 2 years ago, and Ihar's log was lost because we spent long time.
So it is nice to close this bug report at this time and open another one when facing it again.

Changed in tempest:
status: Confirmed → 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.