[Openstack] 'NoneType' object has no attribute 'service_catalog' with openstack command

Takaaki Suzuki captain at midokura.com
Fri Oct 16 10:23:44 UTC 2015


Hi OpenStack users.

I'm deploying the OpenStack Liberty release now. I'm following the
openstack documents now. but I had a small issue of openstack command.

the openstack document mentioned a script of "admin-openrc.sh" on the doc.
http://docs.openstack.org/liberty/install-guide-ubuntu/keystone-openrc.html
but it is not correct when you've created the file.

root at liberty-controller:~# 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=admin_password
export OS_AUTH_URL=http://192.168.10.75:35357/v3
export OS_IDENTITY_API_VERSION=3

root at liberty-controller:~# source admin-openrc.sh
root at liberty-controller:~# openstack token issue
'NoneType' object has no attribute 'service_catalog'

I think probably, You will see the error message with openstack command.
You need to add a line "export OS_AUTH_TYPE=password" in the file.

root at liberty-controller:~# 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=admin_password
export OS_AUTH_URL=http://192.168.10.75:35357/v3
export OS_AUTH_TYPE=password
export OS_IDENTITY_API_VERSION=3

root at liberty-controller:~# source admin-openrc.sh
root at liberty-controller:~# openstack token issue
+------------+----------------------------------+
| Field      | Value                            |
+------------+----------------------------------+
| expires    | 2015-10-16T11:14:53.136807Z      |
| id         | 77b45917e7674d9aaf3ebc361b73e992 |
| project_id | 6699e8ce63fb4cb09152d72bf127f381 |
| user_id    | e51550a454a449c1b1ed06edc39a074f |
+------------+----------------------------------+

It works well :) hope this help when you've installed the Liberty.

Thanks
---
Midokura
Takaaki Captain Suzuki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20151016/44ff957e/attachment.html>


More information about the Openstack mailing list