[Openstack] Install instance failed on xenserver 6.0.2

2012-04-12 Thread Yi Sun
Hi,
I used devstack to install openstack on my xenserver 6.0.2. I followed the 
video found in this link http://wiki.openstack.org/XenServer/DevStack. After 
installation, I can access dashboard. But I failed to launch an instance.
I tried to launch image tty, after launching, the instance status field shows 
Error and there has no new VM  showing up in my xencenter.
I did a ps ax on my domU VM, I see following nova processes:
stack@ALLINONE:~/nova/bin$ ps ax | grep nova
 5246 pts/6S+ 0:02 python /opt/stack/nova/bin/nova-api
 5325 pts/8S+ 0:03 python /opt/stack/nova/bin/nova-cert
 5346 pts/9S+ 0:03 python /opt/stack/nova/bin/nova-volume
 5371 pts/10   S+ 0:03 python /opt/stack/nova/bin/nova-network
 5426 pts/11   S+ 0:03 python /opt/stack/nova/bin/nova-scheduler
 5457 pts/12   S+ 0:00 python ./utils/nova-novncproxy --config-file 
/etc/nova/nova.conf --web .
 5477 pts/13   S+ 0:00 python ./bin/nova-xvpvncproxy --config-file 
/etc/nova/nova.conf
 5497 pts/14   S+ 0:03 python ./bin/nova-consoleauth
 5537 pts/16   S+ 0:00 python /opt/stack/nova/bin/nova-objectstore

I'm not seeing nova-compute running. So I tried to start it manually, Then I 
got errors attached in later section.  Can someone help to take a look to see 
if I have missed anything during the installation?
Also, is there a way to see find more debug information when failed to launch a 
instance?

BTW-- I checked Dom0, I have 1.3G free space, is that enough to run 
nova-compute?
Thanks
Yi

012-04-12 03:42:33 CRITICAL nova [-] Unable to log in to XenAPI (is the Dom0 
disk full?)
2012-04-12 03:42:33 TRACE nova Traceback (most recent call last):
2012-04-12 03:42:33 TRACE nova   File ./nova-compute, line 47, in module
2012-04-12 03:42:33 TRACE nova server = 
service.Service.create(binary='nova-compute')
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py, line 
272, in create
2012-04-12 03:42:33 TRACE nova periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py, line 
167, in __init__
2012-04-12 03:42:33 TRACE nova self.manager = manager_class(host=self.host, 
*args, **kwargs)
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/compute/manager.py, line 198, in __init__
2012-04-12 03:42:33 TRACE nova utils.import_object(compute_driver),
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/utils.py, line 90, 
in import_object
2012-04-12 03:42:33 TRACE nova return cls()
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/virt/connection.py, line 76, in get_connection
2012-04-12 03:42:33 TRACE nova conn = xenapi_conn.get_connection(read_only)
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/virt/xenapi_conn.py, line 144, in get_connection
2012-04-12 03:42:33 TRACE nova return XenAPIConnection(url, username, 
password)
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/virt/xenapi_conn.py, line 152, in __init__
2012-04-12 03:42:33 TRACE nova self._session = XenAPISession(url, user, pw)
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/virt/xenapi_conn.py, line 491, in __init__
2012-04-12 03:42:33 TRACE nova url = self._create_first_session(url, user, 
pw, exception)
2012-04-12 03:42:33 TRACE nova   File 
/opt/stack/nova/nova/virt/xenapi_conn.py, line 500, in _create_first_session
2012-04-12 03:42:33 TRACE nova session.login_with_password(user, pw)
2012-04-12 03:42:33 TRACE nova   File 
/usr/local/lib/python2.7/dist-packages/XenAPI.py, line 182, in lambda
2012-04-12 03:42:33 TRACE nova return lambda *params: self._login(name, 
params)
2012-04-12 03:42:33 TRACE nova   File 
/usr/local/lib/python2.7/dist-packages/XenAPI.py, line 148, in _login
2012-04-12 03:42:33 TRACE nova result = _parse_result(getattr(self, 
'session.%s' % method)(*params))
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py, line 
1224, in __call__
2012-04-12 03:42:33 TRACE nova return self.__send(self.__name, args)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py, line 
1575, in __request
2012-04-12 03:42:33 TRACE nova verbose=self.__verbose
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py, line 
1264, in request
2012-04-12 03:42:33 TRACE nova return self.single_request(host, handler, 
request_body, verbose)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py, line 
1292, in single_request
2012-04-12 03:42:33 TRACE nova self.send_content(h, request_body)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py, line 
1439, in send_content
2012-04-12 03:42:33 TRACE nova connection.endheaders(request_body)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/httplib.py, line 
951, in endheaders
2012-04-12 03:42:33 TRACE nova self._send_output(message_body)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/httplib.py, line 
811, in _send_output

Re: [Openstack] Install instance failed on xenserver 6.0.2

2012-04-12 Thread Armando Migliaccio
1.3GB is more than enough. When you get that message, usually space
has already dried up, or there is a problem authenticating with
xenapi.

Check that:

xenapi_connection_url
xenapi_connection_password

are set correctly, and that you can reach dom0 from your devstack instance.

Have a look at your localrc, xenrc, and nova.conf, see if you can find
anything wrong with them.

Hope this help!
Armando

On Thu, Apr 12, 2012 at 5:03 AM, Yi Sun beyo...@gmail.com wrote:
 Hi,
 I used devstack to install openstack on my xenserver 6.0.2. I followed the
 video found in this link http://wiki.openstack.org/XenServer/DevStack. After
 installation, I can access dashboard. But I failed to launch an instance.
 I tried to launch image tty, after launching, the instance status field
 shows Error and there has no new VM  showing up in my xencenter.
 I did a ps ax on my domU VM, I see following nova processes:
 stack@ALLINONE:~/nova/bin$ ps ax | grep nova
  5246 pts/6    S+     0:02 python /opt/stack/nova/bin/nova-api
  5325 pts/8    S+     0:03 python /opt/stack/nova/bin/nova-cert
  5346 pts/9    S+     0:03 python /opt/stack/nova/bin/nova-volume
  5371 pts/10   S+     0:03 python /opt/stack/nova/bin/nova-network
  5426 pts/11   S+     0:03 python /opt/stack/nova/bin/nova-scheduler
  5457 pts/12   S+     0:00 python ./utils/nova-novncproxy --config-file
 /etc/nova/nova.conf --web .
  5477 pts/13   S+     0:00 python ./bin/nova-xvpvncproxy --config-file
 /etc/nova/nova.conf
  5497 pts/14   S+     0:03 python ./bin/nova-consoleauth
  5537 pts/16   S+     0:00 python /opt/stack/nova/bin/nova-objectstore

 I'm not seeing nova-compute running. So I tried to start it manually, Then I
 got errors attached in later section.  Can someone help to take a look to
 see if I have missed anything during the installation?
 Also, is there a way to see find more debug information when failed to
 launch a instance?

 BTW-- I checked Dom0, I have 1.3G free space, is that enough to run
 nova-compute?
 Thanks
 Yi

 012-04-12 03:42:33 CRITICAL nova [-] Unable to log in to XenAPI (is the Dom0
 disk full?)
 2012-04-12 03:42:33 TRACE nova Traceback (most recent call last):
 2012-04-12 03:42:33 TRACE nova   File ./nova-compute, line 47, in module
 2012-04-12 03:42:33 TRACE nova     server =
 service.Service.create(binary='nova-compute')
 2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py,
 line 272, in create
 2012-04-12 03:42:33 TRACE nova
 periodic_fuzzy_delay=periodic_fuzzy_delay)
 2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py,
 line 167, in __init__
 2012-04-12 03:42:33 TRACE nova     self.manager =
 manager_class(host=self.host, *args, **kwargs)
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/compute/manager.py, line 198, in __init__
 2012-04-12 03:42:33 TRACE nova     utils.import_object(compute_driver),
 2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/utils.py, line
 90, in import_object
 2012-04-12 03:42:33 TRACE nova     return cls()
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/virt/connection.py, line 76, in get_connection
 2012-04-12 03:42:33 TRACE nova     conn =
 xenapi_conn.get_connection(read_only)
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/virt/xenapi_conn.py, line 144, in get_connection
 2012-04-12 03:42:33 TRACE nova     return XenAPIConnection(url, username,
 password)
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/virt/xenapi_conn.py, line 152, in __init__
 2012-04-12 03:42:33 TRACE nova     self._session = XenAPISession(url, user,
 pw)
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/virt/xenapi_conn.py, line 491, in __init__
 2012-04-12 03:42:33 TRACE nova     url = self._create_first_session(url,
 user, pw, exception)
 2012-04-12 03:42:33 TRACE nova   File
 /opt/stack/nova/nova/virt/xenapi_conn.py, line 500, in
 _create_first_session
 2012-04-12 03:42:33 TRACE nova     session.login_with_password(user, pw)
 2012-04-12 03:42:33 TRACE nova   File
 /usr/local/lib/python2.7/dist-packages/XenAPI.py, line 182, in lambda
 2012-04-12 03:42:33 TRACE nova     return lambda *params: self._login(name,
 params)
 2012-04-12 03:42:33 TRACE nova   File
 /usr/local/lib/python2.7/dist-packages/XenAPI.py, line 148, in _login
 2012-04-12 03:42:33 TRACE nova     result = _parse_result(getattr(self,
 'session.%s' % method)(*params))
 2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
 line 1224, in __call__
 2012-04-12 03:42:33 TRACE nova     return self.__send(self.__name, args)
 2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
 line 1575, in __request
 2012-04-12 03:42:33 TRACE nova     verbose=self.__verbose
 2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
 line 1264, in request
 2012-04-12 03:42:33 TRACE nova     return self.single_request(host, handler,
 request_body, verbose)
 2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
 line 

Re: [Openstack] Install instance failed on xenserver 6.0.2

2012-04-12 Thread Yi Sun

Thanks, the xenapi_connection_url is the problem.
Yi

On 04/12/2012 05:12 AM, Armando Migliaccio wrote:

1.3GB is more than enough. When you get that message, usually space
has already dried up, or there is a problem authenticating with
xenapi.

Check that:

xenapi_connection_url
xenapi_connection_password

are set correctly, and that you can reach dom0 from your devstack instance.

Have a look at your localrc, xenrc, and nova.conf, see if you can find
anything wrong with them.

Hope this help!
Armando

On Thu, Apr 12, 2012 at 5:03 AM, Yi Sunbeyo...@gmail.com  wrote:

Hi,
I used devstack to install openstack on my xenserver 6.0.2. I followed the
video found in this link http://wiki.openstack.org/XenServer/DevStack. After
installation, I can access dashboard. But I failed to launch an instance.
I tried to launch image tty, after launching, the instance status field
shows Error and there has no new VM  showing up in my xencenter.
I did a ps ax on my domU VM, I see following nova processes:
stack@ALLINONE:~/nova/bin$ ps ax | grep nova
  5246 pts/6S+ 0:02 python /opt/stack/nova/bin/nova-api
  5325 pts/8S+ 0:03 python /opt/stack/nova/bin/nova-cert
  5346 pts/9S+ 0:03 python /opt/stack/nova/bin/nova-volume
  5371 pts/10   S+ 0:03 python /opt/stack/nova/bin/nova-network
  5426 pts/11   S+ 0:03 python /opt/stack/nova/bin/nova-scheduler
  5457 pts/12   S+ 0:00 python ./utils/nova-novncproxy --config-file
/etc/nova/nova.conf --web .
  5477 pts/13   S+ 0:00 python ./bin/nova-xvpvncproxy --config-file
/etc/nova/nova.conf
  5497 pts/14   S+ 0:03 python ./bin/nova-consoleauth
  5537 pts/16   S+ 0:00 python /opt/stack/nova/bin/nova-objectstore

I'm not seeing nova-compute running. So I tried to start it manually, Then I
got errors attached in later section.  Can someone help to take a look to
see if I have missed anything during the installation?
Also, is there a way to see find more debug information when failed to
launch a instance?

BTW-- I checked Dom0, I have 1.3G free space, is that enough to run
nova-compute?
Thanks
Yi

012-04-12 03:42:33 CRITICAL nova [-] Unable to log in to XenAPI (is the Dom0
disk full?)
2012-04-12 03:42:33 TRACE nova Traceback (most recent call last):
2012-04-12 03:42:33 TRACE nova   File ./nova-compute, line 47, inmodule
2012-04-12 03:42:33 TRACE nova server =
service.Service.create(binary='nova-compute')
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py,
line 272, in create
2012-04-12 03:42:33 TRACE nova
periodic_fuzzy_delay=periodic_fuzzy_delay)
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/service.py,
line 167, in __init__
2012-04-12 03:42:33 TRACE nova self.manager =
manager_class(host=self.host, *args, **kwargs)
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/compute/manager.py, line 198, in __init__
2012-04-12 03:42:33 TRACE nova utils.import_object(compute_driver),
2012-04-12 03:42:33 TRACE nova   File /opt/stack/nova/nova/utils.py, line
90, in import_object
2012-04-12 03:42:33 TRACE nova return cls()
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/virt/connection.py, line 76, in get_connection
2012-04-12 03:42:33 TRACE nova conn =
xenapi_conn.get_connection(read_only)
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/virt/xenapi_conn.py, line 144, in get_connection
2012-04-12 03:42:33 TRACE nova return XenAPIConnection(url, username,
password)
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/virt/xenapi_conn.py, line 152, in __init__
2012-04-12 03:42:33 TRACE nova self._session = XenAPISession(url, user,
pw)
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/virt/xenapi_conn.py, line 491, in __init__
2012-04-12 03:42:33 TRACE nova url = self._create_first_session(url,
user, pw, exception)
2012-04-12 03:42:33 TRACE nova   File
/opt/stack/nova/nova/virt/xenapi_conn.py, line 500, in
_create_first_session
2012-04-12 03:42:33 TRACE nova session.login_with_password(user, pw)
2012-04-12 03:42:33 TRACE nova   File
/usr/local/lib/python2.7/dist-packages/XenAPI.py, line 182, inlambda
2012-04-12 03:42:33 TRACE nova return lambda *params: self._login(name,
params)
2012-04-12 03:42:33 TRACE nova   File
/usr/local/lib/python2.7/dist-packages/XenAPI.py, line 148, in _login
2012-04-12 03:42:33 TRACE nova result = _parse_result(getattr(self,
'session.%s' % method)(*params))
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
line 1224, in __call__
2012-04-12 03:42:33 TRACE nova return self.__send(self.__name, args)
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
line 1575, in __request
2012-04-12 03:42:33 TRACE nova verbose=self.__verbose
2012-04-12 03:42:33 TRACE nova   File /usr/lib/python2.7/xmlrpclib.py,
line 1264, in request
2012-04-12 03:42:33 TRACE nova return self.single_request(host, handler,
request_body, verbose)
2012-04-12 03:42:33 TRACE nova   File