[Openstack] Devstack -- fails to launch instance
Bilel Msekni
skible at hotmail.fr
Tue Oct 2 13:54:17 UTC 2012
Le 02/10/2012 15:39, Afef MDHAFFAR a écrit :
> Hi all,
>
> I used devstack to install openstack on an ubuntu 12.04 with xcp.
> I followed this link:
> https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md
> The script installed almost everything. The dashboard is working and
> shows that all services are running.
> However, launching "nova-manage service list" shows that nova-compute
> is not working.
> I also was unable to launch an instance from the dashboard and command
> line.
> Here are errors shown by nova-compute.
> Is there any way to solve this problem?
>
> -------------------------------------------------------
> 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
> 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'"].
> Traceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py",
> line 97, in wait
> readers.get(fileno, noop).cb(fileno)
> File
> "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 192, in main
> result = function(*args, **kwargs)
> File "/opt/stack/nova/nova/service.py", line 132, in run_server
> server.start()
> File "/opt/stack/nova/nova/service.py", line 410, in start
> self.manager.update_available_resource(ctxt)
> File "/opt/stack/nova/nova/compute/manager.py", line 2775, in
> update_available_resource
> self.resource_tracker.update_available_resource(context)
> File "/opt/stack/nova/nova/utils.py", line 760, in inner
> retval = f(*args, **kwargs)
> File "/opt/stack/nova/nova/compute/resource_tracker.py", line 366,
> in update_available_resource
> resources = self.driver.get_available_resource()
> File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 380, in
> get_available_resource
> host_stats = self.get_host_stats(refresh=True)
> File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 542, in
> get_host_stats
> return self.host_state.get_host_stats(refresh=refresh)
> File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 159, in
> host_state
> self._host_state = host.HostState(self._session)
> File "/opt/stack/nova/nova/virt/xenapi/host.py", line 134, in __init__
> self.update_status()
> File "/opt/stack/nova/nova/virt/xenapi/host.py", line 162, in
> update_status
> data["disk_total"] = total
> TypeError: 'str' object does not support item assignment
> Removing descriptor: 5
> 2012-10-02 09:34:11 CRITICAL nova [-] 'str' object does not support
> item assignment
> 2012-10-02 09:34:11 TRACE nova Traceback (most recent call last):
> 2012-10-02 09:34:11 TRACE nova File "/usr/local/bin/nova-compute",
> line 7, in <module>
> 2012-10-02 09:34:11 TRACE nova execfile(__file__)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/bin/nova-compute", line 48, in <module>
> 2012-10-02 09:34:11 TRACE nova service.wait()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/service.py", line 659, in wait
> 2012-10-02 09:34:11 TRACE nova _launcher.wait()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/service.py", line 192, in wait
> 2012-10-02 09:34:11 TRACE nova super(ServiceLauncher, self).wait()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/service.py", line 162, in wait
> 2012-10-02 09:34:11 TRACE nova service.wait()
> 2012-10-02 09:34:11 TRACE nova File
> "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 166, in wait
> 2012-10-02 09:34:11 TRACE nova return self._exit_event.wait()
> 2012-10-02 09:34:11 TRACE nova File
> "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116,
> in wait
> 2012-10-02 09:34:11 TRACE nova return hubs.get_hub().switch()
> 2012-10-02 09:34:11 TRACE nova File
> "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line
> 177, in switch
> 2012-10-02 09:34:11 TRACE nova return self.greenlet.switch()
> 2012-10-02 09:34:11 TRACE nova File
> "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 192, in main
> 2012-10-02 09:34:11 TRACE nova result = function(*args, **kwargs)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/service.py", line 132, in run_server
> 2012-10-02 09:34:11 TRACE nova server.start()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/service.py", line 410, in start
> 2012-10-02 09:34:11 TRACE nova
> self.manager.update_available_resource(ctxt)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/compute/manager.py", line 2775, in
> update_available_resource
> 2012-10-02 09:34:11 TRACE nova
> self.resource_tracker.update_available_resource(context)
> 2012-10-02 09:34:11 TRACE nova File "/opt/stack/nova/nova/utils.py",
> line 760, in inner
> 2012-10-02 09:34:11 TRACE nova retval = f(*args, **kwargs)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/compute/resource_tracker.py", line 366, in
> update_available_resource
> 2012-10-02 09:34:11 TRACE nova resources =
> self.driver.get_available_resource()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/virt/xenapi/driver.py", line 380, in
> get_available_resource
> 2012-10-02 09:34:11 TRACE nova host_stats =
> self.get_host_stats(refresh=True)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/virt/xenapi/driver.py", line 542, in get_host_stats
> 2012-10-02 09:34:11 TRACE nova return
> self.host_state.get_host_stats(refresh=refresh)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/virt/xenapi/driver.py", line 159, in host_state
> 2012-10-02 09:34:11 TRACE nova self._host_state =
> host.HostState(self._session)
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/virt/xenapi/host.py", line 134, in __init__
> 2012-10-02 09:34:11 TRACE nova self.update_status()
> 2012-10-02 09:34:11 TRACE nova File
> "/opt/stack/nova/nova/virt/xenapi/host.py", line 162, in update_status
> 2012-10-02 09:34:11 TRACE nova data["disk_total"] = total
> 2012-10-02 09:34:11 TRACE nova TypeError: 'str' object does not
> support item assignment
> 2012-10-02 09:34:11 TRACE nova
>
>
> --------------
>
> Thank you,
> Afef
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
Hi Afef,
Can you please send me your localrc file for more details !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121002/729aa366/attachment.html>
More information about the Openstack
mailing list