Ask Your Question
0

xenapi plugin exception when launching an instance

asked 2011-09-23 14:39:06 -0600

arturo-lorenzo gravatar image

Hi, I am getting a timeout when launching an instance. I am running XCP version 1.1 then launching a VM with ubuntu 10.04 64bit where I have installed nova core:trunk on it. The instance is running: INSTANCE i-00000002 ami-00000003 10.0.0.2 10.0.0.2 running None (openstack, ubuntu-xcp-os) 0 m1.small 2011-09-23T14:26:10Z nova aki-00000002 ari-00000001 but the nova-compute.log shows the error. 2011-09-23 10:27:45,160 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenserver vm state -> |Running| 2011-09-23 10:27:45,160 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenapi power_state -> |1| 2011-09-23 10:27:46,411 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenserver vm state -> |Running| 2011-09-23 10:27:46,411 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenapi power_state -> |1| 2011-09-23 10:27:47,056 INFO nova.compute.manager [-] Found 1 in the database and 2 on the hypervisor. 2011-09-23 10:27:58,678 WARNING nova.virt.xenapi [-] Task [Async.host.call_plugin] OpaqueRef:2b20672c-f48e-1714-8ed6-513609ae1e3b status: failure ['XENAPI_PLUGIN_EXCEPTION', 'version', 'PluginError', 'TIMEOUT: No response from agent within 30 seconds.'] 2011-09-23 10:27:58,679 ERROR nova.virt.xenapi.vmops [-] TIMEOUT: The call to version timed out. VM id=2; args={'path': '', 'dom_id': '4', 'id': '01b8df39-374d-45d4-b30d-59e80884ff85'} 2011-09-23 10:27:58,679 ERROR nova.virt.xenapi.vmops [-] Failed to query agent version: {'message': 'TIMEOUT: No response from agent within 30 seconds.', 'returncode': 'timeout'} 2011-09-23 10:28:29,738 WARNING nova.virt.xenapi [-] Task [Async.host.call_plugin] OpaqueRef:c206d84d-377d-b79c-7434-fb5d68a5f874 status: failure ['XENAPI_PLUGIN_EXCEPTION', 'version', 'PluginError', 'TIMEOUT: No response from agent within 30 seconds.'] 2011-09-23 10:28:29,739 ERROR nova.virt.xenapi.vmops [-] TIMEOUT: The call to version timed out. VM id=2; args={'path': '', 'dom_id': '4', 'id': 'c593c2b6-52cb-45e8-be3c-98a490c30cce'} 2011-09-23 10:28:29,739 ERROR nova.virt.xenapi.vmops [-] Failed to query agent version: {'message': 'TIMEOUT: No response from agent within 30 seconds.', 'returncode': 'timeout'} 2011-09-23 10:28:47,077 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=9716) periodic_tasks /root/openstack/nova/nova/manager.py:111 2011-09-23 10:28:47,077 DEBUG nova.rpc [-] Making asynchronous fanout cast... from (pid=9716) fanout_cast /root/openstack/nova/nova/rpc/impl_kombu.py:754 2011-09-23 10:28:47,480 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenserver vm state -> |Running| 2011-09-23 10:28:47,480 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenapi power_state -> |1| 2011-09-23 10:28:48,610 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenserver vm state -> |Running| 2011-09-23 10:28:48,611 INFO nova.virt.xenapi.vm_utils [-] (VM_UTILS) xenapi power_state -> |1|

2011-09-23 10:28:49,185 INFO nova.compute.manager [-] Found 1 in the database and 2 on the hypervisor.

Do I have to run something else in the xenserver (xcp) ? agent? any ideas? thanks!

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-03 23:33:19 -0600

I just pushed up a new branch which adds a minor new feature but also fixes the unit test problem you're seeing.

https://github.com/rackspace/openstack-guest-agents-unix/tree/add-network-label (https://github.com/rackspace/openstac...)

edit flag offensive delete link more
0

answered 2011-09-29 16:31:56 -0600

Hi Arturo,

Does the image your trying to boot have the openstack guest agent installed:

https://launchpad.net/openstack-guest-agents (https://launchpad.net/openstack-guest...)

When using XenServer nova communicates w/ the agent via XenStore on the hypervisor. In your case nova-compute is looking for a response from the agent (which is also stored in XenServer) and it is timing out.

Also, you might hit up comstud on IRC if you are looking for the latest agent builds.

Hope this helps.

Dan

edit flag offensive delete link more
0

answered 2012-10-03 21:26:36 -0600

Hi,

I got the same problem. When I tried to install guest agent, I got this error (make check):

make[2]: Entering directory /home/afef.mdhaffar/rackspace-openstack-guest-agents-unix-e8170bf' Traceback (most recent call last): File "run_tests.py", line 38, in <module> tests.agent_test.run_tests(modules) File "/home/afef.mdhaffar/rackspace-openstack-guest-agents-unix-e8170bf/tests/agent_test.py", line 42, in run_tests test_suite = unittest.TestLoader().loadTestsFromNames(modules) File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName parent, obj = obj, getattr(obj, part) AttributeError: 'module' object has no attribute 'test_freebsd_network' make[2]: *** [check-local] Error 1 make[2]: Leaving directory/home/afef.mdhaffar/rackspace-openstack-guest-agents-unix-e8170bf' make[1]: * [check-am] Error 2 make[1]: Leaving directory `/home/afef.mdhaffar/rackspace-openstack-guest-agents-unix-e8170bf' make: * [check-recursive] Error 1

Any idea to fix this problem ????

Thank you, Afef

edit flag offensive delete link more
0

answered 2012-10-04 13:40:01 -0600

johngarbutt gravatar image

That exception shouldn't actually be a problem if you don't need the functionality the agent gives you.

If you use cloud-init you should get things like ssh-key injection, and DHCP, if you are using it, will get the IP configuration setup properly.

But if you install the agent (linux or windows one) it gives you extra goodies like password reset. Obviously, in certain cases that can be a life saver!

edit flag offensive delete link more
0

answered 2012-10-04 13:40:58 -0600

johngarbutt gravatar image

Sorry my bad, got confused with dates here!

edit flag offensive delete link more
0

answered 2012-10-04 14:08:03 -0600

Hi all,

I installed the openstack guest agent on the image. But, I still have the same errors : Any other way to solve it ?

Thank you, Afef


2012-10-04 13:50:37 DEBUG nova.manager [-] Running periodic task ComputeManager._report_driver_status from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:172 2012-10-04 13:50:37 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_unconfirmed_resizes from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:172 2012-10-04 13:50:41 DEBUG nova.virt.xenapi.driver [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] Got exception: ['XENAPI_PLUGIN_FAILURE', 'version', 'PluginError', 'TIMEOUT: No response from agent within 30 seconds.'] from (pid=30089) _unwrap_plugin_exceptions /opt/stack/nova/nova/virt/xenapi/driver.py:728 2012-10-04 13:50:41 ERROR nova.virt.xenapi.agent [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] [instance: 718f906a-0d39-4570-a214-1c7735421fef] TIMEOUT: The call to version timed out. args={'dom_id': '70', 'id': '0f8e915c-c1e0-4754-91f7-3a60d45d5c0e', 'timeout': '30', 'host_uuid': '5471348a-5b5c-9bdf-ce4f-f375127879b5'} 2012-10-04 13:50:41 ERROR nova.virt.xenapi.agent [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] [instance: 718f906a-0d39-4570-a214-1c7735421fef] Failed to query agent version: {'message': 'TIMEOUT: No response from agent within 30 seconds.', 'returncode': 'timeout'} 2012-10-04 13:51:12 DEBUG nova.virt.xenapi.driver [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] Got exception: ['XENAPI_PLUGIN_FAILURE', 'version', 'XenstoreError', "cmd: ['xenstore-rm', '/local/domain/70/data/host/ecf13d5f-6733-4eb2-9ffb-c056772c2944']; returncode: 1; stderr: xenstore-rm: could not remove path /local/domain/70/data/host/ecf13d5f-6733-4eb2-9ffb-c056772c2944\n; stdout: "] from (pid=30089) _unwrap_plugin_exceptions /opt/stack/nova/nova/virt/xenapi/driver.py:728 2012-10-04 13:51:12 ERROR nova.virt.xenapi.agent [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] [instance: 718f906a-0d39-4570-a214-1c7735421fef] The call to version returned an error: ['XENAPI_PLUGIN_FAILURE', 'version', 'XenstoreError', "cmd: ['xenstore-rm', '/local/domain/70/data/host/ecf13d5f-6733-4eb2-9ffb-c056772c2944']; returncode: 1; stderr: xenstore-rm: could not remove path /local/domain/70/data/host/ecf13d5f-6733-4eb2-9ffb-c056772c2944\n; stdout: "]. args={'dom_id': '70', 'id': 'ecf13d5f-6733-4eb2-9ffb-c056772c2944', 'timeout': '30', 'host_uuid': '5471348a-5b5c-9bdf-ce4f-f375127879b5'} 2012-10-04 13:51:12 ERROR nova.virt.xenapi.agent [req-4d8a0269-0eb4-4a17-a9fc-29a7d047dc2b demo demo] [instance: 718f906a-0d39-4570-a214-1c7735421fef] Failed to query agent version: {'message': '; stdout: ', 'returncode': 'error'} 2012-10-04 13:51:37 DEBUG nova.manager [-] Running periodic task ComputeManager._publish_service_capabilities from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:172 2012-10-04 13:51:37 DEBUG nova.manager [-] Notifying Schedulers of capabilities ... from (pid=30089) _publish_service_capabilities /opt/stack/nova/nova/manager.py:231 2012-10-04 13:51:37 DEBUG nova.openstack.common.rpc.amqp [-] Making asynchronous fanout cast... from (pid=30089) fanout_cast /opt/stack/nova/nova/openstack/common/rpc/amqp.py:384 2012-10-04 13:51:37 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_rescued_instances from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:172 2012-10-04 13:51:37 DEBUG nova.manager [-] Skipping ComputeManager._sync_power_states, 4 ticks left until next run from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:167 2012-10-04 13:51:37 DEBUG nova.manager [-] Running periodic task ComputeManager._poll_bandwidth_usage from (pid=30089) periodic_tasks /opt/stack/nova/nova/manager.py:172 2012-10-04 13:51:37 INFO nova.compute.manager [-] Updating bandwidth usage cache 2012-10-04 13:51:37 ERROR nova.manager [-] Error during ComputeManager._poll_bandwidth_usage: 'module' object has no attribute 'fetch_bandwidth' 2012-10-04 13:51:37 TRACE nova.manager Traceback (most recent call last): 2012-10-04 13:51:37 TRACE nova.manager File ...

(more)
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-09-23 14:39:06 -0600

Seen: 142 times

Last updated: Oct 04 '12