Ask Your Question
1

Can i install nova-compute in OpenStack Controller for managing VMware vSphere5.5

asked 2014-05-07 05:39:49 -0500

kamal gravatar image

updated 2014-05-14 02:33:50 -0500

a)I have a Open Stack Controller installed in one server and KVM compute nodes are installed on two physical servers. b)am able to manage the KVM nodes(create instance) from OpenStack Controller. c)Now am planning to integrate or manage VMware vSphere 5.5 environment with the existing OpenStack Controller

My Question: 1)i know we need to have a nova compute service and VCDriver to manage VMware vCenter 5.5, can i install the service (nova-compute) and (nova-compute-vmware) package on the openstack controller and then edit nova.conf for integrating vSphere 5.5 with Openstack controller? 2)Basically am asking this question to get clarified, whether i need to have separate server for installing a compute node and VCDrivers for managing vSphere 5.5 environment or can i install these components on openstack controller itself? (Note:am using OpenStack Havana version) am using nova-network for my network part Can anyone confirm whether they have succeeded in installing nova-compute and VCDriver in OpenStack Controller for integrating with VMware vSphere 5.5

Additional Queries for clarification:

Can you please provide me with a document or link on how did you integrated nova compute node with VMware vSphere 5.5 or vCenter server5.5

I will list the nova compute installation steps and integration steps (please correct the steps if it is wrong)

Installation of nova compute node for vmware integration on a separate server: Note: I will name the new nova compute node as "novavmware1" and the existing openstack controller is named as "controller"

1)Install all the prerequisites for nova compute server(novavmware1) as per the link

2)Install nova compute service using the command - "apt-get install nova-compute" on the nova compute server(novavmware1). please clarify whether can i ignore this command "apt-get install nova-compute-kvm python-guestfs" which ignores the installation "kvm and python-guestfs" Note: Please clarify python-suds or same as python-guestfs (because i read in an article that python-suds are required for VMwareapi)

3)I will ignoring "statoverride" because we are not installing KVM,please clarify, reference link

4)I will be editing nova.conf in nova compute server(novavmware1) as specified in the link based on my environment

5)Please clarify whether do i need to install nova-network using the command "apt-get install nova-network nova-api-metadata" on server nova compute server(novavmware1)

5)Install nova-compute-vmware package using the command "apt-get install nova-compute-vmware" on nova compute server(novavmware1) (this is the package which has the driver for VCenter) Please clarify whether the same package also has ESXi drivers or i need to download from else where.

6)I will be editing the nova.conf file with the details of VMware drivers and VMware server IP address on nova compute server(novavmware1). Please clarify whether the nova.conf file on the openstack controller(controller) also need to be edited with the VMware server IP address and VMware driver details? Reference link

7)Please clarify do i need to edit the nova-compute.conf file in nova compute server(novavmware1) with the ... (more)

edit retag flag offensive close merge delete

Comments

hai I am trying VMware integration with icehouse. I followed all the above steps. Really useful. Thanks for your question posted :-) . Now I'm facing problem that compute node is not listed in the hypervisor menu. Could you please share any document related to this setup ?

Vinoth gravatar imageVinoth ( 2014-09-10 05:35:39 -0500 )edit

which is the output of this command: nova-manage service list ?

Antonio G. gravatar imageAntonio G. ( 2014-09-10 05:39:58 -0500 )edit

nova-cert icehouse internal enabled :-) nova-consoleauth icehouse internal enabled :-) nova-scheduler icehouse internal enabled :-) nova-conductor icehouse internal enabled :-) nova-network vmwarecompute2 internal enable :-)

Vinoth gravatar imageVinoth ( 2014-09-10 06:31:16 -0500 )edit

I'm using vcenter 5.5, so skiped mirror WSDL part

Vinoth gravatar imageVinoth ( 2014-09-10 06:34:14 -0500 )edit

Found this errors in nova-compute log:

INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver' ERROR nova.virt.driver [-] Unable to load the virtualization driver TRACE nova.virt.driver ImportError: No module named vmwareapi

Vinoth gravatar imageVinoth ( 2014-09-10 06:51:29 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-07 06:00:43 -0500

I think you could install also in your controller node, although is a better choice (at least in my opinion) to have them separated. As you probably know if you are using Neutron as networking technology you must have a plugin (basically NSX) that could work with both hypervisors in your infrastructure (KVM and ESXi). The alternative to use both is to switch to nova-network.

edit flag offensive delete link more

Comments

I correctly installed Openstack havana with nova-network. I used both KVM and ESXi hosts.

I manage esxi host with VMwareESXdriver (not VCDriver), but I think the procedure is more or less the same. In my configuration I have a VM inside my ESXi host acting as nova-compute node, that connects to the ESXi host through the ESXi driver.

I think I could perfectly change that behavior installing nova-compute service on controller node, leaving the nova conf files unchanged at least for ESXi connection part.

Antonio G. gravatar imageAntonio G. ( 2014-05-07 10:13:00 -0500 )edit

Clarification answer:

1) Yes all prerequisites installed as a normal compute node

2) Yes, the right command is

apt-get install nova-compute

and you can ignore kvm related commands

3) Yes, can ignore that

4) Yes you must configure as your other KVM hosts

5) Yes, you must install those services on novavmware1

6) No, no nova.conf modification on controller (this answer is also for your last question!)

7) Yes, i modified nova.conf on novavmware1 adding info related to ESXi driver (your reference link is correct, is the one i followed)

8) Yes, you must mirror them: to be precise, download 'VMware vSphere Web Services SDK' from VMware and unzip it in /vmware-sdk on novavmware1, then referencing it in nova.conf file as wsdl_location=file:///vmware-sdk/SDK/vsphere-ws/wsdl/vim25/vimService.wsdl

9) To enable vnc on ESX-host, in vsphere-client go to host->Configuration->SecurityProfile->Firewall->Properties and enable ...(more)

Antonio G. gravatar imageAntonio G. ( 2014-05-08 02:31:24 -0500 )edit

More clarifications:

1) No need to install python-guestfs

2) Yes, or at least that is my configuration (i have metadata and nova-network services up and rnning in every host I have, either KVM or ESXi)

3) No need to install nova-compute-vmware

4) Yes, you need to create br100 port group and VM Network port group in networking section on VMware ESXi 5.5 servers that you are planning to manage

5) Download from https://communities.vmware.com/commun... the second item (VMware vSphere Web Services SDK, you must enter a valid [at least free] vmware account -> vSphere 5.0 Management SDK), then tranfer it to your novavmware1 machine and unzip it wherever you want, then reference the wsdl file in your nova.conf

This was my configuration experience, hope it works for you too.

Antonio G. gravatar imageAntonio G. ( 2014-05-08 07:52:26 -0500 )edit

About vmdk images:

My personal method to deploy vmdk images on ESXi host and qcow2 images on KVM ones is to add glance metadata this way

glance image-update --property vmware_ostype=windows7Server64Guest --property vmware_adaptertype="lsiLogicsas" --property vmware_disktype="preallocated" --property hypervisor_type="vmware" VMDK-IMAGE-ID

glance image-update --property hypervisor_type="kvm" QCOW2-IMAGE-ID

Of course the expected behavior after this change is to spawn VM from VMDK-IMAGE-ID only on vmware hosts. Hope this help!

Antonio G. gravatar imageAntonio G. ( 2014-05-09 02:46:45 -0500 )edit

Windows wmdk:

This was my glance command

glance image-create --name="W2008NEW" --disk-format=vmdk --container-format=bare --is-public=true --property vmware_disktype="preallocated" --property hypervisor_type="vmware" --property vmware_ostype=windows7Server64Guest --property vmware_adaptertype="lsiLogicsas" < W2008NEW-flat.vmdk

Are you sure about the value inserted in vmware_ostype? Try reading this and this.

I never encountered that problem, but I only deployed Windows 2008 VM.

Antonio G. gravatar imageAntonio G. ( 2014-05-12 01:54:00 -0500 )edit
0

answered 2014-09-15 23:47:01 -0500

Vinoth gravatar image

Hai, I am trying Vmware integration openstack in my lab. I have vcenter(5.5) environment ready in my lab environment. Then I started my icehouse setup following this document. For nova installation I used " apt-get install nova-compute-vmware" which install all vmware packages(including python-suds). Then I added the following lines in nova.conf file.

[DEFAULT]

compute_driver=vmwareapi.VMwareVCDriver

[vmware] host_ip=192.168.1.15

host_username=Administrator@vsphere.l...

host_password=*****

cluster_name=lab

Then restarting the nova-compute service throws following error:

ERROR nova.virt.driver [-] Unable to load the virtualization driver

TRACE nova.virt.driver Traceback (most recent call last):

TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1305, in load_compute_driver

TRACE nova.virt.driver virtapi)

TRACE nova.virt.driver ImportError: No module named vmwareapi

So I commanted the #[vmware] line in nova.conf file. Then restarted the service. This tme nova-compute service is up&running but throws error as follows;

INFO nova.virt.driver [-] Loading compute driver 'vmwareapi.VMwareVCDriver'

CRITICAL nova.virt.vmwareapi.driver [-] Unable to connect to server at None, sleeping for 1 seconds

TRACE nova.virt.vmwareapi.driver Traceback (most recent call last):

TRACE nova.virt.vmwareapi.driver URLError: urlopen error [Errno -2] Name or service not known

P.S:- I am using Esxi 5.5 version & vcenter 5.5. So I skipped the Procedure 2.1. Mirror WSDL from vCenter (or ESXi) steps while following this document.

Could anyone help me to resolve this issuse?

edit flag offensive delete link more
0

answered 2015-12-13 22:07:38 -0500

Le Trung gravatar image

hello everyone,

After i am complete Nova-compute, Glane configuration to integarate with Vmware-esxi . an error appeared as bellow:

root@controller:/var/log/glance# tail -f glance-api.log .... 2015-12-05 19:08:06.381 11670 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken". 2015-12-05 19:08:08.774 11700 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken".

And

root@controller:/var/log/glance# tail -f glance-registry.log 2015-12-05 18:54:14.407 32309 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken". 2015-12-05 18:54:14.418 32309 INFO glance.common.wsgi [-] Starting 1 workers 2015-12-05 18:54:14.441 32309 INFO glance.common.wsgi [-] Started child 32345 2015-12-05 18:54:14.445 32345 INFO eventlet.wsgi.server [-] (32345) wsgi starting up on http://0.0.0.0:9191/

Hope someone has encountered this error. And help me to define the reason for this error please !

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

2 followers

Stats

Asked: 2014-05-07 05:39:49 -0500

Seen: 2,148 times

Last updated: Sep 15 '14