<div dir="ltr">Hi,<br>
<br>
I am trying to use Openstack Havana to control XCP hypervisor with
neutron OVS plugin. I can launch instances normally but unable to
logging to guest console. Please see the below log from nova compute to
get a clear idea.<br>
<br>
Log:<br>
<br>
2013-10-29 14:09:10.203 954 AUDIT nova.compute.manager
[req-157fb348-69fb-4b7f-b50c-44ef85e85f11
42ffb12172244726a1a15d044167de86 2c4acdf64eed40f7a9efcf3b7dd13259]
[instance: cf5678ec-5284-48cc-a8d6-005eac42118e] Get console output<br>
2013-10-29 14:09:10.296 954 ERROR nova.virt.xenapi.vmops
[req-157fb348-69fb-4b7f-b50c-44ef85e85f11
42ffb12172244726a1a15d044167de86 2c4acdf64eed40f7a9efcf3b7dd13259]
['XENAPI_PLUGIN_FAILURE', 'get_console_log', 'IOError', "[Errno 2] No
such file or directory: '/var/log/xen/guest/console.7'"]<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops Traceback (most recent call last):<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 1446,
in get_console_output<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops 'get_console_log', {'dom_id': dom_id})<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 796,
in call_plugin<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops host, plugin, fn, args)<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 851,
in _unwrap_plugin_exceptions<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops return func(*args, **kwargs)<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 229, in
__call__<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops return self.__send(self.__name, args)<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops result = _parse_result(getattr(self, methodname)(*full_params))<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 203, in
_parse_result<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops raise Failure(result['ErrorDescription'])<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops Failure:
['XENAPI_PLUGIN_FAILURE', 'get_console_log', 'IOError', "[Errno 2] No
such file or directory: '/var/log/xen/guest/console.7'"]<br>
2013-10-29 14:09:10.296 954 TRACE nova.virt.xenapi.vmops<br>
2013-10-29 14:09:10.358 954 ERROR nova.openstack.common.rpc.amqp
[req-157fb348-69fb-4b7f-b50c-44ef85e85f11
42ffb12172244726a1a15d044167de86 2c4acdf64eed40f7a9efcf3b7dd13259]
Exception during message handling<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py",
line 461, in _process_data<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp **args)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py",
line 172, in dispatch<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 90, in
wrapped<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp payload)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/exception.py", line 73, in
wrapped<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp return f(self, context, *args, **kw)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 271, in
decorated_function<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp e, sys.exc_info())<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 258, in
decorated_function<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp return function(self, context, *args, **kwargs)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 3502,
in get_console_output<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp output = self.driver.get_console_output(instance)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 374,
in get_console_output<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp return self._vmops.get_console_output(instance)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp File
"/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 1450,
in get_console_output<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp raise exception.NovaException(msg)<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp NovaException: Guest does not have a console available<br>
2013-10-29 14:09:10.358 954 TRACE nova.openstack.common.rpc.amqp<br>
2013-10-29 14:09:10.362 954 ERROR nova.openstack.common.rpc.common
[req-157fb348-69fb-4b7f-b50c-44ef85e85f11
42ffb12172244726a1a15d044167de86 2c4acdf64eed40f7a9efcf3b7dd13259]
Returning exception Guest does not have a console available to caller<br>
<br>
Any pointers to debug the issue would be really helpful. Please let me know how I can debug this issue.<br>
<br>
Regards,<br>
Rajshree<br>
<br></div>