list_image_filters.ListImageFiltersTestJSON failure (no attribute image2_id)

Bug #1168586 reported by John Griffith on 2013-04-13
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
High
Sean Dague

Bug Description

From run: http://logs.openstack.org/26896/1/check/gate-tempest-devstack-vm-postgres-full/12307/console.html

2013-04-12 23:29:06.535 | ======================================================================
2013-04-12 23:29:06.535 | ERROR: test suite for <class 'tempest.tests.compute.images.test_list_image_filters.ListImageFiltersTestJSON'>
2013-04-12 23:29:06.535 | ----------------------------------------------------------------------
2013-04-12 23:29:06.535 | Traceback (most recent call last):
2013-04-12 23:29:06.535 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
2013-04-12 23:29:06.535 | self.setUp()
2013-04-12 23:29:06.535 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
2013-04-12 23:29:06.535 | self.setupContext(ancestor)
2013-04-12 23:29:06.535 | File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext
2013-04-12 23:29:06.535 | try_run(context, names)
2013-04-12 23:29:06.535 | File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
2013-04-12 23:29:06.536 | return func()
2013-04-12 23:29:06.536 | File "/opt/stack/new/tempest/tempest/tests/compute/images/test_list_image_filters.py", line 70, in setUpClass
2013-04-12 23:29:06.536 | cls.client.delete_image(cls.image2_id)
2013-04-12 23:29:06.536 | AttributeError: type object 'ListImageFiltersTestJSON' has no attribute 'image2_id'

Full output available here:
    http://paste.openstack.org/show/35935/

summary: - tempest/postgres test_list_image_filters failure
+ list_image_filters failure no attribute image2_id
summary: - list_image_filters failure no attribute image2_id
+ list_image_filters.ListImageFiltersTestJSON failure (no attribute
+ image2_id)
Sean Dague (sdague) wrote :

There is very clearly a code bug on cleanup here, trying to figure out if this is going to be quickly eliminated by fixtures, or if we should fix it in tree before then.

Changed in tempest:
status: New → Confirmed
importance: Undecided → High
milestone: none → havana-2

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

Changed in tempest:
assignee: nobody → Sean Dague (sdague)
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/31834
Committed: http://github.com/openstack/tempest/commit/d62bf1c66a3832ed8dba0fed88dc319002a984b9
Submitter: Jenkins
Branch: master

commit d62bf1c66a3832ed8dba0fed88dc319002a984b9
Author: Sean Dague <email address hidden>
Date: Wed Jun 5 14:36:25 2013 -0400

    add create_image_from_server to base class for auto cleanup

    this test's cleanup logic was fragile enough that it caused additional
    breaks when it fell over, leaving resources around. Create a
    create_image_from_server as an equiv of create_server to ensure
    that images are auto cleaned up at the end of the run, or if we
    fail.

    Added logging for exception if found during clear_images

    Added logging if we failed in setupClass

    Fixes bug #1168586

    Change-Id: I1cbd904a71eb81926195c3e7894003fe5016b12e

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers