Ask Your Question
0

Resolved the Keystone Issue. Created users successfully. Installed Glance too similarly. Facing issue when creating "openstack image create"

asked 2018-04-13 05:55:21 -0500

Arjun gravatar image

updated 2018-04-16 02:47:45 -0500

Thanks a lot for your suggestions. I formatted my hard-disk and reinstalled the Openstack prerequisite packages fresh. The problem was because I had initially tried to install Allinone using Devops-Ansible script. This had stopped in between by overwriting several sshd_config, Apache2 and mysql script files by doing the OS_hardening scripts. I formatted and installed keystone manually and it worked well. I have installed Glance too using the Installation Tutorial material. https://docs.openstack.org/glance/que... After, I am trying to upload the image to the image service using the following installation tutorial (https://docs.openstack.org/mitaka/ins...) and I am getting the following error message::

openstack image create "cirros"   --file cirros-0.3.5-x86_64-disk.img   --disk-format qcow2 --container-format bare --public
503 Service Unavailable: The server is currently unavailable. Please try again at a later time. (HTTP 503)

When I tried to look into the /var/log/glance/glance-api.log file, getting the following error message::

2018-04-16 12:51:01.433 29066 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-c0e5d109-5bc3-481d-bb40-0c135dc4eff9)
2018-04-16 12:51:01.760 29066 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-dc591283-ac91-455b-a98b-a592df850e24)
2018-04-16 12:51:01.760 29066 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data: ServiceError: Identity server rejected authorization necessary to fetch token data
2018-04-16 12:51:01.761 29066 INFO eventlet.wsgi.server [-] 10.10.4.250 - - [16/Apr/2018 12:51:01] "GET /v2/schemas/image HTTP/1.1" 503 370 0.658624

How do I proceed beyond this. Any help would be appreciated. Thanking You.

edit retag flag offensive close merge delete

Comments

[Errno 111] Connection refused indicates that MySQL is not running or perhaps the SQL connection string in keystone.conf is not correct.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-15 10:31:33 -0500 )edit

Glance, and any other OpenStack component, needs to authenticate with Keystone. The error message probably shows that you didn't configure authentication correctly in glance-api.conf, or didn't initialize the glance user in Keystone.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-16 02:50:29 -0500 )edit

By the way, I suggest you create new questions when having new problems rather than updating an existing question. This allows others to see your old problem and its solution (if any).

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-16 02:53:31 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-04-16 01:20:51 -0500

The most likely cause is Keystone not running. If so, you need to find out why - has it been started at all, and if yes, why did it stop. For that, check the Keystone logs for ERRORs and WARNINGs. Since your Keystone is likely deployed behind a web server, the web server's logs may also contain clues.

edit flag offensive delete link more
0

answered 2018-04-15 05:01:40 -0500

Arjun gravatar image

Hello Bernd Bausch, Thanks for your response. I have installed the key from the installation tutorial. I have used the following link an followed it step by step. https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html (https://docs.openstack.org/keystone/q...) After these steps are executed, I ran the first command in the following link:: https://docs.openstack.org/keystone/queens/install/keystone-users-ubuntu.html (https://docs.openstack.org/keystone/q...)

   I got the error message. So, could you plz let me know as what do I need to check.
   I am new to Openstack. I am running on VM OS: Ubuntu 16.04.

Thanks, Arjun

edit flag offensive delete link more

Comments

Use the suggestions in my answer. Keystone runs behind Apache if you followed the tutorial, and your log files are under /var/log/keystone and /var/log/apache2 (I think). Try to make sense of the messages yourself; it's good learning. If you are stuck, paste the logs in paste.openstack.org.

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-15 05:37:19 -0500 )edit
0

answered 2018-04-15 04:28:10 -0500

The most likely cause is Keystone not running. If so, you need to find out why - has it been started at all, and if yes, why did it stop. For that, check the Keystone logs for ERRORs and WARNINGs. Since your Keystone is likely deployed behind a web server, the web server's logs may also contain clues.

If Keystone is in fact running, check whether http://controller:5000 is the correct URL, and whether you deployed the v3 API (which is likely, but you provide no further information). Again, both the web server and Keystone logs are likely to contain clues.

You may want edit your question and add information like the OpenStack version that you are setting up and how you are setting it up. It would seem that you are following the installation tutorial, is that correct?

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: 2018-04-13 05:55:21 -0500

Seen: 121 times

Last updated: Apr 16