Ask Your Question
0

Affinity within Openstack VMware deployment

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

ddlingo gravatar image

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

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
0

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

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

Comments

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 -0500 )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= 1.1.1.1 host_username= vmware host_password=vmware

sfcloudman gravatar imagesfcloudman ( 2015-01-28 12:53:38 -0500 )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 -0500 )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 -0500 )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 -0500 )edit

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: 2015-01-28 08:46:39 -0500

Seen: 269 times

Last updated: Jan 28 '15