openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #17085
Re: Devstack -- fails to launch instance
OK, so XCP-XAPI install is not that well documented yet. There is at least one manual step to make the XenAPI plugins work.
What you need to run, on your Dom0 is this:
sudo mkdir -p /usr/etc
I think it is simply not present because it is Ubuntu and not CentOS 5.x that you get with XenServer and the XCP ISO.
Hope that helps,
John
From: openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+john.garbutt=citrix.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Afef MDHAFFAR
Sent: Tuesday, October 2, 2012 3:03 PM
To: Bilel Msekni
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] Devstack -- fails to launch instance
Here is my localrc file:
MYSQL_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=
RABBIT_PASSWORD=password
# This is the password for your guest (for both stack and root users)
GUEST_PASSWORD=password
# IMPORTANT: The following must be set to your dom0 root password!
XENAPI_PASSWORD=password
# Do not download the usual images yet!
IMAGE_URLS=""
# Explicitly set virt driver here
VIRT_DRIVER=xenserver
# Explicitly set multi-host
MULTI_HOST=1
# Give extra time for boot
ACTIVE_TIMEOUT=45
# Interface on which you would like to access services
HOST_IP_IFACE=eth3
# First time Ubuntu network install params
NETINSTALLIP="dhcp"
NAMESERVERS="ip1"
NETMASK="255.255.255.0"
GATEWAY="ip1"
PUB_IP="ip2"
PUB_BR=xenbr0
PUB_DEV=eth0
#ENABLE_GI=false
UBUNTU_INST_IP="dhcp"
UBUNTU_INST_NAMESERVERS=""
UBUNTU_INST_NETMASK=""
UBUNTU_INST_GATEWAY=""
UBUNTU_INST_ARCH="amd64"
UBUNTU_INST_REPOSITORY="http://archive.ubuntu.net/ubuntu"
UBUNTU_INST_LOCALE="en_US"
UBUNTU_INST_KEYBOARD="us"
2012/10/2 Bilel Msekni <skible@xxxxxxxxxx<mailto:skible@xxxxxxxxxx>>
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@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
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 !
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
--
Afef MDHAFFAR
http://www.redcad.org/members/mdhaffar/
Follow ups
References