Unable to delete domain with users in it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Colleen Murphy | ||
Newton |
Won't Fix
|
High
|
Unassigned | ||
Ocata |
Fix Committed
|
High
|
Colleen Murphy | ||
Pike |
Fix Released
|
High
|
Colleen Murphy |
Bug Description
Attempting to delete a domain which contains users and projects may yield an UnexpectedError similiar to this
Sep 21 19:37:17 vagrant-
Sep 21 19:37:17 vagrant-
Steps to reproduce:
1. Install devstack
2. create a domain 'foo'
openstack domain create foo
3. create a user in domain 'foo'
openstack user create --password equifax --domain foo foo_user
4. create a project in domain 'foo'
openstack project create --domain foo foo_project
5. enable domain user 'foo_user' access to project 'foo_project'
openstack role add --user foo_user --project foo_project admin
6. now disable domain 'foo'
openstack domain set --disable foo
7. attempt to delete domain 'foo' will yield an expected error mentioned above
openstack domain delete foo
This was introduced in: https:/
Changed in keystone: | |
status: | New → Confirmed |
Changed in keystone: | |
importance: | Undecided → High |
Changed in keystone: | |
assignee: | nobody → Samuel de Medeiros Queiroz (samueldmq) |
summary: |
- Unable to delete domain with projects in it + Unable to delete domain with users in it |
Changed in keystone: | |
status: | Confirmed → In Progress |
description: | updated |
Changed in keystone: | |
assignee: | Samuel de Medeiros Queiroz (samueldmq) → CHARLES WANG (charleswang007) |
Changed in keystone: | |
milestone: | none → queens-rc1 |
While the error message is ugly (should not 500 the server) the behavior is intentional: we put a referential constraint on there to keep from accidentally deleting a load of data if the user accidentally deletes the domain: you have to disable the domain first, and then delete it for the same reason.