clean a user's default project if the project has been deleted

Bug #1523369 reported by Davanum Srinivas (DIMS)
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Wishlist
Anthony Washington

Bug Description

It is possible to create new keystone user with default tenant, but after tenant was deleted user continue contain info about non existing tenant.

Step to reproduce:

1. keystone tenant-create --name ten
     'ten' created successfully

2. keystone user-create --name user --tenant ten
    user created successfully with 'ten' tenantId

3. keystone tenant-delete ten

4. keystone user-get user
    show non existing tenantId

5. keystone tenant-get 'tenant-id'
No tenant with a name or ID of 'tenant-id' exists.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Boris Bobrov (bbobrov) wrote :

the same happens with v3 api and `openstack` cli.

Revision history for this message
Steve Martinelli (stevemar) wrote :

sounds like you're suggesting that the user's default project should be cleaned up if that project is deleted?

Revision history for this message
lei zhang (zhang-lei) wrote :

i think it's need to be cleaned up, it has deleted project, but the relationship of project and user is still exist.
And i find when i have clicked "Modify Users" in "Identity Project" page to add the user to other project, keystone user-get user, it still shows non existing projectID .
Only when "Modify Users" has been clicked in "Identity User" page to choose other tenant, it has changed.

Revision history for this message
zhangjialong (zhangjl) wrote :

In my view, it`s better to clean up the relationship of project and user

Changed in keystone:
assignee: nobody → Kalaswan Datta (kalaswan-datta)
Revision history for this message
Kalaswan Datta (kalaswan-datta) wrote :

Hi,

I am working on this issue.
Main objective of this bug is to remove the information of the project from user once the project is deleted.
i will submit a path for the same.

Changed in keystone:
status: New → In Progress
Revision history for this message
Kalaswan Datta (kalaswan-datta) wrote :

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

Changed in keystone:
importance: Undecided → Medium
milestone: none → mitaka-3
Revision history for this message
Steve Martinelli (stevemar) wrote :

setting this to wishlist and removing mitake-3 milestone. we've lived with this behaviour for many releases, and it shouldn't hold up another release. looking forward to the fix!

summary: - keystone user with non existing default tenant
+ clean a user's default project if the project has been deleted
Changed in keystone:
milestone: mitaka-3 → none
importance: Medium → Wishlist
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/288403

Changed in keystone:
assignee: Kalaswan Datta (kalaswan-datta) → Henry Nash (henry-nash)
Changed in keystone:
assignee: Henry Nash (henry-nash) → Kalaswan Datta (kalaswan-datta)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in keystone:
assignee: Kalaswan Datta (kalaswan-datta) → Henry Nash (henry-nash)
Henry Nash (henry-nash)
Changed in keystone:
assignee: Henry Nash (henry-nash) → Kalaswan Datta (kalaswan-datta)
Changed in keystone:
assignee: Kalaswan Datta (kalaswan-datta) → Henry Nash (henry-nash)
Changed in keystone:
assignee: Henry Nash (henry-nash) → Kalaswan Datta (kalaswan-datta)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/288403
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=6a3c21cb3eb2e113e321c7641ca33f1db34779eb
Submitter: Jenkins
Branch: master

commit 6a3c21cb3eb2e113e321c7641ca33f1db34779eb
Author: Henry Nash <email address hidden>
Date: Fri Mar 4 11:31:44 2016 +0000

    Expose not clearing of user default project on project delete

    If we delete a project, we currently fail to clean up the fact
    that users may list that project as their default project. This
    patch provides tests that exposes this issue.

    Change-Id: I15393efe704b73363cbfb6e70b09622bfc597bdc
    Partial-Bug: #1523369

Changed in keystone:
assignee: Kalaswan Datta (kalaswan-datta) → Henry Nash (henry-nash)
Changed in keystone:
assignee: Henry Nash (henry-nash) → Kalaswan Datta (kalaswan-datta)
Revision history for this message
Lance Bragstad (lbragstad) wrote :

Automatically unassigning due to inactivity.

Changed in keystone:
assignee: Kalaswan Datta (kalaswan-datta) → nobody
status: In Progress → Triaged
tags: added: user-experience
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/305315
Reason: we no longer create stable drivers

Changed in keystone:
assignee: nobody → Anthony Washington (anthony-washington)
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/429047

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

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

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

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

Changed in keystone:
assignee: Anthony Washington (anthony-washington) → Lance Bragstad (lbragstad)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/429047
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=51d5597df729158d15b71e2ba80ab103df5d55f8
Submitter: Jenkins
Branch: master

commit 51d5597df729158d15b71e2ba80ab103df5d55f8
Author: Kalaswan Datta <email address hidden>
Date: Wed Jan 20 00:55:29 2016 -0500

    Clear the project ID from user information

    Currently when a project is deleted, the project ID details
    still exists in user information. After this fix, when a project
    is deleted the default project ID in user
    information will be cleared.

    Closes-Bug: #1523369
    Signed-off-by: Kalaswan Datta <email address hidden>

    Change-Id: I3db0cf27d3cfdf6cf7c5bb34ec1b27ef80c139f4

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
assignee: Lance Bragstad (lbragstad) → Anthony Washington (anthony-washington)
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 12.0.0.0b1

This issue was fixed in the openstack/keystone 12.0.0.0b1 development milestone.

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

Change abandoned by Lance Bragstad (<email address hidden>) on branch: master
Review: https://review.openstack.org/277707
Reason: This was picked up by another contributor and merged [0]. Original authorship was maintained. Thanks for the patch! Abandoning this review since it is no longer required and the original issue has been fixed.

[0] https://review.openstack.org/#/c/429047/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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