<div dir="ltr">I found nova-compute service is missing in my system.<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">root@ubuntu:~# nova-manage service list</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(52,189,38)"><span style="color:rgb(0,0,0)">2014-11-04 08:57:51.487 </span>DEBUG nova.servicegroup.api [<span style="color:rgb(52,187,199)">-</span>] ServiceGroup driver defined as an instance of db<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(175,173,36)">from (pid=11867) __new__ /opt/stack/nova/nova/servicegroup/api.py:65</span></p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)">2014-11-04 08:57:51.624 </span><span style="color:rgb(52,189,38)">DEBUG oslo.db.api [</span><span style="color:rgb(52,187,199)"><b>req-280c802a-c653-47e0-aa1c-520aef5d1507 </b>None None</span><span style="color:rgb(52,189,38)">] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api'</span><span style="color:rgb(0,0,0)"> </span>from (pid=11867) _load_backend /usr/local/lib/python2.7/dist-packages/oslo/db/api.py:182</p>
<p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(52,189,38)"><span style="color:rgb(0,0,0)">2014-11-04 08:57:51.971 </span>DEBUG oslo.db.sqlalchemy.session [<span style="color:rgb(52,187,199)"><b>req-280c802a-c653-47e0-aa1c-520aef5d1507 </b>None None</span>] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(175,173,36)">from (pid=11867) _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py:508</span></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Binary           Host                                 Zone             Status     State Updated_At</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">nova-conductor   ubuntu                               internal         enabled    :-)   2014-11-04 00:57:51</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">nova-cert        ubuntu                               internal         enabled    :-)   2014-11-04 00:57:51</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">nova-network     ubuntu                               internal         enabled    :-)   2014-11-04 00:57:51</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">nova-scheduler   ubuntu                               internal         enabled    :-)   2014-11-04 00:57:44</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">nova-consoleauth ubuntu                               internal         enabled    :-)   2014-11-04 00:57:47</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">when I try to enable nova-compute service, I get the ERROR message:</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">root@ubuntu:~# nova-manage service enable --host=ubuntu --service=nova-compute</p><p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(175,173,36)"><span style="color:rgb(0,0,0)">2014-11-04 08:57:41.416 </span><span style="color:rgb(52,189,38)">DEBUG oslo.db.api [</span><span style="color:rgb(52,187,199)"><b>req-bd49412c-4e51-43c5-b337-120635cffadd </b>None None</span><span style="color:rgb(52,189,38)">] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api'</span><span style="color:rgb(0,0,0)"> </span>from (pid=11859) _load_backend /usr/local/lib/python2.7/dist-packages/oslo/db/api.py:182</p><p style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(52,189,38)"><span style="color:rgb(0,0,0)">2014-11-04 08:57:41.963 </span>DEBUG oslo.db.sqlalchemy.session [<span style="color:rgb(52,187,199)"><b>req-bd49412c-4e51-43c5-b337-120635cffadd </b>None None</span>] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(175,173,36)">from (pid=11859) _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py:508</span></p><p style="margin:0px;font-size:11px;font-family:Menlo">


</p><p style="margin:0px;font-size:11px;font-family:Menlo"><font color="#ff0000">error: Could not find binary nova-compute on host ubuntu.</font></p><p style="margin:0px;font-size:11px;font-family:Menlo"><font color="#ff0000"><br></font></p><p style="margin:0px;font-size:11px;font-family:Menlo"><font color="#ff0000">It says, nova-compute binary is missing in my host.</font></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-04 4:48 GMT+08:00 Danny Choi (dannchoi) <span dir="ltr"><<a href="mailto:dannchoi@cisco.com" target="_blank">dannchoi@cisco.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please check if Nova compute is running.  Bounce it if it¹s not.<br>
<br>
ubuntu@trusty1:~/devstack$ nova-manage service list<br>
Binary           Host                                 Zone<br>
Status     State Updated_At<br>
nova-conductor   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:31:05<br>
nova-compute     trusty1                              nova<br>
enabled    :-)   2014-11-03 20:31:07<br>
nova-cert        trusty1                              internal<br>
enabled    :-)   2014-11-03 20:31:12<br>
nova-scheduler   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:31:10<br>
nova-consoleauth trusty1                              internal<br>
enabled    :-)   2014-11-03 20:31:06<br>
<br>
ubuntu@trusty1:~/devstack$ nova-manage service disable --host=trusty1<br>
--service=nova-compute<br>
Service nova-compute on host trusty1 disabled.<br>
<br>
ubuntu@trusty1:~/devstack$ nova-manage service list<br>
Binary           Host                                 Zone<br>
Status     State Updated_At<br>
nova-conductor   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:32:45<br>
nova-compute     trusty1                              nova<br>
disabled   :-)   2014-11-03 20:32:47<br>
nova-cert        trusty1                              internal<br>
enabled    :-)   2014-11-03 20:32:52<br>
nova-scheduler   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:32:50<br>
nova-consoleauth trusty1                              internal<br>
enabled    :-)   2014-11-03 20:32:46<br>
<br>
ubuntu@trusty1:~/devstack$ nova-manage service enable --host=trusty1<br>
--service=nova-compute<br>
Service nova-compute on host trusty1 enabled.<br>
<br>
ubuntu@trusty1:~/devstack$ nova-manage service list<br>
Binary           Host                                 Zone<br>
Status     State Updated_At<br>
nova-conductor   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:33:05<br>
nova-compute     trusty1                              nova<br>
enabled    :-)   2014-11-03 20:33:09<br>
nova-cert        trusty1                              internal<br>
enabled    :-)   2014-11-03 20:33:12<br>
nova-scheduler   trusty1                              internal<br>
enabled    :-)   2014-11-03 20:33:10<br>
nova-consoleauth trusty1                              internal<br>
enabled    :-)   2014-11-03 20:33:06<br>
ubuntu@trusty1:~/devstack$<br>
<br>
<br>
Danny<br>
<br>
On 11/3/14, 1:00 PM, "<a href="mailto:openstack-request@lists.openstack.org">openstack-request@lists.openstack.org</a>"<br>
<<a href="mailto:openstack-request@lists.openstack.org">openstack-request@lists.openstack.org</a>> wrote:<br>
<br>
>Date: Mon, 3 Nov 2014 10:56:32 +0800<br>
>From: Du Jun <<a href="mailto:dj199008@gmail.com">dj199008@gmail.com</a>><br>
>To: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
>Subject: [Openstack] Fail to launch instance due to "No valid host was<br>
>       found" ERROR<br>
>Message-ID:<br>
>       <CABvddo65sUi6-_xRm0b+bfkf=<a href="mailto:AByDN6EPFQJFNr4%2BFV0egUz_A@mail.gmail.com">AByDN6EPFQJFNr4+FV0egUz_A@mail.gmail.com</a>><br>
>Content-Type: text/plain; charset="utf-8"<br>
<span class="">><br>
>Hi all,<br>
><br>
>When I try to launch an instance using command:<br>
><br>
>"nova boot --flavor 2 --image 575623a9-fcbe-4925-86c0-0042d2cb9745<br>
>test-nova<br>
>"<br>
><br>
>I get the following message:<br>
><br>
>fault                                | {"message": "No valid host was<br>
>found. There are not enough hosts available.", "code": 500, "details": "<br>
>File \"/opt/stack/nova/nova/conductor/manager.py\", line 614, in<br>
>build_instances<br>
><br>
><br>
>when I look at the log produced by nova-schedule, I can see:<br>
><br>
><br>
>2014-11-03 10:29:11.301 INFO nova.filters<br>
</span>>[*req-c811049f-c670-4205-9436-a812a048d2f9<br>
>*admin admin] Filter RetryFilter returned 0 hosts<br>
<span class="">><br>
>2014-11-03 10:29:11.301 DEBUG nova.scheduler.filter_scheduler<br>
</span>>[*req-c811049f-c670-4205-9436-a812a048d2f9<br>
>*admin admin] There are 0 hosts available but 1 instances requested to<br>
<span class="">>build. from (pid=17646) select_destinations<br>
>/opt/stack/nova/nova/scheduler/filter_scheduler.py:157<br>
><br>
><br>
>It seems that openstack controller can't recognize my host. BTW, my host<br>
>has enough resources, such as memory, cpu, disk and so on.<br>
><br>
><br>
>I have no idea now, any help will be appreciated.<br>
><br>
><br>
>--<br>
><br>
>Frank<br>
</span>>-------------- next part --------------<br>
>An HTML attachment was scrubbed...<br>
>URL:<br>
><<a href="http://lists.openstack.org/pipermail/openstack/attachments/20141103/2c0d7" target="_blank">http://lists.openstack.org/pipermail/openstack/attachments/20141103/2c0d7</a><br>
>ad9/attachment-0001.html><br>
><br>
>------------------------------<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</div></div></blockquote></div><br></div>