error when running nova boot-no valid host was found
nova boot --flavor 2 --image CentOS6 --security_group default CentOS
Note: All services are one server. If my IP is 10.10.1.12 which is a dhcp static address. When I create my network, do I use the same dns?
For the fixed_range_v4, do I use the same subnet ie, 10.10.1.0/24 ?
status | ERROR |
| updated | 2014-03-05T18:53:43Z |
| OS-EXT-STS:task_state | None |
| OS-EXT-SRV-ATTR:host | None |
| key_name | None |
| image | CentOS6 (dcac4221-fce7-4f5c-818b-e7a4db14dd56) |
| hostId | |
| OS-EXT-STS:vm_state | error |
| OS-EXT-SRV-ATTR:instance_name | instance-0000000a |
| OS-SRV-USG:launched_at | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| flavor | m1.small (2) |
| id | 206a0501-1f02-4b25-9c12-628127a28ce8 |
| security_groups | [{u'name': u'default'}] |
| OS-SRV-USG:terminated_at | None |
| user_id | bf1dd2204c5a46399d53214de492b27b |
| name | CentOS |
| created | 2014-03-05T18:52:40Z |
| tenant_id | c90ab628b83e4240a4e69ca726b1cdb3 |
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| os-extended-volumes:volumes_attached | [] |
| accessIPv4 | |
| accessIPv6 | |
| fault | {u'message': u'No valid host was found. ', u'code': 500, u'created': u'2014-03-05T18:53:44Z'} |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive |
scheduler.log
2014-03-05 13:52:36.521 41061 TRACE nova.openstack.common.rpc.impl_qpid raise self.error
2014-03-05 13:52:36.521 41061 TRACE nova.openstack.common.rpc.impl_qpid ConnectionError: connection aborted
2014-03-05 13:52:36.521 41061 TRACE nova.openstack.common.rpc.impl_qpid
2014-03-05 13:52:36.599 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: connection aborted. Sleeping 1 seconds
2014-03-05 13:52:37.602 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: [Errno 111] ECONNREFUSED. Sleeping 2 seconds
2014-03-05 13:52:39.604 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: [Errno 111] ECONNREFUSED. Sleeping 4 seconds
2014-03-05 13:52:43.607 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: [Errno 111] ECONNREFUSED. Sleeping 8 seconds
2014-03-05 13:52:51.612 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: [Errno 111] ECONNREFUSED. Sleeping 16 seconds
2014-03-05 13:53:07.617 41061 ERROR nova.openstack.common.rpc.impl_qpid [-] Unable to connect to AMQP server: [Errno 111] ECONNREFUSED. Sleeping 32 seconds
2014-03-05 13:53:43.883 41061 ERROR nova.openstack.common.rpc.impl_qpid [req-467fc834-3eec-4a35-a1cc-205ebb2ea1c7 bf1dd2204c5a46399d53214de492b27b c90ab628b83e4240a4e69ca726b1cdb3] Failed to publish message to topic 'notifications.info': connection aborted
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid Traceback (most recent call last):
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/impl_qpid.py", line 540, in ensure
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid return method(*args, **kwargs)
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/impl_qpid.py", line 632, in _publisher_send
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid publisher = cls(self.conf, self.session, topic)
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common.rpc.impl_qpid File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/impl_qpid.py", line 436, in __init__
2014-03-05 13:53:43.883 41061 TRACE nova.openstack.common ...
You have logs for 13:52:36.521 - 13:53:43.883, but your failure message is tagged 18:53:44. No valid host can mean that the resources you've requested are not available on any compute hosts. Check /etc/nova/nova.conf for your allocation ratios (cpu, memory). Does m1.small send you over the limit?
I got the same error message but because of a different reason. I had to chose another flavor: My
scheduler.log
showedFlavorDiskTooSmall: Flavor's disk is too small for requested image.
nova show …
and the filescheduler.log
apparently print out time differently. At least it's like that for me, I have a difference of 2 hours between them because of my time zone.