delete domain raise 500 error if the domain contains idp

Bug #1760809 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
wangxiyuan

Bug Description

How to reproduce:
1. create domain
   openstack domain create domainA
2. create a idp to the domainA
   openstack identity provider create idpA --domain domainA
3. disable the domainA and then try to delete it.
   openstack domain set domainA --disable
   openstack domain delete domainA

Expect result:
The domainA and its related resource will be deleted

Actual result:
Keystone raise 500 internal error

reproduce example:
http://paste.openstack.org/show/718241/

wangxiyuan (wangxiyuan)
Changed in keystone:
assignee: nobody → wangxiyuan (wangxiyuan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/558488

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/558489

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by wangxiyuan (<email address hidden>) on branch: master
Review: https://review.openstack.org/558488

Revision history for this message
Lance Bragstad (lbragstad) wrote :

I was able to recreate this locally. Setting this to high since it is likely a case for deployments using shadow users, domains, and identity providers.

Changed in keystone:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/558489
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=42cf675c40311f5a483df19ff0aa258643d356e3
Submitter: Zuul
Branch: master

commit 42cf675c40311f5a483df19ff0aa258643d356e3
Author: wangxiyuan <email address hidden>
Date: Tue Apr 3 19:45:10 2018 +0800

    Fix 500 error when deleting domain

    If there are idps in a domain, when users try to delete the
    domain, 500 interal error will raise.

    This patch added a new callback event to clean up the related
    idps.

    Closes-bug: #1760809
    Change-Id: I37c8745e4509f69aaa659b130ccbdfe51cf6a1b8

Changed in keystone:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 14.0.0.0b2

This issue was fixed in the openstack/keystone 14.0.0.0b2 development milestone.

Changed in keystone:
milestone: none → rocky-2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.