Ask Your Question
0

VMwareESXDriver & nova.conf in Havana [closed]

asked 2013-10-30 11:21:01 -0600

Romain gravatar image

Hello everyone, I report a very similar issue to another post: https://ask.openstack.org/en/question/2040/libvirt-to-esx-vmware-hypervisor/ But this question did not find any answer.

I want to use my ESXI hypervisor through Openstack. Thus, I decided to use the VMwareESXDriver. This is my nova.conf file:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadmsudo apt-get install python-suds
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

my_ip=192.168.0.11
vncserver_listen=0.0.0.0
vncserver_proxyclient_address=192.168.0.11
glance_host=controller

#vmware conf
compute_driver=vmwareapi.VMwareESXDriver

# nova-network conf
network_manager=nova.network.manager.FlatDHCPManager
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
network_size=254
allow_same_net_traffic=False
multi_host=True
send_arp_for_ha=True
share_dhcp_address=True
force_dhcp_release=True
flat_network_bridge=br100
flat_interface=eth0
public_interface=eth0

#Rabbitmq conf
rpc_backend = nova.openstack.common.rpc.impl_kombu
rabbit_host = controller
rabbit_password = svc

[database]
# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:nova@controller/nova

[vmware]
host_ip=%IP%
host_username=root
host_password=%password%
wsdl_location=http://127.0.0.1:8080/vmware/SDK/vsphere-ws/wsdl/vim25/vimService.wsdl

In Vsphere Client, I have created a Group port br100 linked to my vmnic0 physical interface (Internet access with DHCP server). What surprises me is that in nova-* files located in /var/log/nova, I can't grep "vmware*" but "libvirt", which makes me think that nova-compute is trying to use the libvirt driver and not the vmwareESX one.

If you need logs, please tell me, and also indicate how to share them simply.

Thanks beforehand for your consideration.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Romain
close date 2013-12-20 06:39:15.597953

Comments

Today, I can confirm that Nova tries to use libvirt driver. The very first lines in nova-compute.log are: 2013-10-31 09:10:07.775 1635 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative 2013-10-31 09:10:08.133 1635 INFO nova.virt.driver [-] Loading compute driver 'libvirt.LibvirtDriver'

Romain gravatar imageRomain ( 2013-10-31 03:19:21 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-31 03:50:25 -0600

Romain gravatar image

I found where the problem was. Actually, there is also a conf file called "nova-compute.conf" where the compute_driver is also defined. This is my nova-compute.conf file after changes:

[DEFAULT]
compute_driver=vmwareapi.VMwareESXDriver
edit flag offensive delete link more
0

answered 2013-10-30 14:11:46 -0600

ader1990 gravatar image

updated 2013-10-30 14:19:00 -0600

Are you using Devstack or RDO? Have you restarted the nova-compute and nova-network services/processes?

edit flag offensive delete link more

Comments

I make a manual installation of openstack by following this guide: http://docs.openstack.org/trunk/install-guide/install/apt/content/ I have restarted nova-compute and nova-network. I have also restarted the nodes itself.

Romain gravatar imageRomain ( 2013-10-30 17:00:13 -0600 )edit

On a first manual install, many things can go wrong. A quicker safe way to deploy - use the instructions here: http://www.virtuallyghetto.com/2013/07/how-to-quickly-get-started-with-vmware.html. After the install, you have to set the compute_driver to vmwareapi.VMwareESXDriver(on nova.onf) and restart services.

ader1990 gravatar imageader1990 ( 2013-10-30 19:39:40 -0600 )edit

Thanks for your comment but I don't want to use Devstack which enables to deploy a "development infrastructure". I already have my dev environment.

Romain gravatar imageRomain ( 2013-10-31 03:09:51 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-30 11:21:01 -0600

Seen: 864 times

Last updated: Oct 31 '13