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

0 votes

I am getting the below given error, when tried to create glance user.

$ keystone user-create --name=glance --pass=<glance_password> --email=<admin_email>
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL

Thank You

Mar 26 in OpenStack by akhtar
• 4,500 points
19 views

1 answer to this question.

0 votes

Hi@akhtar,

Probably the OpenStack authentication URLs are not set. Try setting the below environment variables.

export OS_USERNAME=admin
export OS_PASSWORD=keystone_password
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller.node.in:35357/v2.0 

Once the above variables are set in your shell, try registering the glance service to the keystone again. It worked for me. 

$ keystone user-create --name=glance --pass=glance_password --email=admin_email 
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL 

You should see table like the one given below.

+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+ 
| email | admin_email | 
| enabled | True |
| id | c8c0212a16084a65469609c857914f8c | 
| name | glance | 
| username | glance |
+----------+----------------------------------+

Hope this will help.

Thank You

answered Mar 26 by MD
• 8,870 points

Related Questions In OpenStack

0 votes
0 answers
0 votes
1 answer

How to update an image properties in OpenStack?

Hi@akhtar, You can update your image properties. Follow ...READ MORE

answered Mar 16 in OpenStack by MD
• 8,870 points
22 views
0 votes
1 answer

How to create an instance in OpenStack?

Hi@akhtar, When we try to launch an instance ...READ MORE

answered Mar 17 in OpenStack by anonymous
• 8,870 points
31 views
0 votes
1 answer

How to reset error state of a instance into active in OpenStack env?

Hi@akhtar, There are some scenarios where some instances ...READ MORE

answered Mar 17 in OpenStack by MD
• 8,870 points
32 views
0 votes
1 answer

What is the meaning of term “Glance” in OpenStack service?

Hi@akhtar, Glance is image service in OpenStack. The ...READ MORE

answered Mar 16 in OpenStack by MD
• 8,870 points
21 views
0 votes
1 answer

Can anyone explain me the Architecture of Glance service in OpenStack?

Hi, OpenStack Glance has a client-server architecture that ...READ MORE

answered Mar 16 in OpenStack by akhtar
• 4,500 points
23 views
0 votes
1 answer

What is basic OpenStack Architecture?

Hi@akhtar, Basic Architecture of OpenStack is given below. OpenStack ...READ MORE

answered Mar 16 in OpenStack by MD
• 8,870 points
26 views
0 votes
1 answer

How to create an image in OpenStack?

Hi@akhtar, Actually this is the fun in OpenStack. ...READ MORE

answered Mar 16 in OpenStack by MD
• 8,870 points
24 views
0 votes
1 answer
0 votes
1 answer

Which one is better to learn OpenStack or AWS?

Hi@akhtar, It depends on you what you are ...READ MORE

answered Mar 13 in OpenStack by MD
• 8,870 points
28 views