Openstack client can't show domains list

Bug #1547069 reported by Stanislaw Bogatkin on 2016-02-18
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Low
Yuki Nishiwaki
Mitaka
Low
Ema
Newton
Low
Yuki Nishiwaki

Bug Description

Fuel 9.

Steps to reproduce:
1. Deploy 3 controllers, 1 compute.
2. After deploy go to controller, source openrc
3. Try openstack domain list

Expected:
root@node-1:~# openstack domain list
+----------------------------------+---------+---------+----------------------------------------------------------------------+
| ID | Name | Enabled | Description |
+----------------------------------+---------+---------+----------------------------------------------------------------------+
| default | Default | True | Owns users and tenants (i.e. projects) available on Identity API v2. |
| f2a943461b5f4d91ae5febbf0cde7048 | heat | True | |
+----------------------------------+---------+---------+----------------------------------------------------------------------+

Returned:
root@node-1:~# openstack domain list
openstack: 'domain' is not an openstack command. See 'openstack --help'.
Did you mean one of these?
  command list
  container create
  container delete
  container list
  container save
  container set
  container show
  container unset

Workaround to get right domain list:
root@node-1:~# export OS_IDENTITY_API_VERSION=3

So, all we need is to export right keystone api version.

Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Dmitry Bilunov (dbilunov)
Ema (menari2) wrote :

Hi, is it ok with you if I assigned this bug to myself? I need to fix a low-hanging-fruit bug so that I can apply for the Outreachy internship program. Thanks.

Dmitry Bilunov (dbilunov) wrote :

Ema, it's okay if you want it. Actually, it is a one-line fix.

Ema (menari2) wrote :

Thanks a lot Dmitry!

Changed in fuel:
assignee: Dmitry Bilunov (dbilunov) → Ema (menari2)

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info

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

Changed in fuel:
assignee: Ema (menari2) → Yuki Nishiwaki (uckey-1067)
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/332068
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=679a07354dba1446fe9b62d873923cf7141711a1
Submitter: Jenkins
Branch: master

commit 679a07354dba1446fe9b62d873923cf7141711a1
Author: Yuki Nishiwaki <email address hidden>
Date: Tue Jun 21 19:24:56 2016 +0900

    Add OS_IDENTITY_API_VERSION to the openrc file

    In order to use "domain" subcommand in OpenStack Client,
    We need to specify keystone api verion with
    environment variable called "OS_IDENTITY_API_VERSION".

    Closes-Bug: #1547069
    Change-Id: I4a84c2f72e82883bf484ff4198f44f7ff6c70e67

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers