How to get the list of the items rally/tempest creates during a test?

Asked by Murali Krishna Kanagala

When Rally/Tempest tests are run they create a lot of items items like instances, volumes, users, networks, routers etc . in a cloud. Some of these items will be left out in case of any failures . I am trying to get the list of those items to do a manual cleanup and have a plan to script it. Can someone help me getting this information? Thank you!

Question information

Language:
English Edit question
Status:
Answered
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrey Kurilin (andreykurilin) said :
#1

Hi!
Tempest(Rally verify too, since it uses Tempest) doesn't support cleanup.:) There is only stress cleanup, which cleans everything(all resources, even none test related resources) - https://github.com/openstack/tempest/blob/f4c63c4e79c99ca159578ee6c91fa47c27230cb1/tempest/stress/tools/cleanup.py

Rally task(benchmarks) cleans all resources created while testing. If it doesn't clean anything, it can mean 2 things:
- Something gone wrong while cleanup(openstack service cann't remove resource). In this case we can't do anything
- Something we missed in our cleanup mechanism. In this case you should report a bug and we will try to fix our cleanup.

Revision history for this message
Boris Pavlovic (boris-42) said :
#2

Actually we are working on disaster cleanup in case of hard failures. It allows to cleanup all resources from the cloud in case of hard failures of openstanck or rally.

Can you help with this problem?

Provide an answer of your own, or ask Murali Krishna Kanagala for more information if necessary.

To post a message you must log in.