Ask Your Question

Affinity within Openstack VMware deployment

asked 2015-01-28 08:46:39 -0600

ddlingo gravatar image

updated 2015-01-28 12:24:04 -0600

Is it possible to create affinity rules or some how determine which ESXi host a VM will be deployed on from within an Icehouse Openstack installation over VMware? I have a full installation of Icehouse Openstack installed within a 3 node VMware 5.5 clustered installation, and I need to know is it possible to determine which host that Openstack instance will be deployed on? If so how would I set that up? It would seem that its in the vsphere plugin... FYI, I am not using VOVA.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-28 12:00:49 -0600

This can not be done the way you want to do it. What you can do is is have multiple nova-computes , each pointing to a different ESX cluster. Then you can use scheduling hints to specify which cluster you want to schedule the VM on.

If you truly want to be able to specify which host your VMs lands on then you will have to create ESX clusters that have only 1 host in them. Not very useful if you ask me.

edit flag offensive delete link more


So you mean that if I have a 3 node ESX cluster, and I have an Openstack deployment created over it, then the instances that are to be deployed via Openstack, would only be able to be hosted on which ever ESXi host that the nova-compute was installed on?

ddlingo gravatar imageddlingo ( 2015-01-28 12:28:23 -0600 )edit

When using ESX as a HV for Openstack , nova compute points to an esx cluster. In nova.conf for compute:

[vmware] cluster_name= computeClusterName host_ip= host_username= vmware host_password=vmware

sfcloudman gravatar imagesfcloudman ( 2015-01-28 12:53:38 -0600 )edit

So if you had 3 nova-computes , each pointing to a different cluster and each cluster having a single host you could do host affinity but its not a good design.

sfcloudman gravatar imagesfcloudman ( 2015-01-28 12:54:14 -0600 )edit

I agree this would not be a good design. Would I be able to use the affinity rules from within vsphere in order to achieve my goals?

ddlingo gravatar imageddlingo ( 2015-01-28 13:26:28 -0600 )edit

You can but you would have to apply affinity rules after the instances are deployed plus this makes it really not dynamic.

sfcloudman gravatar imagesfcloudman ( 2015-01-28 15:01:59 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-28 08:46:39 -0600

Seen: 318 times

Last updated: Jan 28 '15