Please check if Nova compute is running.  Bounce it if it¹s not.

ubuntu@trusty1:~/devstack$ nova-manage service list
Binary           Host                                 Zone
Status     State Updated_At
nova-conductor   trusty1                              internal
enabled    :-)   2014-11-03 20:31:05
nova-compute     trusty1                              nova
enabled    :-)   2014-11-03 20:31:07
nova-cert        trusty1                              internal
enabled    :-)   2014-11-03 20:31:12
nova-scheduler   trusty1                              internal
enabled    :-)   2014-11-03 20:31:10
nova-consoleauth trusty1                              internal
enabled    :-)   2014-11-03 20:31:06

ubuntu@trusty1:~/devstack$ nova-manage service disable --host=trusty1
--service=nova-compute
Service nova-compute on host trusty1 disabled.

ubuntu@trusty1:~/devstack$ nova-manage service list
Binary           Host                                 Zone
Status     State Updated_At
nova-conductor   trusty1                              internal
enabled    :-)   2014-11-03 20:32:45
nova-compute     trusty1                              nova
disabled   :-)   2014-11-03 20:32:47
nova-cert        trusty1                              internal
enabled    :-)   2014-11-03 20:32:52
nova-scheduler   trusty1                              internal
enabled    :-)   2014-11-03 20:32:50
nova-consoleauth trusty1                              internal
enabled    :-)   2014-11-03 20:32:46

ubuntu@trusty1:~/devstack$ nova-manage service enable --host=trusty1
--service=nova-compute
Service nova-compute on host trusty1 enabled.

ubuntu@trusty1:~/devstack$ nova-manage service list
Binary           Host                                 Zone
Status     State Updated_At
nova-conductor   trusty1                              internal
enabled    :-)   2014-11-03 20:33:05
nova-compute     trusty1                              nova
enabled    :-)   2014-11-03 20:33:09
nova-cert        trusty1                              internal
enabled    :-)   2014-11-03 20:33:12
nova-scheduler   trusty1                              internal
enabled    :-)   2014-11-03 20:33:10
nova-consoleauth trusty1                              internal
enabled    :-)   2014-11-03 20:33:06
ubuntu@trusty1:~/devstack$


Danny

On 11/3/14, 1:00 PM, "openstack-requ...@lists.openstack.org"
<openstack-requ...@lists.openstack.org> wrote:

>Date: Mon, 3 Nov 2014 10:56:32 +0800
>From: Du Jun <dj199...@gmail.com>
>To: openstack@lists.openstack.org
>Subject: [Openstack] Fail to launch instance due to "No valid host was
>       found" ERROR
>Message-ID:
>       <CABvddo65sUi6-_xRm0b+bfkf=abydn6epfqjfnr4+fv0egu...@mail.gmail.com>
>Content-Type: text/plain; charset="utf-8"
>
>Hi all,
>
>When I try to launch an instance using command:
>
>"nova boot --flavor 2 --image 575623a9-fcbe-4925-86c0-0042d2cb9745
>test-nova
>"
>
>I get the following message:
>
>fault                                | {"message": "No valid host was
>found. There are not enough hosts available.", "code": 500, "details": "
>File \"/opt/stack/nova/nova/conductor/manager.py\", line 614, in
>build_instances
>
>
>when I look at the log produced by nova-schedule, I can see:
>
>
>2014-11-03 10:29:11.301 INFO nova.filters
>[*req-c811049f-c670-4205-9436-a812a048d2f9
>*admin admin] Filter RetryFilter returned 0 hosts
>
>2014-11-03 10:29:11.301 DEBUG nova.scheduler.filter_scheduler
>[*req-c811049f-c670-4205-9436-a812a048d2f9
>*admin admin] There are 0 hosts available but 1 instances requested to
>build. from (pid=17646) select_destinations
>/opt/stack/nova/nova/scheduler/filter_scheduler.py:157
>
>
>It seems that openstack controller can't recognize my host. BTW, my host
>has enough resources, such as memory, cpu, disk and so on.
>
>
>I have no idea now, any help will be appreciated.
>
>
>--
>
>Frank
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: 
><http://lists.openstack.org/pipermail/openstack/attachments/20141103/2c0d7
>ad9/attachment-0001.html>
>
>------------------------------


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to