Ask Your Question
0

Credentials for keystone and other openstack services

asked 2014-09-18 09:21:49 -0500

Robert gravatar image

updated 2014-09-18 09:22:38 -0500

I am using Icehosue on Ubuntu 14.04 LTS x64. Accoring to install manual I have setted up admin-openrc.sh file. Every time I want to work with services nova, glance, cinder I sourced admin-openrc.sh file, but if I want to work with keystone this admin-openrc.sh file is not worth. So every time I need to export OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT.

I think that for keystone should be enough just to export vairables from admin-openrc.sh file?

Is this usage of addmin-openrc.sh and exporting OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT correct or is just source admin-openrc.sh shoud be enough?

Admin-openrc.sh file:

 export OS_USERNAME=admin
 export OS_PASSWORD=adminpass
 export OS_TENANT_NAME=admin
 export OS_AUTH_URL=http://ubuntu:35357/v2.0

Extra exported envariables for Keystone:

 export OS_SERVICE_TOKEN=4d49d6eb54f2aefff673
 export OS_SERVICE_ENDPOINT=http://192.168.220.30:35357/v2.0
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-09-18 09:37:34 -0500

dbaxps gravatar image
[root@icehouse1 ~(keystone_admin)]# cat  keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=xxxxxxxxxx
export OS_AUTH_URL=http://192.168.1.127:5000/v2.0/
export PS1='[\u@\h \W(keystone_admin)]\$ '

Source only keystonerc_admin file, then you should be able

[root@icehouse1 ~(keystone_admin)]# keystone user-list
+----------------------------------+------------+---------+----------------------+
|                id                |    name    | enabled |        email         |
+----------------------------------+------------+---------+----------------------+
| 98992ffff6454ea3a965e9b59a15d04c |   admin    |   True  |    test@test.com     |
| b2b49d8171e44ff3a914724cd691a9fe |   boris    |   True  |                      |
| 705ac5d19bdf40b9a410833125527e12 | ceilometer |   True  | ceilometer@localhost |
| aa39867146e943b0ae1ef9032c4a400d |   cinder   |   True  |   cinder@localhost   |
| 8749f331611d466687786bacc5052eb2 |   glance   |   True  |   glance@localhost   |
| 0faf711c57af4145b576d05e82331bf4 |  neutron   |   True  |  neutron@localhost   |
| c13375e2580d437aaeff58e8fe4de622 |    nova    |   True  |    nova@localhost    |
+----------------------------------+------------+---------+----------------------+
[root@icehouse1 ~(keystone_admin)]# keystone service-list
+----------------------------------+------------+----------+----------------------------+
|                id                |    name    |   type   |        description         |
+----------------------------------+------------+----------+----------------------------+
| 3b4de70880c14a859c684893c423be27 | ceilometer | metering | Openstack Metering Service |
| a73e437cfab1410b8622a0562246448e |   cinder   |  volume  |       Cinder Service       |
| 640f0964ee83406ab3982e6b8e811b87 | cinder_v2  | volumev2 |     Cinder Service v2      |
| 2d9987728d6e48ebab48b4ef8700229b |   glance   |  image   |  Openstack Image Service   |
| 8d6c4ad73c484e30a78f7056ea8d3543 |  keystone  | identity | OpenStack Identity Service |
| a55dc90c15ed4f239e93dd2552c0a55d |  neutron   | network  | Neutron Networking Service |
| 2ab80056f6ea4d4983b0a59dfc546fe5 |    nova    | compute  | Openstack Compute Service  |
| 125eeac682534230af5fcc2f45dd6925 |  nova_ec2  |   ec2    |        EC2 Service         |
+----------------------------------+------------+----------+----------------------------+
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-18 09:21:49 -0500

Seen: 3,465 times

Last updated: Sep 18 '14