Ask Your Question

Revision history [back]

Unable to execute cloud init script

I have deployed Ocata with dedicated Network node on ESXi server 5.5. I configured Neutron ML2 to use Open vSwitch mechanism driver. When I launch an Ubuntu Server 16.04 instance using local tenant network, cloud-init script couldn't be executed probably and "Starting Raise network interfaces" state loops until it reach time limit. Instance after launched couldn't get an ip address

Starting Raise network interfaces...
[[0m[0;31m*     [0m] A start job is running for Raise network interfaces (1min 5s / 6min)[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for Raise network interfaces (1min 5s / 6min)[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for Raise network interfaces (1min 6s / 6min)[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for Raise network interfaces (1min 6s / 6min)[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for Raise network interfaces (1min 7s / 6min)[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for Raise network interfaces (1min 7s / 6min)[K[    [0;31m*[0;1;31m*[0m] A start job is running for Raise network interfaces (1min 8s / 6min)[K[     [0;31m*[0m] A start job is running for Raise network interfaces (1min 8s / 6min)

I decided to launch an instance with provider network instead. I got "NoValidHost: No valid host was found. There are not enough hosts available." while there was enough resources for allocation.

2017-05-17 00:09:51.397 2322 WARNING nova.scheduler.utils [req-29af9f83-e25e-4749-be81-0381486aba80 9615e9978da54b409ead8e04b3309a3a 27306a8e20384bd5bdbab0197a69e395 - - -] [instance: 68d3167c-a0dc-45b6-8e47-369a077c2a4c] Setting instance to ERROR state.
2017-05-17 09:58:48.000 2326 ERROR nova.scheduler.utils [req-a4283591-eb10-4796-9eed-bba65118b86f 9615e9978da54b409ead8e04b3309a3a 27306a8e20384bd5bdbab0197a69e395 - - -] [instance: b8b430ed-6886-4791-afad-2c97b4a43bac] Error from last host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1780, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2016, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance b8b430ed-6886-4791-afad-2c97b4a43bac was re-scheduled: Binding failed for port 33cfca40-9580-423a-a34d-0ea3cf9dfd07, please check neutron logs for more information.\n']
2017-05-17 09:58:48.082 2326 WARNING nova.scheduler.utils [req-a4283591-eb10-4796-9eed-bba65118b86f 9615e9978da54b409ead8e04b3309a3a 27306a8e20384bd5bdbab0197a69e395 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 218, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 98, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 79, in select_destinations
    raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.

Can anyone help me to solve it? Thanks a lot.