Hi all,<div><br></div><div>I used devstack to install openstack on an ubuntu 12.04 with xcp.</div><div>I followed this link: <a href="https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md">https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md</a></div>
<div>The script installed almost everything. The dashboard is working and shows that all services are running.</div><div>However, launching "nova-manage service list" shows that nova-compute is not working.</div>
<div>I also was unable to launch an instance from the dashboard and command line.</div><div>Here are errors shown by nova-compute.</div><div>Is there any way to solve this problem?</div><div><br></div><div>-------------------------------------------------------</div>
<div><div>2012-10-02 09:34:10 DEBUG nova.virt.xenapi.driver [-] Got exception: ['XENAPI_PLUGIN_FAILURE', 'host_data', 'IOError', "[Errno 2] No such file or directory: '/usr/etc/xenhost.conf'"] from (pid=4770) _unwrap_plugin_exceptions /opt/stack/nova/nova/virt/xenapi/driver.py:728</div>
<div>2012-10-02 09:34:10 ERROR nova.virt.xenapi.host [-] The call to host_data returned an error: ['XENAPI_PLUGIN_FAILURE', 'host_data', 'IOError', "[Errno 2] No such file or directory: '/usr/etc/xenhost.conf'"].</div>
<div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 97, in wait</div><div>    readers.get(fileno, noop).cb(fileno)</div><div>  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main</div>
<div>    result = function(*args, **kwargs)</div><div>  File "/opt/stack/nova/nova/service.py", line 132, in run_server</div><div>    server.start()</div><div>  File "/opt/stack/nova/nova/service.py", line 410, in start</div>
<div>    self.manager.update_available_resource(ctxt)</div><div>  File "/opt/stack/nova/nova/compute/manager.py", line 2775, in update_available_resource</div><div>    self.resource_tracker.update_available_resource(context)</div>
<div>  File "/opt/stack/nova/nova/utils.py", line 760, in inner</div><div>    retval = f(*args, **kwargs)</div><div>  File "/opt/stack/nova/nova/compute/resource_tracker.py", line 366, in update_available_resource</div>
<div>    resources = self.driver.get_available_resource()</div><div>  File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 380, in get_available_resource</div><div>    host_stats = self.get_host_stats(refresh=True)</div>
<div>  File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 542, in get_host_stats</div><div>    return self.host_state.get_host_stats(refresh=refresh)</div><div>  File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 159, in host_state</div>
<div>    self._host_state = host.HostState(self._session)</div><div>  File "/opt/stack/nova/nova/virt/xenapi/host.py", line 134, in __init__</div><div>    self.update_status()</div><div>  File "/opt/stack/nova/nova/virt/xenapi/host.py", line 162, in update_status</div>
<div>    data["disk_total"] = total</div><div>TypeError: 'str' object does not support item assignment</div><div>Removing descriptor: 5</div><div>2012-10-02 09:34:11 CRITICAL nova [-] 'str' object does not support item assignment</div>
<div>2012-10-02 09:34:11 TRACE nova Traceback (most recent call last):</div><div>2012-10-02 09:34:11 TRACE nova   File "/usr/local/bin/nova-compute", line 7, in <module></div><div>2012-10-02 09:34:11 TRACE nova     execfile(__file__)</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/bin/nova-compute", line 48, in <module></div><div>2012-10-02 09:34:11 TRACE nova     service.wait()</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/service.py", line 659, in wait</div>
<div>2012-10-02 09:34:11 TRACE nova     _launcher.wait()</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/service.py", line 192, in wait</div><div>2012-10-02 09:34:11 TRACE nova     super(ServiceLauncher, self).wait()</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/service.py", line 162, in wait</div><div>2012-10-02 09:34:11 TRACE nova     service.wait()</div><div>2012-10-02 09:34:11 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 166, in wait</div>
<div>2012-10-02 09:34:11 TRACE nova     return self._exit_event.wait()</div><div>2012-10-02 09:34:11 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait</div><div>2012-10-02 09:34:11 TRACE nova     return hubs.get_hub().switch()</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 177, in switch</div><div>2012-10-02 09:34:11 TRACE nova     return self.greenlet.switch()</div><div>
2012-10-02 09:34:11 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main</div><div>2012-10-02 09:34:11 TRACE nova     result = function(*args, **kwargs)</div><div>
2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/service.py", line 132, in run_server</div><div>2012-10-02 09:34:11 TRACE nova     server.start()</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/service.py", line 410, in start</div>
<div>2012-10-02 09:34:11 TRACE nova     self.manager.update_available_resource(ctxt)</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/compute/manager.py", line 2775, in update_available_resource</div>
<div>2012-10-02 09:34:11 TRACE nova     self.resource_tracker.update_available_resource(context)</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/utils.py", line 760, in inner</div><div>2012-10-02 09:34:11 TRACE nova     retval = f(*args, **kwargs)</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 366, in update_available_resource</div><div>2012-10-02 09:34:11 TRACE nova     resources = self.driver.get_available_resource()</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 380, in get_available_resource</div><div>2012-10-02 09:34:11 TRACE nova     host_stats = self.get_host_stats(refresh=True)</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 542, in get_host_stats</div><div>2012-10-02 09:34:11 TRACE nova     return self.host_state.get_host_stats(refresh=refresh)</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 159, in host_state</div><div>2012-10-02 09:34:11 TRACE nova     self._host_state = host.HostState(self._session)</div>
<div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/virt/xenapi/host.py", line 134, in __init__</div><div>2012-10-02 09:34:11 TRACE nova     self.update_status()</div><div>2012-10-02 09:34:11 TRACE nova   File "/opt/stack/nova/nova/virt/xenapi/host.py", line 162, in update_status</div>
<div>2012-10-02 09:34:11 TRACE nova     data["disk_total"] = total</div><div>2012-10-02 09:34:11 TRACE nova TypeError: 'str' object does not support item assignment</div><div>2012-10-02 09:34:11 TRACE nova </div>
</div><div><br></div><div><br></div><div>--------------</div><div><br></div><div>Thank you,</div><div>Afef<br><br>
</div>