aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
AgeCommit message (Collapse)AuthorFilesLines
2015-12-28Support for removing hanging portsViktor Tikkanen1-41/+41
Sometimes we have situations when all the routers are deleted but there are still ports with network:router_gateway device owner. Such ports can be deleted only after clearing the device owner information. update_neutron_port() function is added into functest_utils.py and taken into use in clean_openstack.py. Change-Id: I1c9ba2ac499edecec99849b5e895be0248ffd84f Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2015-12-24Fix: do not remove network/router created by functest preparationgrakiss1-2/+2
Change-Id: I08bc4b2228162b2b064e5f90b2e5c29994ab77c8 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2015-12-22Use repos_dir env variable in all Functest scriptsjose.lausuch1-4/+7
JIRA: FUNCTEST-90 This way, we remove the 'functest repo' input parameter on the python scripts call and we make it simpler using the available repos_dir env variable which points to /home/opnfv/repos Change-Id: I7d74bf1bc8d89f8f14397fcb9dafc22ee1482f84 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-22Add more compass defaults to clean_openstackjose.lausuch1-2/+2
Change-Id: I5a2f95ee0502c61eb96ec8b52d2a5631517a62d0 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-22Wait for floatingips to be released in clean_openstack scriptjose.lausuch1-0/+10
Change-Id: I4d4a6866aa93d05729f625f4dffc1138cecffb16 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-21Move 'wait for instances to be terminated' after deleting them when cleaning ↵jose.lausuch1-14/+13
openstack Change-Id: I0efc8a151357d15003bb3953874b5d4d0f5803dc Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-18Add cinder check to support NoneType objectjose.lausuch1-1/+1
Change-Id: Ic8606479b8f5ea28cd8884414a6f4a3b76685107 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-18Add more defaults to clean_openstack scriptjose.lausuch1-1/+2
Change-Id: Iefc43e919aa461a849bc81b953533dfc291b8a85 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-18Adding more robust check to delete a port in clean_openstack.jose.lausuch1-4/+13
Change-Id: I87ec537cde0b8ef8fd8d11aa327e93087f2125c4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-18Fix bug clean_openstack if the function return a Nonemeimei1-5/+12
Change-Id: Ia9257742193526f4293ffc26e05d5590493d5a4f Signed-off-by: meimei <meimei@huawei.com>
2015-12-18fix bug of cleaning the openstack env, the tenant"service" cannot be deletedmeimei1-1/+1
Signed-off-by: meimei <meimei@huawei.com> Change-Id: I351ee985027b26686aa2cd9eddc52daed3e37a0f
2015-12-17Add debug information for ports in clean_openstackjose.lausuch1-1/+8
Change-Id: I3e7788c36971b132ab685dd55600a449aa1d5128 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-17Change print statement to logger.debug for the separator in clean_openstackjose.lausuch1-1/+1
Change-Id: I947c11d6d9e0fedf14c9250832137ed2aa699d0e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-17Fix bug clean_openstack if there are no users and tenants.jose.lausuch1-0/+8
Change-Id: If750bfa3d9a090e8554d62b49907ac6d873d18e4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-17Fix bug clean_openstack if there are no networks.jose.lausuch1-0/+4
Change-Id: I0acbfb68142f138d1f866bf40d708bf762de2e1b Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-14OpenStack cleanup scriptjose.lausuch1-0/+331
This is needed in case any test case doesn't clean what it creates in openstack. (This has been happening sometimes for Tempest, for example) This script will remove: - nova instances - glance images - cinder volumes - networks/subnets/ports - routers - floating ips - security groups - users and tenants (not admin) It won't remove the defaults. Change-Id: Ie09a5ad481fc3d1b92f124362aea6906665a1629 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>