Openstack CLI on multi-domain keystone not working

Bug #1555754 reported by Flávio Ramalho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Invalid
Undecided
Unassigned

Bug Description

On master, following the documentation:

# lxc-attach -n controller-2_utility_container-3ad5a2c4
# . openrc
# openstack user list
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name

Even adding export OS_DOMAIN_NAME=Default to the openrc:

# openstack user list
The request you have made requires authentication. (HTTP 401) (Request-ID: req-b9d9e73a-d70a-4f24-ab9f-1a9108510a55)

Works when using "--domain <domain-name>":

# openstack user list --domain default
+----------------------------------+------------+
| ID | Name |
+----------------------------------+------------+
| 021c8410bf104d879625947d499a291f | cinder |
| 2dd4d85794e1403bb26c1c63788e3a27 | heat |
| 3ebded248dea43818145e0ffead232bc | dispersion |
| 6723dba8cbc64242923f814686b66286 | glance |
| 98090b034bb84124b2f40f1adec3827a | swift |
| a017ba639b084f6e98a3c1dbb96036dd | neutron |
| a55e4f72c44e425f9ed151b882caa017 | admin |
| abaf7dffb9644e34a5e1941062e64835 | ceilometer |
| bac2615828364652a141ad749250d73e | nova |
| e79a6c19f3564caeb19909b64a3e40e9 | aodh |
| f6181719221f48e7894b42a8368b895f | keystone |
+----------------------------------+------------+

Revision history for this message
Travis Truman (travis-truman) wrote :

There is a case mismatch in your bug description:

"Even adding export OS_DOMAIN_NAME=Default to the openrc:"

vs

"openstack user list --domain default"

Did you really set OS_DOMAIN_NAME=Default or "default"

Revision history for this message
Flávio Ramalho (flaviosr) wrote :

Bug Closed.

It is a openstackclient bug, covered in https://bugs.launchpad.net/python-openstackclient/+bug/1538804

Changed in openstack-ansible:
status: New → Invalid
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.