rhos-infra / shade_janitor

Utility based on shade to select and cleanup resources from CI runs in a tenant
GNU General Public License v3.0
1 stars 6 forks source link

Fix janitor compability with OSP >= 13 #51

Closed bregman-arie closed 5 years ago

bregman-arie commented 5 years ago

Shade method "list_router_interfaces" is broken. It filter ports by using the following device owners:

'network:router_interface' 'network:router_interface_distributed' 'network:ha_router_replicated_interface' 'network:router_gateway'

While in newer cloud releases, there are new types like: "network:router_centralized_snat". For this type, the method will fail and we will not be able to remove the interfaces.

Also, some clouds include default admin entities which the user isn't suppose to remove.

bregman-arie commented 5 years ago

I'm taking that as a +2 :D Merging to unblock testing.