should networks be removed from database when deleting the owning tenant?

Asked by James Luhrsen

Hi there,

I'm trying to understand this better.

So, I create a new tenant T1 and then a new non-shared network N1 associated with that tenant.

Next I just delete the tenant T1. In the quantum database I still see that N1 is there.

Maybe this is because we don't want to delete a "shared" network when the owning tenant is deleted?

One problem I came upon was that I created one tenant with 10 networks (as a test). I removed the tenant
to re-run the test and it failed because I could not create any more networks because 10 is the default max
quota for networks and there are still 10 networks in the quantum database.

One could create 10 tenants and 1 network per tenant, then after removing the tenants for whatever
reason, end up in the same state.

Maybe we should be removing any non-shared networks associated with the tenant that is going for
deletion.

Thanks in advance,
JamO

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
yong sheng gong
Solved:
Last query:
Last reply:
Revision history for this message
Best yong sheng gong (gongysh) said :
#1

removing the tenant is the behavior of keystone. currently nova and quantum just have tenant ids stored in their own dbs.
the deletion of tenants in keystone will not be told to nova and quantum. So after deletion a tenant, you must use admin to deleted related resources in quantum and nova.

Revision history for this message
James Luhrsen (jamo) said :
#2

Thanks yong sheng gong, that solved my question.