Fix deletion of network quotas
Network quotas could be deleted after deletion of project. This caused the cleanup to fail as network quotas have to be deleted before the deletion of project. This fix makes sure that network quotas are deleted before the deletion of project. Change-Id: I8576e2c6f1ae6dc90850dd3d8eade7c10942e413
This commit is contained in:
parent
4bc12aad2e
commit
97b841130d
@ -1039,6 +1039,8 @@ def get_project_associated_cleanup_services():
|
||||
project_associated_services.append(NovaQuotaService)
|
||||
if IS_CINDER:
|
||||
project_associated_services.append(VolumeQuotaService)
|
||||
if IS_NEUTRON:
|
||||
project_associated_services.append(NetworkQuotaService)
|
||||
return project_associated_services
|
||||
|
||||
|
||||
@ -1067,7 +1069,6 @@ def get_resource_cleanup_services():
|
||||
resource_cleanup_services.append(NetworkService)
|
||||
resource_cleanup_services.append(NetworkSecGroupService)
|
||||
resource_cleanup_services.append(NetworkSubnetPoolsService)
|
||||
resource_cleanup_services.append(NetworkQuotaService)
|
||||
if IS_CINDER:
|
||||
resource_cleanup_services.append(SnapshotService)
|
||||
resource_cleanup_services.append(VolumeService)
|
||||
|
Loading…
x
Reference in New Issue
Block a user