← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1436239] [NEW] modifying users in non-default domain project fails

 

Public bug reported:

I have horizon configured to support multi-domains, and can successfully create a project within a domain, with an initial set of users. 
But if I try to add a user to an existing project in the domain I get an error from horizon:
 "Error: Unauthorized: Failed to modify 0 project members, update project groups and update project quotas". 

I can see a stack trace in the horizon log from
openstack_dashboard/api/keystone.py", line 295, in user_list, and I see
an error in the keystone log "No domain information specified as part of
list request".

I have tracked this issue down to this code in
openstack_dashboard/dashboards/identity/projects/workflows.py:

            # Get the users currently associated with this project so we
            # can diff against it.
            project_members = api.keystone.user_list(request,
                                                     project=project_id)

(lines 563-566 in workflows.py from openstack-
dashboard-2014.2.1-2.el7.centos.noarch, which is Juno).

If I change this code to additionally pass domain=domain_id to
user_list() then the error goes away.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1436239

Title:
  modifying users in non-default domain project fails

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I have horizon configured to support multi-domains, and can successfully create a project within a domain, with an initial set of users. 
  But if I try to add a user to an existing project in the domain I get an error from horizon:
   "Error: Unauthorized: Failed to modify 0 project members, update project groups and update project quotas". 

  I can see a stack trace in the horizon log from
  openstack_dashboard/api/keystone.py", line 295, in user_list, and I
  see an error in the keystone log "No domain information specified as
  part of list request".

  I have tracked this issue down to this code in
  openstack_dashboard/dashboards/identity/projects/workflows.py:

              # Get the users currently associated with this project so we
              # can diff against it.
              project_members = api.keystone.user_list(request,
                                                       project=project_id)

  (lines 563-566 in workflows.py from openstack-
  dashboard-2014.2.1-2.el7.centos.noarch, which is Juno).

  If I change this code to additionally pass domain=domain_id to
  user_list() then the error goes away.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1436239/+subscriptions


Follow ups

References