Ask Your Question
0

Error connecting to XenServer

asked 2011-04-22 13:53:33 -0600

laurent-borensky gravatar image

Hello,

I get an error with XenServer. I do not understand. Do you have an idea in relation to this error?

ERROR nova.compute.manager [6ORAHQW0FV8ZJUL5MBTF client1 appli1] Instance '1' failed to spawn. Is virtualization enabled in the BIOS?

Regards,

===============

Details (context, log, ...)

The error is relative to the X server stopped

root@6Cloud01:/var/log/nova# cat nova-compute.log <cr> 2011-04-22 14:25:31,400 ERROR nova [-] in Service.create() (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/home/openstack/nova/nova/service.py", line 270, in serve (nova): TRACE: services = [Service.create()] (nova): TRACE: File "/home/openstack/nova/nova/service.py", line 173, in create (nova): TRACE: report_interval, periodic_interval) (nova): TRACE: File "/home/openstack/nova/nova/service.py", line 73, in __init__ (nova): TRACE: self.manager = manager_class(host=self.host, args, *kwargs) (nova): TRACE: File "/home/openstack/nova/nova/compute/manager.py", line 127, in __init__ (nova): TRACE: utils.import_object(compute_driver), (nova): TRACE: File "/home/openstack/nova/nova/utils.py", line 76, in import_object (nova): TRACE: return cls() (nova): TRACE: File "/home/openstack/nova/nova/virt/connection.py", line 69, in get_connection (nova): TRACE: conn = xenapi_conn.get_connection(read_only) (nova): TRACE: File "/home/openstack/nova/nova/virt/xenapi_conn.py", line 160, in get_connection (nova): TRACE: return XenAPIConnection(url, username, password) (nova): TRACE: File "/home/openstack/nova/nova/virt/xenapi_conn.py", line 168, in __init__ (nova): TRACE: session = XenAPISession(url, user, pw) (nova): TRACE: File "/home/openstack/nova/nova/virt/xenapi_conn.py", line 328, in __init__ (nova): TRACE: self._session.login_with_password(user, pw) (nova): TRACE: File "/usr/local/lib/python2.6/dist-packages/XenAPI.py", line 182, in <lambda> (nova): TRACE: return lambda params: self._login(name, params) (nova): TRACE: File "/usr/local/lib/python2.6/dist-packages/XenAPI.py", line 148, in _login (nova): TRACE: result = _parse_result(getattr(self, 'session.%s' % method)(params)) (nova): TRACE: File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__ (nova): TRACE: return self.__send(self.__name, args) (nova): TRACE: File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request (nova): TRACE: verbose=self.__verbose (nova): TRACE: File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request (nova): TRACE: self.send_content(h, request_body) (nova): TRACE: File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content (nova): TRACE: connection.endheaders() (nova): TRACE: File "/usr/lib/python2.6/httplib.py", line 904, in endheaders (nova): TRACE: self._send_output() (nova): TRACE: File "/usr/lib/python2.6/httplib.py", line 776, in _send_output (nova): TRACE: self.send(msg) (nova): TRACE: File "/usr/lib/python2.6/httplib.py", line 735, in send (nova): TRACE: self.connect() (nova): TRACE: File "/usr/lib/python2.6/httplib.py", line 1108, in connect (nova): TRACE: sock = socket.create_connection((self.host, self.port), self.timeout) (nova): TRACE: File "/usr/lib/pymodules/python2.6/eventlet/green/socket.py", line 59, in create_connection (nova): TRACE: raise error, msg (nova): TRACE: error: [Errno 113] EHOSTUNREACH (nova): TRACE:

root@6Cloud01:/home/openstack# nova image-list <cr> +----+---------------------+--------+ | ID | Name | Status | +----+---------------------+--------+ | 1 | Lunix-tty-ramdisk | ACTIVE | | 2 | Lunix-tty-kernel | ACTIVE ... (more)

edit retag flag offensive close merge delete

9 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-29 09:20:23 -0600

i think i found the problem source , it lies within the dom0 itself, as the xenstored process isnt running correctly, so when you start the domU where the opensatck is installed, you should stop the service with "pkill xenstored" the restart the process using the command "xenstored", all this in the dom0, now when you'll start the opensatck-nova-compue using "service opensatck-nova-compute start" and then use "service opensatck-nova-compute status" you'll notice that it's working, still it's not connected to the cloud controller so i'm working on this problem.

edit flag offensive delete link more
0

answered 2011-08-18 08:10:58 -0600

Hi Dan , I am facing the same error . Can you tell me a specific way to do this

edit flag offensive delete link more
0

answered 2011-04-25 12:20:04 -0600

Hi Laurent,

Are you running nova-compute as a guest VM on the actual XenServer it controls? The existing nova xenapi code requires that nova-compute be running as a Guest machine on the Xenserver that it controls.

It works something like this:

1) nova-compute is running in a guest VM (can be Ubuntu, Debian, etc.) The nova.conf file is configured so that it communicates with xenapi to XenServer host machine.

2) When handling a request to provision a new instance nova-compute sends a request to Xenserver over xenapi to create a new VDI. In doing this it checks '/sys/hypervisor/uuid' to obtain the id of the nova-compute guest VM (running on the actual XenServer). The uuid file should exist in XenServer guest VM automatically (you shouldn't have to create it).

3) XenServer then creates the VDI and configures a new device (via the Xenserver nova plugins) on the nova-compute guest VM that writes directly to it. A device at /dev/xvd should then show up in the nova-compute guest VM so that it can stream data to it from glance, etc.

Hope this helps.

Dan

edit flag offensive delete link more
0

answered 2011-04-24 17:56:08 -0600

laurent-borensky gravatar image

this code (extract of vm_utils.py) seems wrong because the code is for a local file.

def get_this_vm_uuid(): with file('/sys/hypervisor/uuid') as f: return f.readline().strip()

def get_this_vm_ref(session): return session.get_xenapi().VM.get_by_uuid(get_this_vm_uuid())

edit flag offensive delete link more
0

answered 2011-04-24 14:46:10 -0600

laurent-borensky gravatar image

Other information about XenServer initialization

root@6Cloud01:~# ssh root@146.5.2.3 root@146.5.2.3's password: Last login: Sun Apr 24 15:23:03 2011 from 146.5.2.53 Type "xsconsole" for access to the management console.

[root@xenserver-01 ~]# cd /etc/xapi.d <cr> host-post-declare-dead plugins [root@xenserver-01 /etc/xapi.d]# ls -l <cr> total 8 drwxr-xr-x 2 root root 4096 Apr 19 22:53 host-post-declare-dead drwxr-xr-x 2 root root 4096 Apr 20 10:23 plugins

[root@xenserver-01 xapi.d]# xe sr-list <cr> uuid ( RO) : 7ed9b60c-367f-6c25-3ef7-dd492acd8996 name-label ( RW): Local storage name-description ( RW): host ( RO): xenserver-01 type ( RO): lvm content-type ( RO): user

uuid ( RO) : 1e268947-71b9-a98c-3d69-bceeb268a247 name-label ( RW): XenServer Tools name-description ( RW): XenServer Tools ISOs host ( RO): xenserver-01 type ( RO): iso content-type ( RO): iso

uuid ( RO) : 59d4ddf5-7ad0-a8ed-33e2-e3ffdeb76d19 name-label ( RW): DVD drives name-description ( RW): Physical DVD drives host ( RO): xenserver-01 type ( RO): udev content-type ( RO): iso

uuid ( RO) : eb02adf7-eb93-a558-aeae-ac077fc4c961 name-label ( RW): NFS ISO library name-description ( RW): NFS ISO Library [146.5.2.97:/nfs/Data_Xen] host ( RO): xenserver-01 type ( RO): iso content-type ( RO): iso

uuid ( RO) : f4e3e527-63d7-0daa-6a97-123226a4eb8b name-label ( RW): Removable storage name-description ( RW): host ( RO): xenserver-01 type ( RO): udev content-type ( RO): disk <cr> [root@xenserver-01 xapi.d]# xe sr-param-list uuid=7ed9b60c-367f-6c25-3ef7-dd492acd8996 uuid ( RO) : 7ed9b60c-367f-6c25-3ef7-dd492acd8996 name-label ( RW): Local storage name-description ( RW): host ( RO): xenserver-01 allowed-operations (SRO): forget; VDI.create; VDI.snapshot; plug; update; destroy; VDI.destroy; scan; VDI.clone; VDI.resize; unplug current-operations (SRO): VDIs (SRO): 32c6a12e-4d87-4ad4-951e-3b1f1a557be9; 24c6fd90-57eb-47c3-b290-d1bab2dc89ee; 08ef59b9-8061-4cd3-91d7-d952bb8e3f29; 1f1e9c9f-7d2c-466c-99bb-314e1dc1e5bb; 04589c1b-5522-4998-8410-dc54140b4170; fa05d438-117b-4f92-a1a4-a3c9908a067a; c821a620-da0b-4f39-a4a2-5f2ff7f085e2; 08e969f9-4178-46d1-b02a-a9341c9bc87d PBDs (SRO): 7ebf167b-845b-c68a-96f1-82a17bbce036 virtual-allocation ( RO): 6547308544 physical-utilisation ( RO): 6559891456 physical-size ( RO): 491501125632 type ( RO): lvm content-type ( RO): user shared ( RW): false other-config (MRW): i18n-key: local-storage; i18n-original-value-name_label: Local storage sm-config (MRO): allocation: thick; use_vhd: true; devserial: scsi-SATA_Hitachi_HTS7250100902PCL400VLK8ST6J blobs ( RO): local-cache-enabled ( RO): false tags (SRW):

edit flag offensive delete link more
0

answered 2011-04-25 19:27:55 -0600

laurent-borensky gravatar image

Thank you Dan.

I'll try With A VM "Nov-compute"on XenServer Host.

edit flag offensive delete link more
0

answered 2011-04-25 16:06:47 -0600

laurent-borensky gravatar image

Dan,

Where can I find documentation for installing "nova-compute"in a virtual machine? What will be the configuration file "nova.conf?

edit flag offensive delete link more
0

answered 2011-04-25 14:10:22 -0600

laurent-borensky gravatar image

Hi Dan,

No, nova-compute is running on another physical server with other services Ubuntu Nova. I must create a VM on XenServer for this service nova-compute? I have not read anything in the documentation (wiki) for this.

Than you.

edit flag offensive delete link more
0

answered 2013-03-27 16:40:18 -0600

Same error!! Plz help :/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-22 13:53:33 -0600

Seen: 122 times

Last updated: Mar 29 '13