Ask Your Question
0

Failed to boot instance on Openstack

asked 2016-10-31 03:31:07 -0600

dffbanana gravatar image

updated 2016-10-31 13:43:41 -0600

rbowen gravatar image

hi: when i use the command "nova boot --flavor 1 --key-name openstack --image f4787dac-2f24-4d1e-8bde-eabb17266d13 --nic net-id=e1375bc4-ad1d-41d5-ae16-f81a4f851d34 --security-group default my_first_instance" to boot an instance on Openstack, got failed with "ERROR (ConnectTimeout): Request to http://10.3.214.202:8774/v2/e4fc003f33b445ad96378f2646f2faae/servers timed out " who can help me to have a look at? Thank you very much~

python version is 2.7.5, and the openstack is installed with RDO. following is the log information

===============================================================
nova-compute.log
=====================
2016-10-31 12:26:34.677 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Auditing locally available compute resources for node localhost.localdomain
2016-10-31 12:26:34.946 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Total usable vcpus: 2, total allocated vcpus: 0
2016-10-31 12:26:34.946 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Final resource view: name=localhost.localdomain phys_ram=7823MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]
2016-10-31 12:26:34.996 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Compute_service record updated for localhost.localdomain:localhost.localdomain
2016-10-31 12:27:35.687 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Auditing locally available compute resources for node localhost.localdomain
2016-10-31 12:27:35.872 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Total usable vcpus: 2, total allocated vcpus: 0
2016-10-31 12:27:35.872 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Final resource view: name=localhost.localdomain phys_ram=7823MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]
2016-10-31 12:27:35.913 3087 INFO nova.compute.resource_tracker [req-da40c9bd-5ef1-4c92-b9fe-3b365b1d7eca - - - - -] Compute_service record updated for localhost.localdomain:localhost.localdomain
~
===========================================
 nova-api.log
===============
2016-10-31 12:24:12.787 27213 INFO nova.osapi_compute.wsgi.server [req-0c177022-3d9c-4e46-bbe2-e3bc2c400caa ea2388cc0af24b36aaf186c75e9953ba 87e2c49a23b84cbd9d89eee522681fa5 - - -] 10.3.214.202 "GET /v2/87e2c49a23b84cbd9d89eee522681fa5/servers/detail?all_tenants=True&changes-since=2016-10-31T16%3A14%3A12.906190%2B00%3A00 HTTP/1.1" status: 200 len: 211 time: 0.3187652
2016-10-31 12:25:30.149 27213 INFO nova.osapi_compute.wsgi.server [req-b758e98e-cfa3-4d7f-bb49-d2fa90359789 805b58b08cb44fb29f1feb826fa007e6 e4fc003f33b445ad96378f2646f2faae - - -] 10.3.214.202 "GET /v2/e4fc003f33b445ad96378f2646f2faae HTTP/1.1" status: 404 len: 264 time: 0.1048701
2016-10-31 12:25:30.159 27213 INFO nova.osapi_compute.wsgi.server [req-b80a3fd0-97bb-4de4-8fb4-6582c21aa7c0 805b58b08cb44fb29f1feb826fa007e6 e4fc003f33b445ad96378f2646f2faae - - -] 10.3.214.202 "GET /v2/ HTTP/1.1" status: 200 len: 574 time: 0.0055690
2016-10-31 12:25:30.362 27213 INFO nova.osapi_compute.wsgi.server [req-0a3f9ff8-690b-438c-8bd1-6c8688b62270 805b58b08cb44fb29f1feb826fa007e6 e4fc003f33b445ad96378f2646f2faae - - -] 10.3.214.202 "GET /v2/e4fc003f33b445ad96378f2646f2faae/servers/detail HTTP/1.1" status: 200 len: 211 time: 0.0491831
edit retag flag offensive close merge delete

Comments

most probably your nova-service is down in the controller. check nova service-list

Bipin gravatar imageBipin ( 2016-11-01 04:26:24 -0600 )edit

My guess is that nova-api is not running or is not accessible over the network. The log messages you post aren't related to the nova boot command.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-01 07:06:50 -0600 )edit

Could you post nova-conductor log

Dilipsun gravatar imageDilipsun ( 2016-11-01 09:33:45 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-02 01:00:38 -0600

dffbanana gravatar image

updated 2016-11-05 02:09:17 -0600

hi Bipin, Bernd Bausch and Dilipsun, thank you for your answer. I'm a rookie about openstack, and not clear about the log information, could you help me to look at it? Thank you again. This is the nova-conductor.log

nova-conductor.log

 2016-10-28 05:48:47.763 4029 WARNING oslo_db.sqlalchemy.engines [req-7418b599-505b-4484-9350-e905fddec7f7 - - - - -] SQL connection failed. -5663 attempts left.
2016-10-28 05:48:47.837 4028 WARNING oslo_db.sqlalchemy.engines [req-f56a548e-b34c-4f05-8f54-38152738bb52 - - - - -] SQL connection failed. -5663 attempts left.
2016-10-28 05:48:57.773 4029 WARNING oslo_db.sqlalchemy.engines [req-7418b599-505b-4484-9350-e905fddec7f7 - - - - -] SQL connection failed. -5664 attempts left.
2016-10-28 05:48:57.845 4028 WARNING oslo_db.sqlalchemy.engines [req-f56a548e-b34c-4f05-8f54-38152738bb52 - - - - -] SQL connection failed. -5664 attempts left.
2016-10-28 05:49:07.778 4029 WARNING oslo_db.sqlalchemy.engines [req-7418b599-505b-4484-9350-e905fddec7f7 - - - - -] SQL connection failed. -5665 attempts left.
2016-10-28 05:49:07.853 4028 WARNING oslo_db.sqlalchemy.engines [req-f56a548e-b34c-4f05-8f54-38152738bb52 - - - - -] SQL connection failed. -5665 attempts left.
2016-10-28 05:49:17.786 4029 WARNING oslo_db.sqlalchemy.engines [req-7418b599-505b-4484-9350-e905fddec7f7 - - - - -] SQL connection failed. -5666 attempts left.
2016-10-28 05:49:17.857 4028 WARNING oslo_db.sqlalchemy.engines [req-f56a548e-b34c-4f05-8f54-38152738bb52 - - - - -] SQL connection failed. -5666 attempts left.
2016-10-28 05:49:27.796 4029 WARNING oslo_db.sqlalchemy.engines [req-7418b599-505b-4484-9350-e905fddec7f7 - - - - -] SQL connection failed. -5667 attempts left.
2016-10-28 05:49:27.860 4028 WARNING oslo_db.sqlalchemy.engines [req-f56a548e-b34c-4f05-8f54-38152738bb52 - - - - -] SQL connection failed. -5667 attempts left.

nova service list

[root@localhost ~(keystone_admin)]# nova service-list
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| 3  | nova-cert        | localhost.localdomain | internal | enabled | up    | 2016-11-02T13:44:08.000000 | -               |
| 4  | nova-consoleauth | localhost.localdomain | internal | enabled | up    | 2016-11-02T13:44:00.000000 | -               |
| 5  | nova-scheduler   | localhost.localdomain | internal | enabled | up    | 2016-11-02T13:44:07.000000 | -               |
| 6  | nova-conductor   | localhost.localdomain | internal | enabled | up    | 2016-11-02T13:44:02.000000 | -               |
| 7  | nova-compute     | localhost.localdomain | nova     | enabled | up    | 2016-11-02T13:44:02.000000 | -               |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
edit flag offensive delete link more

Comments

  1. Check the services, e.g. mysql: systemctl status mysql.service
  2. Check the nova.conf on control node, section database

    [database] connection = mysql+pymysql://nova:PASSWORD@control1/nova Did you configure the database?

eblock gravatar imageeblock ( 2016-11-07 01:53:26 -0600 )edit
0

answered 2016-11-02 05:58:07 -0600

eblock gravatar image

Although your nova services are up your sql connection isn't. You should check why it fails, because nova (and other services) needs to write information into a database. Check your configuration, maybe read the install guide again and compare it to your actual setting.

edit flag offensive delete link more

Comments

What I would check (in this order):

  1. Are the services (MySQL, nova-api etc) up and running?
  2. Can the nodes reach each other (ping)?
  3. Can you reach the services? Check both locally and remotely. You can use telnet or nc to access the ports that they listen on.
Bernd Bausch gravatar imageBernd Bausch ( 2016-11-05 02:12:58 -0600 )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: 2016-10-31 03:31:07 -0600

Seen: 454 times

Last updated: Nov 05 '16