Cannot set the default project for the User V3

Bug #1205520 reported by Lin Hua Cheng
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Medium
Dirk Mueller
python-keystoneclient
Fix Released
High
Lin Hua Cheng

Bug Description

The code implementation is passing the attribute to Keystone as "project_id"..

https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v3/users.py#L46

    def create(self, name, domain=None, project=None, password=None,
               email=None, description=None, enabled=True):
        return super(UserManager, self).create(
            name=name,
            domain_id=base.getid(domain),
            project_id=base.getid(project),
            password=password,
            email=email,
            description=description,
            enabled=enabled)

According to identity-api spec (https://github.com/openstack/identity-api/blob/master/openstack-identity-api/v3/src/markdown/identity-api-v3.md). it should be passed as "default_project_id".

Changed in python-keystoneclient:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

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

Changed in python-keystoneclient:
status: New → In Progress
Dolph Mathews (dolph)
Changed in python-keystoneclient:
importance: Undecided → High
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Looks like the fix is in python-keystoneclient, but I'll mark it as confirmed here just to verify that it's been fixed later.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → havana-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/38893
Committed: http://github.com/openstack/python-keystoneclient/commit/267f2129161cbf1bb8d859462fba5bd1b54e060c
Submitter: Jenkins
Branch: master

commit 267f2129161cbf1bb8d859462fba5bd1b54e060c
Author: Lin Hua Cheng <email address hidden>
Date: Fri Jul 26 17:02:02 2013 -0700

    Pass the default_project_id when managing User.

    User default_project_id for setting the default project of the User.

    Fixes bug 1205520

    Change-Id: I176d88bb6897c36404d8915385cc791adf10c586

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Changed in horizon:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Tested horizon against the latest code in keystoneclient, default_project can now be set properly in for Keystone V3.

Changed in horizon:
status: Confirmed → Fix Committed
Revision history for this message
Kieran Spear (kspear) wrote :

This should probably be marked invalid for Horizon if no code changed?

Revision history for this message
Dolph Mathews (dolph) wrote :

Agree; "fix committed" will lead people to search for a non-existent patch.

Changed in horizon:
status: Fix Committed → Invalid
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Kieran: Thanks for cleaning this up. I might have set to "fix committed" to something similar in one of the bugs, I'll fix that up.

Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.3.2
Dolph Mathews (dolph)
Changed in python-keystoneclient:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-3 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: Lin Hua Cheng (lin-hua-cheng) → Dirk Mueller (dmllr)
status: Invalid → In Progress
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :
Changed in horizon:
status: In Progress → Invalid
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.