Ask Your Question

nova-docker - Issue in launching the container

asked 2016-09-02 05:48:58 -0600

itsme gravatar image

updated 2016-09-06 03:46:50 -0600

First of all I am facing the issue with the nova-docker setup. After certain R&D can be able to fix the issue.

Thread reference:

Now I am facing the Issue in launching the Instance. When I am trying to launch the container I am getting the error in instance overview of horizon as follows:

    No valid host was found. There are not enough hosts available.
    File "/home/infics/stack/nova/nova/conductor/", line 392, in build_instances context, request_spec, filter_properties) File "/home/infics/stack/nova/nova/conductor/", line 436, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/home/infics/stack/nova/nova/scheduler/", line 372, in wrapped return func(*args, **kwargs) File "/home/infics/stack/nova/nova/scheduler/client/", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/home/infics/stack/nova/nova/scheduler/client/", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/home/infics/stack/nova/nova/scheduler/client/", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/home/infics/stack/nova/nova/scheduler/", line 121, in select_destinations return, 'select_destinations', **msg_args) File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/", line 158, in call retry=self.retry) File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/", line 90, in _send timeout=timeout, retry=retry) File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/", line 470, in send retry=retry) File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/_drivers/", line 461, in _send raise result

While I was checking regarding this issue I can be able to see the nova scheduler log is showing the details as follows:

2016-09-02 16:08:01.384 WARNING nova.scheduler.utils [req-a4c0701d-04b4-433d-ad64-db09bed4c107 admin admin] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

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

  File "/home/infics/stack/nova/nova/scheduler/", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/home/infics/stack/nova/nova/scheduler/", line 74, in select_destinations
    raise exception.NoValidHost(reason=reason)

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


Now getting a error as follows: nova-conductor

2016-09-06 11:37:10.789 ERROR nova.scheduler.utils [req-e23b1052-4d6d-47e8-8041-fd66f8413ce8 demo demo] [instance: 2f79ac6b-56fb-4a2a-b97c-9a6612794875] Error from last host: infics-devstack (node infics-devstack): [u'Traceback (most recent call last):\n', u'  File "/home/infics/stack/nova/nova/compute/", line 1926, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/home/infics/stack/nova/nova/compute/", line 2116, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 2f79ac6b-56fb-4a2a-b97c-9a6612794875 was re-scheduled: Cannot setup network: Unexpected error while running command.\nCommand: sudo nova-rootwrap /etc/nova/rootwrap.conf ln ...
edit retag flag offensive close merge delete


Is it the same problem you were facing here?

Antonio G. gravatar imageAntonio G. ( 2016-09-02 09:36:18 -0600 )edit

No that is different, That error was due to the name of the created image and box name didn't matched, But this one is different.

itsme gravatar imageitsme ( 2016-09-05 23:29:45 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2016-09-07 00:36:01 -0600

itsme gravatar image

I can be able to find the solution for the issue I faced before.

I needed to execute the following command to see that it is working fine.

$ sudo cp nova-docker/etc/nova/rootwrap.d/docker.filters \ /etc/nova/rootwrap.d

Once I have executed this I can be able to see that instance creation is working fine as expected.

edit flag offensive delete link more


Excellent. Could you please confirm the disk size of a compute node for future reference?

hkominos gravatar imagehkominos ( 2016-09-07 03:06:25 -0600 )edit

answered 2016-09-06 02:03:43 -0600

hkominos gravatar image

updated 2016-09-06 02:15:01 -0600

I have only worked with fuel but I was having similar problems. I would first like to ask you what Does openstack report as a Hard disk size in your hypervisor list on the Horizon interface. There is currently a weird behavior in the driver and no matter what size of HD you have you can only see 26 Giga . I for example could not spawn containers with HD more than 12 Giga. Can you please try to spawn an image with small hd size ? (8 Giga for example) and tell me if it worked?

edit flag offensive delete link more


@hkominos please check the question now

itsme gravatar imageitsme ( 2016-09-06 03:45:45 -0600 )edit

Just as a sanity check. I assume you installed nova-docker from the correct branch. Not the master one.

hkominos gravatar imagehkominos ( 2016-09-06 03:49:37 -0600 )edit

I am using devstack, How we can check whether we are using master or any other branch, Because enable_plugin options is not used in this case.

itsme gravatar imageitsme ( 2016-09-06 04:23:34 -0600 )edit

this is local.conf used, Devstack repository is from mitaka branch, How come I can check which branch docker is working.

itsme gravatar imageitsme ( 2016-09-06 04:25:32 -0600 )edit

I really have no idea how devstack works. I do know however that you must switch to the stable/mitaka branch when installing nova-docker on the compute node. (git branch stable/mitaka) and then run the installation from that branch!

hkominos gravatar imagehkominos ( 2016-09-06 05:51:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-09-02 05:48:58 -0600

Seen: 156 times

Last updated: Sep 07 '16