Clean orphan security groups 65/68365/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 18 Aug 2019 14:12:37 +0000 (16:12 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 18 Aug 2019 15:12:51 +0000 (17:12 +0200)
commit929cc63e66b8c33a85d57653b4c4b9aa5a9fbe6a
tree6d9cc5396e8671262c9178272457fffec7d920e0
parent99ff405fc6bfc4cc79f7a7e3da7c7779b2f13f1e
Clean orphan security groups

It removes all security groups which are not owned by a project.
This approach seems suitable as it works even if dynamic accounts
(tempest and rally). All other OpenStack resources are still
removed by the underlying framework.

It lists all orphan security groups in use as debug to avoid
misunderstanding the testcase results (it could happen if cloud admin
removes accounts without cleaning the virtual machines).

Change-Id: I033d96e077b4277d59233a3de4ca6d41ed91f743
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 1e36927d4f17775c3f3ca3201b36e153ff9fd0da)
functest/core/singlevm.py
functest/utils/env.py