Pike Master Branch : VM launch is failed with Error message No valid host was found. There are not enough hosts available

asked 2017-06-05 07:03:33 -0500

SUNILCN gravatar image

updated 2017-06-05 11:24:38 -0500

Its multinode setup, where on one VM control and compute node configured and on another VM neutron server is configured.

I am able to create network and subnet without any issue but when i try to launch VM then getting the following error:

Please note placement API is already installed and configured , but compute node is not getting registered in placement API inventory.

Any pointer to resolve this issue will be of great help.

root@controlNode:~# nova show 8ff61689-11cd-46d6-a88a-fb26a15d7b83
/usr/lib/python2.7/dist-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
  warnings.warn(msg)
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                                                                   |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                                                                                                                                                                                  |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                                                    |
| OS-EXT-SRV-ATTR:host                 | -                                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:hostname             | vm5                                                                                                                                                                                                                     |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000c                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:kernel_id            |                                                                                                                                                                                                                         |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:ramdisk_id           |                                                                                                                                                                                                                         |
| OS-EXT-SRV-ATTR:reservation_id       | r-iijln3t0                                                                                                                                                                                                              |
| OS-EXT-SRV-ATTR:root_device_name     | -                                                                                                                                                                                                                       |
| OS-EXT-SRV-ATTR:user_data            | -                                                                                                                                                                                                                       |
| 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                              | 2017-05-25T15:42:35Z                                                                                                                                                                                                    |
| description                          | -                                                                                                                                                                                                                       |
| fault                                | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": "  File \"/usr/lib/python2.7/dist-packages/nova/conductor/manager.py\", line 915, in schedule_and_build_instances |
|                                      |     request_specs[0].to_legacy_filter_properties_dict())                                                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/conductor/manager.py\", line 637, in _schedule_instances                                                                                                                 |
|                                      |     hosts = self.scheduler_client.select_destinations(context, spec_obj)                                                                                                                                                |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py\", line 371, in wrapped                                                                                                                               |
|                                      |     return func(*args, **kwargs)                                                                                                                                                                                        |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py\", line 51, in select_destinations                                                                                                          |
|                                      |     return self.queryclient.select_destinations(context, spec_obj)                                                                                                                                                      |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py\", line 37, in __run_method                                                                                                                 |
|                                      |     return getattr(self.instance, __name)(*args, **kwargs)                                                                                                                                                              |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py\", line 32, in select_destinations                                                                                                             |
|                                      |     return self.scheduler_rpcapi.select_destinations(context, spec_obj)                                                                                                                                                 |
|                                      |   File \"/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py\", line 130, in select_destinations                                                                                                                  |
|                                      |     return cctxt.call(ctxt, 'select_destinations', **msg_args)                                                                                                                                                          |
|                                      |   File \"/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py\", line 169, in call                                                                                                                             |
|                                      |     retry=self.retry)                                                                                                                                                                                                   |
|                                      |   File \"/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py\", line 98, in _send                                                                                                                              |
|                                      |     timeout=timeout, retry=retry)                                                                                                                                                                                       |
|                                      |   File \"/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py\", line 505, in send                                                                                                                    |
|                                      |     retry=retry)                                                                                                                                                                                                        |
|                                      |   File \"/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py\", line 496, in _send                                                                                                                   |
|                                      |     raise result                                                                                                                                                                                                        |
|                                      | ", "created": "2017-05-25T15:42:36Z"}                                                                                                                                                                                   |
| flavor                               | m1.tiny (e5bf6e30-0d88-49d0-be26-2fc0418bb7c9)                                                                                                                                                                          |
| hostId                               |                                                                                                                                                                                                                         |
| host_status                          |                                                                                                                                                                                                                         |
| id                                   | 8ff61689-11cd-46d6-a88a-fb26a15d7b83                                                                                                                                                                                    |
| image                                | cirros (302e6c08-e0b0-43df-a6e8-4abad517d01f)                                                                                                                                                                           |
| key_name                             | -                                                                                                                                                                                                                       |
| locked                               | False                                                                                                                                                                                                                   |
| metadata                             | {}                                                                                                                                                                                                                      |
| name                                 | VM5                                                                                                                                                                                                                     |
| os-extended-volumes:volumes_attached | []                                                                                                                                                                                                                      |
| status                               | ERROR                                                                                                                                                                                                                   |
| tags                                 | []                                                                                                                                                                                                                      |
| tenant_id                            | f85c91e401304cb8a0b78654352d13f6                                                                                                                                                                                        |
| updated                              | 2017-05-25T15:42:36Z                                                                                                                                                                                                    |
| user_id                              | 15d62a6cd8db41f48d9a85d9aaff958f                                                                                                                                                                                        |
+--------------------------------------+---------------

Repository used to install the nodes is:

 sudo add-apt-repository ppa:openstack-ubuntu-testing/pike

Here is nova.conf file configured on my setup

root@controlNode:/home/test# cat nova.conf
[DEFAULT]
transport_url = rabbit://openstack:RABBIT_PASS@controlNode
auth_strategy = keystone
my_ip = 192.168.56.101
use_neutron = True
ram_allocation_ratio = 3
debug = false
log_dir = /var/log/nova
[api]
[api_database]
connection = mysql+pymysql://nova:admin123@controlNode/nova_api
[barbican]
[cache]
[cells]
enable = True
[cinder]
[cloudpipe]
[conductor]
[console]
[consoleauth]
[cors]
[cors.subdomain]
[crypto ...
(more)
edit retag flag offensive close merge delete

Comments

Check if nova-compute can reach the Placement service, by testing the placement service URL you configured, and by looking for messages in the nova-compute log. There is also a placement log file you can check.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-05 16:12:03 -0500 )edit

Hi Bernd,

Thanks for the response, i tried the suggested action but looks like authorization issue, how to fix this issue? any suggestion will be of great help.

root@controlNode:/home/test# openstack endpoint list +----------------------------------+-----------+--------------+--------------+------

SUNILCN gravatar imageSUNILCN ( 2017-06-06 02:31:02 -0500 )edit