Revision history [back]

click to hide/show revision 1
initial version

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

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] [database] connection = mysql+pymysql://nova:admin123@controlNode/nova [ephemeral_storage_encryption] [filter_scheduler] scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter scheduler_driver = filter_scheduler [glance] api_servers = http://controlNode:9292 [guestfs] [healthcheck] [hyperv] [ironic] [key_manager] [keystone_authtoken] auth_uri = http://controlNode:5000 auth_url = http://controlNode:35357 memcached_servers = controlNode:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = admin123 [libvirt] [matchmaker_redis] [metrics] [mks] [neutron] region_name = RegionOne auth_url = http://controlNode:35357 auth_type = password default_domain_name = default project_domain_name = default user_domain_name = default username = neutron password = admin123 project_name = service url = http://neutronS1:9696 [notifications] [osapi_v21] [oslo_concurrency] lock_path = /var/lib/nova/tmp [oslo_messaging_amqp] [oslo_messaging_kafka] [oslo_messaging_notifications] [oslo_messaging_rabbit] [oslo_messaging_zmq] [oslo_middleware] [oslo_policy] [pci] [placement_database] connection = mysql+pymysql://nova:admin123@controlNode/nova_api [placement] os_region_name = RegionOne project_domain_name = Default project_name = service user_domain_name = Default password = placement username = placement123 auth_url = http://controlNode:35357/v3/ auth_type = password os_region_name = openstack [quota] [rdp] [remote_debug] [scheduler] [serial_console] [service_user] [spice] [ssl] [trusted_computing] [upgrade_levels] [vendordata_dynamic_auth] [vmware] [vnc] enabled = True vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = $my_ip novncproxy_base_url = http://controlNode:6080/vnc_auto.html [workarounds] [wsgi] [xenserver] [xvp]

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

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) 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) __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

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]
[database]
connection = mysql+pymysql://nova:admin123@controlNode/nova
[ephemeral_storage_encryption]
[filter_scheduler]
scheduler_default_filters = RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter
scheduler_driver = filter_scheduler
[glance]
api_servers = http://controlNode:9292
[guestfs]
[healthcheck]
[hyperv]
[ironic]
[key_manager]
[keystone_authtoken]
auth_uri = http://controlNode:5000
auth_url = http://controlNode:35357
memcached_servers = controlNode:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = nova
password = admin123
[libvirt]
[matchmaker_redis]
[metrics]
[mks]
[neutron]
region_name = RegionOne
auth_url = http://controlNode:35357
auth_type = password
default_domain_name = default
project_domain_name = default
user_domain_name = default
username = neutron
password = admin123
project_name = service
url = http://neutronS1:9696
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement_database]
connection = mysql+pymysql://nova:admin123@controlNode/nova_api
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
user_domain_name = Default
password = placement
username = placement123
auth_url = http://controlNode:35357/v3/
auth_type = password
os_region_name = openstack
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vendordata_dynamic_auth]
[vmware]
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controlNode:6080/vnc_auto.html
[workarounds]
[wsgi]
[xenserver]
[xvp]

[xvp]