Create OpenStack client environment scripts in OpenStack Installation Guide for Ubuntu 14.04  - kilo

Bug #1469228 reported by mark on 2015-06-26
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openstack-manuals
Undecided
Unassigned

Bug Description

in the kilo keystone configuration document api endpoints of v2 are created
$ openstack endpoint create \
  --publicurl http://controller:5000/v2.0 \
  --internalurl http://controller:5000/v2.0 \
  --adminurl http://controller:35357/v2.0 \
  --region RegionOne \
  identity

yet the rc file instructions reference v3

export OS_AUTH_URL=http://controller:35357/v3

this results in an authorization error when performing keystone commands
-----------------------------------
Built: 2015-06-13T09:20:36 00:00
git SHA: 725cbcd6462e6afa14ef109df6cbbd870f5e8d7c
URL: http://docs.openstack.org/kilo/install-guide/install/apt/content/keystone-client-environment-scripts.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_keystone-openrc.xml
xml:id: keystone-client-environment-scripts

tags: added: keystone
Matt Kassawara (ionosphere80) wrote :

I cannot reproduce this issue. Please check your OpenStack package versions.

Changed in openstack-manuals:
status: New → Incomplete
mark (mark-chuman) wrote :

Thanks for checking. I've run over the install again and this is what my admin-openrc.sh looks like per the install doc and some commands that illustrate the issue a bit more.

--

myuserid@servername:~$ cat admin-openrc.sh
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=password123
export OS_AUTH_URL=http://servername:35357/v3
export OS_IMAGE_API_VERSION=2

myuserid@servernameN:~$ keystone --os-username=admin --os-password=password123 --os-tenant-name=admin --os-auth-url=http://servername:35357/v3.0 service-list
Authorization Failed: The resource could not be found. (HTTP 404)

myuserid@servername:~$ keystone service-list
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-dc2d595d-1a74-4ed7-8f5f-3b468a25f26a)

myuserid@servername:~$ keystone --os-username=admin --os-password=password123 --os-tenant-name=admin --os-auth-url=http://servername:35357/v2.0 service-list
+----------------------------------+----------+----------+-------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+-------------------------+
| 34ee75f1e7c549d5b3e9e74b43140fb0 | glance | image | OpenStack Image service |
| 37d19d865f5c45fb996b8fdfcc97ae96 | keystone | identity | OpenStack Identity |
+----------------------------------+----------+----------+-------------------------+

mark (mark-chuman) wrote :

I'm thinking OS_AUTH_URL in admin-openrc.sh should be - export OS_AUTH_URL=http://servername:35357/v2.0

Udayendu Kar (udayendu-kar) wrote :

Hi Mark,

After using V2.0 also the issue persists. Here is the out put:

# cat admin-openrc.sh
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=redhat
export OS_AUTH_URL=http://controller:35357/v2.0

root@controller:~# source admin-openrc.sh

root@controller:~# openstack token issue
ERROR: openstack 'NoneType' object has no attribute 'service_catalog'

mark (mark-chuman) wrote :

Hi Udayendu, can you elaborate on what you mean by V2.0? Thx

Udayendu Kar (udayendu-kar) wrote :

Sorry for the typo. Its v2.0 and its in the OS_AUTH_URl:

export OS_AUTH_URL=http://controller:35357/v2.0
                                                                                             |
                                                                                            +____________ [This is the one I was talking about]

Changed in openstack-manuals:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers