Ask Your Question
0

Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

asked 2017-04-19 05:18:09 -0500

ahmedloukil gravatar image

I want configure controller node on ubuntu server 14.04 but i still blocked in this step :

controller@controller:~$ keystone tenant-create --name admin --description "Admin Tenant"

Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
0

answered 2017-04-25 18:56:06 -0500

akaris gravatar image

Hello,

You need to source an RC file containing the openstack credentials, e.g.:

[root@undercloud ~]# keystone tenant-create --name test
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
[root@undercloud ~]# keystone token-get
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
[root@undercloud ~]# source overcloudrc
[root@undercloud ~]# source /home/stack/overcloudrc
[root@undercloud ~]# keystone token-get
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+
|  expires  |       2017-04-26T00:53:38Z       |
|     id    | 2f9c9756f06c4ddcbdd973befffcd320 |
| tenant_id | cb0d5805d72a4f2a89ff260b15629799 |
|  user_id  | 51d00a69b58c4c47ac2eb651033ec8f1 |
+-----------+----------------------------------+

If this is a new setup, then see the prerequisites section here: https://docs.openstack.org/mitaka/ins...

  • Andreas
edit flag offensive delete link more
0

answered 2017-04-26 05:51:38 -0500

Alternatively, you can get the RC file tailoured to your account from the Horizon GUI.

edit flag offensive delete link more
0

answered 2017-04-27 01:26:05 -0500

amitabh sinha gravatar image

You can solve the above problem by creating a simple script with all the parameters which is required to authenticate you.

Here is the script content vi admin_creds

Paste the following: export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=admin_pass export OS_AUTH_URL=http://controller:35357/v2.0

edit it according to your environment save and quite .. just source it and run the command whatever you want to run.

edit flag offensive delete link more
0

answered 2017-04-27 04:18:37 -0500

Nataraj N gravatar image

updated 2017-04-27 04:22:30 -0500

You may populate adminrc file then start keystone service

edit flag offensive delete link more

Comments

Restarting the service is not required. As a user, you normally don't have access to it anyway.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-27 08:58:40 -0500 )edit

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: 2017-04-19 05:18:09 -0500

Seen: 455 times

Last updated: Apr 27 '17