Ask Your Question
0

Log error for set_host_enabled ??

asked 2013-09-09 14:28:44 -0500

kam gravatar image

Been working with this for a while. I am (finally) getting the nova-compute box, onxl4279, to be listed as a host ...

root@onxl4279:/var/log# nova availability-zone-list
+---------------------------+----------------------------------------+
| Name                      | Status                                 |
+---------------------------+----------------------------------------+
| internal                  | available                              |
| |- onxl4246.work.kam.com |                                        |
| | |- nova-conductor       | enabled :-) 2013-09-09T18:30:27.000000 |
| | |- nova-consoleauth     | enabled :-) 2013-09-09T18:30:24.000000 |
| | |- nova-scheduler       | enabled :-) 2013-09-09T18:30:32.000000 |
| | |- nova-cert            | enabled :-) 2013-09-09T18:30:24.000000 |
| nova                      | available                              |
| |- onxl4246.work.kam.com |                                        |
| | |- nova-compute         | enabled :-) 2013-09-09T18:30:32.000000 |
| |- onxl4249.work.kam.com |                                        |
| | |- nova-compute         | enabled :-) 2013-09-09T18:30:32.000000 |
| |- onxl4250.work.kam.com |                                        |
| | |- nova-compute         | enabled :-) 2013-09-09T18:30:32.000000 |
| |- onxl4279.work.kam.com |                                        |
| | |- nova-compute         | enabled :-) 2013-09-09T18:30:30.000000 |
+---------------------------+----------------------------------------+

but I can't get it to host a VM.

nova boot --flavor m1.micro --image cirros-0.3.1-x86_64-uec --num-instances 2 --availability-zone nova:onxl4279 kev333

Gives me an Error on horizon and on the list

root@onxl4279:/var/log# nova list
+--------------------------------------+---------------------------------------------+--------+----------+
| ID                                   | Name                                        | Status | Networks |
+--------------------------------------+---------------------------------------------+--------+----------+
| 08e0994e-d764-4a8e-a514-e5035d354b78 | kev444-08e0994e-d764-4a8e-a514-e5035d354b78 | ERROR  |          |
| d52b6dbb-4392-40c7-bd4c-40783e0e2631 | kev444-d52b6dbb-4392-40c7-bd4c-40783e0e2631 | ERROR  |          |
+--------------------------------------+---------------------------------------------+--------+----------+

The end of the nova-compute.log is not helping much but the only thing I can see is...

2013-09-09 14:27:31.057 ERROR nova.openstack.common.rpc.amqp [|req-c2c35aa5-4e41-4f20-ae26-c9b1138b7157 |madmin demo] |Exception during message handling
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |Traceback (most recent call last):
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    rval = self.proxy.dispatch(ctxt, version, method, **args)
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    return getattr(proxyobj, method)(ctxt, **kwargs)
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    temp_level, payload)
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    self.gen.next()
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 94, in wrapped
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    return f(self, context, *args, **kw)
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2608, in set_host_enabled
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    return self.driver.set_host_enabled(host, enabled)
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |  File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 703, in set_host_enabled
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |    raise NotImplementedError()
2013-09-09 14:27:31.057 TRACE nova.openstack.common.rpc.amqp |NotImplementedError ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-10 05:25:37 -0500

unmesh-gurjar gravatar image

The error trace above indicates that your Virt driver does not implement host power management (I guess you are using libvirt). AFAIU, this is not the cause for your instances going into ERROR state. You probably need to dig into the nova-scheduler logs to determine the cause (since I assume the request hasn't yet made it to the Compute; because there are no error logs in compute other than the set_host_enabled NotImplementedError). I am not sure, but can you try giving the entire host name (onxl4279.work.kam.com ) in the nova boot command and check if it works!

edit flag offensive delete link more

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

Stats

Asked: 2013-09-09 14:28:44 -0500

Seen: 166 times

Last updated: Sep 09 '13