Stress Test - cleanUp() removing all test resources as an admin

Bug #1273254 reported by Julien Leloup
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Julien Leloup

Bug Description

After a successfull run of a stress test using "run_stress.py", a cleanUp() method is called, even after the call of tearDown() implemented in the stress test.

This cleanUp() method is using an admin manager in order to delete all resources available on the OpenStack it is running : all servers (using "all_tenants" paremeter), snapshots, volumes, key pairs, ...

Even it this behaviour make sense on a private OpenStack installation dedicated to testing (like a local devstack), this behaviour is potentially dangerous when running a stress test on a shared OpenStack used by multiple teams, even isolated on different tenants.

I propose to have a new parameter in tempest.conf called "full_clean_stack" in the [stress test] section, with a default value set to False :
- True : cleanUp() is called at the end of the stress test run in order to have the actual behaviour (get a pristine environment)
- False : cleanUp() is not called and only the tearDown() implemented in the stress test will be used to remove onlt test resources, leaving other resources untouched.

Note : this defect is slightly linked to this one "https://bugs.launchpad.net/tempest/+bug/1273245". If the community think the new parameter I propose here should be the same that I propose in this other ticket, it seems relevant to have only one parameter for both issues for simplicity sake even if the meaning of these parameters is not exactly the same.

Marc Koderer (m-koderer)
Changed in tempest:
status: New → Confirmed
Changed in tempest:
assignee: nobody → Julien Leloup (julien-llp)
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/73274

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

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

commit a5ee542bc03697f56a6d6f495aa2465b96ab01b3
Author: Julien Leloup <julien.leloup@3ds.com>
Date: Thu Feb 13 14:29:02 2014 +0100

    cleanUp() removing all test resources as an admin

    Add a parameter in tempest.conf "full_clean_stack" to
    allow/prevent the use of cleanup() method at the end
    of a stress test run.

    This is mandatory to use stress tests in a multi-user
    environment since the actual cleanup() is designed to
    remove every object of every tenant (and thus will
    impact other users on the same openstack)

    Change-Id: I42dc9592617aeeca9660f670940ecbf50b6108ab
    Closes-Bug: #1273254

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