Images not deleted after failure in test_Images.py tests

Bug #938923 reported by Donald Ngo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Medium
Donald Ngo

Bug Description

There is no teardown method in the ImageTest class to cleanup images and servers that were created. These images and servers are left orphaned after a failure in the test.

Revision history for this message
Jay Pipes (jaypipes) wrote :

There is no tearDownClass because there are no images created in the setUpClass method. Test methods that create images must clean up after themselves.

Each test method (such as test_create_delete_image() should be changed to use the following strategy:

    def test_blah(self):
        try:
            # Create servers and/or images
            # Test what needs to be tested
        finally:
            # Delete servers and images as needed

Changed in tempest:
status: New → Triaged
importance: Undecided → Medium
milestone: none → essex-4
tags: added: side-effects
tags: added: compute
Donald Ngo (donald-ngo)
Changed in tempest:
assignee: nobody → Donald Ngo (donald-ngo)
status: Triaged → In Progress
Changed in tempest:
status: In Progress → Invalid
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.