Install and configure in keystone, pike: incorrect variable names

Bug #1789849 reported by Jean-
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned

Bug Description

Install and configure in keystone, pike: incorrect variable names

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [x] This doc is inaccurate in this way:
Two variable names in the shell code sample at https://git.openstack.org/cgit/openstack/keystone/tree/doc/source/install/keystone-install-ubuntu.rst?h=stable%2Fpike#n159 seem to be incorrect.
Strictly applying the code sample, the commands on the next page (https://docs.openstack.org/keystone/pike/install/keystone-users-ubuntu.html) do not work.
```
openstack project create --domain default \
  --description "Service Project" service
```
yields
```
The request you have made requires authentication. (HTTP 401) (Request-ID: req-384b7024-193f-49f9-babd-5b92567418ee)
```

- [ ] This is a doc addition request.
- [x] I have a fix to the document that I can paste below including example: input and output.

```
diff --git a/doc/source/install/keystone-install-ubuntu.rst b/doc/source/install/keystone-install-ubuntu.rst
index 7d6635bbf..94d6886f4 100644
--- a/doc/source/install/keystone-install-ubuntu.rst
+++ b/doc/source/install/keystone-install-ubuntu.rst
@@ -163,6 +163,8 @@ Finalize the installation
       $ export OS_PROJECT_NAME=admin
       $ export OS_USER_DOMAIN_NAME=Default
       $ export OS_PROJECT_DOMAIN_NAME=Default
+ $ export OS_USER_DOMAIN_ID=default
+ $ export OS_PROJECT_DOMAIN_ID=default
       $ export OS_AUTH_URL=http://controller:35357/v3
       $ export OS_IDENTITY_API_VERSION=3
```

I am not sure if this was changed in further releases or not
-----------------------------------
Release: 12.0.1.dev19 on 2018-07-26 21:51
SHA: ce46cc25dc4d967c062587ab21b2b38cab045e00
Source: https://git.openstack.org/cgit/openstack/keystone/tree/doc/source/install/keystone-install-ubuntu.rst?h=stable%2Fpike
URL: https://docs.openstack.org/keystone/pike/install/keystone-install-ubuntu.html

Revision history for this message
Colleen Murphy (krinkle) wrote :

Is this only in pike?

Can you provide the version of openstackclient you are using? `openstack --version`

The variables are correct, OS_{USER,PROJECT}_DOMAIN_NAME=Default (with capital D) is a valid way to refer to the domain, so there seems to be another issue.

Changed in keystone:
status: New → Incomplete
Revision history for this message
Jean- (jean-helou) wrote :

Hi colleen,

Sorry about this, changing the case of the domain name from `default` to `Default` fixed the issue and double checking the documentation indeed uses a capital D. This was my mistake I made a typo when adding the export.
The openstack client version is openstack 3.12.0 but I don't think this is useful anymore.
I'm going to close this issue.

Changed in keystone:
status: Incomplete → 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.