From b4132dfc260ee2d510f49448b09af51fcc3cc700 Mon Sep 17 00:00:00 2001 From: Praveen Yalagandula Date: Sat, 1 Aug 2015 06:36:55 +0000 Subject: [PATCH] Delete Neutron FWaaS/LBaaS objs before Nova VMs In one implementation of LBaaS, VMs are created to implement a given LB pool/vip. If those VMs are deleted before deletion of the corresponding pool/vip, then the LBaaS service will perceive it as failure of VMs and creates more VMs for high availability. So, it is safer to delete the LBaaS/FWaaS objects before deleting the VMs. Change-Id: I837de3573e6ce7372413dfb080859e13096438c6 --- ospurge/ospurge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ospurge/ospurge.py b/ospurge/ospurge.py index 946933a..92df85a 100755 --- a/ospurge/ospurge.py +++ b/ospurge/ospurge.py @@ -86,8 +86,6 @@ NOT_AUTHORIZED = 6 RESOURCES_CLASSES = ['CinderSnapshots', 'CinderBackups', - 'NovaServers', - 'NeutronFloatingIps', 'NeutronFireWall', 'NeutronFireWallPolicy', 'NeutronFireWallRule', @@ -95,6 +93,8 @@ RESOURCES_CLASSES = ['CinderSnapshots', 'NeutronLbVip', 'NeutronLbHealthMonitor', 'NeutronLbPool', + 'NovaServers', + 'NeutronFloatingIps', 'NeutronMeteringLabel', 'NeutronInterfaces', 'NeutronRouters',