[Openstack] Fail to launch instance due to "No valid host was found" ERROR
Du Jun
dj199008 at gmail.com
Tue Nov 4 01:02:44 UTC 2014
I found nova-compute service is missing in my system.
root at ubuntu:~# nova-manage service list
2014-11-04 08:57:51.487 DEBUG nova.servicegroup.api [-] ServiceGroup driver
defined as an instance of db from (pid=11867) __new__
/opt/stack/nova/nova/servicegroup/api.py:65
2014-11-04 08:57:51.624 DEBUG oslo.db.api
[*req-280c802a-c653-47e0-aa1c-520aef5d1507
*None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from
(pid=11867) _load_backend
/usr/local/lib/python2.7/dist-packages/oslo/db/api.py:182
2014-11-04 08:57:51.971 DEBUG oslo.db.sqlalchemy.session
[*req-280c802a-c653-47e0-aa1c-520aef5d1507
*None None] 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
from
(pid=11867) _check_effective_sql_mode
/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py:508
Binary Host Zone
Status State Updated_At
nova-conductor ubuntu internal
enabled :-) 2014-11-04 00:57:51
nova-cert ubuntu internal
enabled :-) 2014-11-04 00:57:51
nova-network ubuntu internal
enabled :-) 2014-11-04 00:57:51
nova-scheduler ubuntu internal
enabled :-) 2014-11-04 00:57:44
nova-consoleauth ubuntu internal
enabled :-) 2014-11-04 00:57:47
when I try to enable nova-compute service, I get the ERROR message:
root at ubuntu:~# nova-manage service enable --host=ubuntu
--service=nova-compute
2014-11-04 08:57:41.416 DEBUG oslo.db.api
[*req-bd49412c-4e51-43c5-b337-120635cffadd
*None None] Loading backend 'sqlalchemy' from 'nova.db.sqlalchemy.api' from
(pid=11859) _load_backend
/usr/local/lib/python2.7/dist-packages/oslo/db/api.py:182
2014-11-04 08:57:41.963 DEBUG oslo.db.sqlalchemy.session
[*req-bd49412c-4e51-43c5-b337-120635cffadd
*None None] 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
from
(pid=11859) _check_effective_sql_mode
/usr/local/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py:508
error: Could not find binary nova-compute on host ubuntu.
It says, nova-compute binary is missing in my host.
2014-11-04 4:48 GMT+08:00 Danny Choi (dannchoi) <dannchoi at cisco.com>:
> Please check if Nova compute is running. Bounce it if it¹s not.
>
> ubuntu at 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 at trusty1:~/devstack$ nova-manage service disable --host=trusty1
> --service=nova-compute
> Service nova-compute on host trusty1 disabled.
>
> ubuntu at 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 at trusty1:~/devstack$ nova-manage service enable --host=trusty1
> --service=nova-compute
> Service nova-compute on host trusty1 enabled.
>
> ubuntu at 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 at trusty1:~/devstack$
>
>
> Danny
>
> On 11/3/14, 1:00 PM, "openstack-request at lists.openstack.org"
> <openstack-request at lists.openstack.org> wrote:
>
> >Date: Mon, 3 Nov 2014 10:56:32 +0800
> >From: Du Jun <dj199008 at gmail.com>
> >To: openstack at lists.openstack.org
> >Subject: [Openstack] Fail to launch instance due to "No valid host was
> > found" ERROR
> >Message-ID:
> > <CABvddo65sUi6-_xRm0b+bfkf=
> AByDN6EPFQJFNr4+FV0egUz_A at 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 at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141104/c94f303a/attachment.html>
More information about the Openstack
mailing list