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, 2020 in OpenStack by akhtar
• 38,260 points
1,128 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, 2020 by MD
• 95,460 points

Related Questions In OpenStack

0 votes
1 answer

Why AWS or OpenStack launch instances so fast?

Hi@akhtar, Actually AWS or Openstack uses pre-installed image. ...READ MORE

answered Jun 4, 2020 in OpenStack by MD
• 95,460 points
890 views
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, 2020 in OpenStack by MD
• 95,460 points
1,202 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, 2020 in OpenStack by anonymous
• 95,460 points
2,643 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, 2020 in OpenStack by MD
• 95,460 points
9,625 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, 2020 in OpenStack by MD
• 95,460 points
1,387 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, 2020 in OpenStack by akhtar
• 38,260 points
1,586 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, 2020 in OpenStack by MD
• 95,460 points
2,344 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, 2020 in OpenStack by MD
• 95,460 points
2,889 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, 2020 in OpenStack by MD
• 95,460 points
1,225 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP