[Openstack] failing to boot instance "message": "No valid host was found. There are not enough hosts available."
somshekar kadam
som_kadam at yahoo.co.in
Sun Nov 30 11:25:22 UTC 2014
Hi All,
I am newbie to openstack, I am trying to get my first istance to boot. ANy pointers on this will help, thanks in advance
I see this error while booting. I have not installed glance or swift on compute node. On controller node its full stack setup done by devops quick start ..
fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec,
openstack paste link
Paste #141783 | LodgeIt!
| |
| | | | | |
| Paste #141783 | LodgeIt![neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e8... |
| |
| View on paste.openstack.org | Preview by Yahoo |
| |
| |
logs given below with each command
On controller side I have setup using Devops quick start to setup steps. On compute node I have followed steps mentioned at openstack manual steps.
logs-----[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 05:53:26.795 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29295) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 05:53:26.860 DEBUG oslo.db.api [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29295) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 05:53:28.241 DEBUG oslo.db.sqlalchemy.session [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29295) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 10:53:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 10:53:192014-11-30 05:53:28.398 DEBUG nova.servicegroup.drivers.db [req-e81e7530-7d86-4723-8fcd-e640e4d4838f None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 761.398104 from (pid=29295) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 10:53:25nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 10:53:24nova-network compute1 internal enabled :-) 2014-11-30 10:53:24nova-compute compute1 nova enabled :-) 2014-11-30 10:53:19
[neelumadhu at localhost devstack]$ nova image-list+--------------------------------------+---------------------------------+--------+--------+| ID | Name | Status | Server |+--------------------------------------+---------------------------------+--------+--------+| db82f672-df9f-403c-a7de-7f0b4ba487d9 | Fedora-x86_64-20-20140618-sda | ACTIVE | || 0af91b22-5306-4c97-8761-3800f9029907 | cirros-0.3.2-x86_64-uec | ACTIVE | || da9e55ab-f25e-4886-8b75-9fc2e7069cb6 | cirros-0.3.2-x86_64-uec-kernel | ACTIVE | || e3f5ef50-433a-4bbd-9007-b1386c129be0 | cirros-0.3.2-x86_64-uec-ramdisk | ACTIVE | |+--------------------------------------+---------------------------------+--------+--------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova boot --flavor 2 --image 0af91b22-5306-4c97-8761-3800f9029907 test44+--------------------------------------+----------------------------------------------------------------+| Property | Value |+--------------------------------------+----------------------------------------------------------------+| OS-DCF:diskConfig | MANUAL || OS-EXT-AZ:availability_zone | nova || OS-EXT-SRV-ATTR:host | - || OS-EXT-SRV-ATTR:hypervisor_hostname | - || OS-EXT-SRV-ATTR:instance_name | instance-00000001 || OS-EXT-STS:power_state | 0 || OS-EXT-STS:task_state | scheduling || OS-EXT-STS:vm_state | building || OS-SRV-USG:launched_at | - || OS-SRV-USG:terminated_at | - || accessIPv4 | || accessIPv6 | || adminPass | SUFRq8WmQy3p || config_drive | || created | 2014-11-30T10:56:31Z || flavor | m1.small (2) || hostId | || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || progress | 0 || security_groups | default || status | BUILD || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:56:32Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+----------------------------------------------------------------+
[neelumadhu at localhost devstack]$ nova show 16e847eb-7f51-48d5-a8b8-cafb99a12605+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| Property | Value |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+| OS-DCF:diskConfig | MANUAL || OS-EXT-AZ:availability_zone | nova || OS-EXT-SRV-ATTR:host | compute1 || OS-EXT-SRV-ATTR:hypervisor_hostname | compute1 || OS-EXT-SRV-ATTR:instance_name | instance-00000001 || OS-EXT-STS:power_state | 0 || OS-EXT-STS:task_state | - || OS-EXT-STS:vm_state | error || OS-SRV-USG:launched_at | - || OS-SRV-USG:terminated_at | - || accessIPv4 | || accessIPv6 | || config_drive | || created | 2014-11-30T10:56:31Z || fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/stack/nova/nova/conductor/manager.py\", line 632, in build_instances || | request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 49, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/client/__init__.py\", line 35, in __run_method || | return getattr(self.instance, __name)(*args, **kwargs) || | File \"/opt/stack/nova/nova/scheduler/client/query.py\", line 34, in select_destinations || | context, request_spec, filter_properties) || | File \"/opt/stack/nova/nova/scheduler/rpcapi.py\", line 112, in select_destinations || | request_spec=request_spec, filter_properties=filter_properties) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in call || | retry=self.retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in _send || | timeout=timeout, retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 408, in send || | retry=retry) || | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers/amqpdriver.py\", line 399, in _send || | raise result || | ", "created": "2014-11-30T10:58:20Z"} || flavor | m1.small (2) || hostId | d084bb735e188f6a0d20e6485ba7347c6d9cea4ceae2f9763af00b09 || id | 16e847eb-7f51-48d5-a8b8-cafb99a12605 || image | cirros-0.3.2-x86_64-uec (0af91b22-5306-4c97-8761-3800f9029907) || key_name | - || metadata | {} || name | test44 || os-extended-volumes:volumes_attached | [] || private network | || security_groups | default || status | ERROR || tenant_id | e3ae515070c740b89199b8a7e312cb6f || updated | 2014-11-30T10:58:19Z || user_id | 45dfecb18d8a4b069085107f9c2f314a |+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+[neelumadhu at localhost devstack]$
[neelumadhu at localhost devstack]$ nova host-list+-----------------------+-------------+----------+| host_name | service | zone |+-----------------------+-------------+----------+| localhost.localdomain | conductor | internal || localhost.localdomain | cert | internal || localhost.localdomain | compute | nova || localhost.localdomain | scheduler | internal || localhost.localdomain | consoleauth | internal || compute1 | network | internal || compute1 | compute | nova |+-----------------------+-------------+----------+[neelumadhu at localhost devstack]$ nova service-list+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+| 1 | nova-conductor | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 2 | nova-cert | localhost.localdomain | internal | enabled | up | 2014-11-30T11:02:59.000000 | - || 3 | nova-compute | localhost.localdomain | nova | enabled | down | - | - || 4 | nova-scheduler | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:06.000000 | - || 5 | nova-consoleauth | localhost.localdomain | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 6 | nova-network | compute1 | internal | enabled | up | 2014-11-30T11:03:04.000000 | - || 7 | nova-compute | compute1 | nova | enabled | up | 2014-11-30T11:03:06.000000 | - |+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+[neelumadhu at localhost devstack]$ nova-manage service list2014-11-30 06:03:26.915 DEBUG nova.servicegroup.api [-] ServiceGroup driver defined as an instance of db from (pid=29950) __new__ /opt/stack/nova/nova/servicegroup/api.py:652014-11-30 06:03:26.955 DEBUG oslo.db.api [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29950) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:03:27.400 DEBUG oslo.db.sqlalchemy.session [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29950) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509Binary Host Zone Status State Updated_Atnova-conductor localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-cert localhost.localdomain internal enabled :-) 2014-11-30 11:03:192014-11-30 06:03:27.669 DEBUG nova.servicegroup.drivers.db [req-d76a610c-a3c9-43a3-9d1c-bffb9947de7d None None] Seems service is down. Last heartbeat was 2014-11-30 10:40:47. Elapsed time is 1360.669212 from (pid=29950) is_up /opt/stack/nova/nova/servicegroup/drivers/db.py:75nova-compute localhost.localdomain nova enabled XXX None nova-scheduler localhost.localdomain internal enabled :-) 2014-11-30 11:03:26nova-consoleauth localhost.localdomain internal enabled :-) 2014-11-30 11:03:24nova-network compute1 internal enabled :-) 2014-11-30 11:03:24nova-compute compute1 nova enabled :-) 2014-11-30 11:03:26[neelumadhu at localhost devstack]$ nova-manage host list
host zone 2014-11-30 06:04:08.471 DEBUG oslo.db.api [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from (pid=29971) _load_backend /usr/lib/python2.7/site-packages/oslo/db/api.py:1822014-11-30 06:04:08.875 DEBUG oslo.db.sqlalchemy.session [req-ae7268ec-7f2b-4515-a444-22d800a14932 None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION from (pid=29971) _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:509localhost.localdomain internal compute1 internal [neelumadhu at localhost devstack]$ [neelumadhu at localhost devstack]$
----------------log ends
Neelu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141130/a6c0db53/attachment.html>
More information about the Openstack
mailing list