Okay. So it sounds like you want to be able to schedule a VM to a particular physical host/host aggregate. This is not something that any public cloud provider would ever let you do. It's a very un-cloudy proposition. Hence, you'll never find that kind of functionality in the ComputeService/TemplateOptions.
Personally, I wouldn't recommend doing it in a private cloud either. However, if you're intent on it, there may be something that can help, see CreateServerOptions.availabilityZone(String). This should allow you to specify the availability zone in which to launch the server. However, I've never used it and I honestly don't know how that works. I suspect there's a bunch of config you need to do on your OpenStack deployment to make availability zones work before you can even call availabilityZone(String) and have it behave the way you expect. At this point we're kind of veering off into OpenStack deployment questions. If you have questions about configuring availability zones, I recommend going to lists.openstack.org and signing up to OpenStack and/or OpenStack-operators. Best of luck! Everett On Nov 25, 2013, at 11:00 AM, Nirmal Fernando wrote: > Hi Everett, > > Sorry for not being clear, I meant the host aggregates as of > http://docs.openstack.org/trunk/openstack-ops/content/scaling.html#segregate_cloud > > > On Mon, Nov 25, 2013 at 10:25 PM, Everett Toews <[email protected] >> wrote: > >> First of all, let's make sure we're talking about the same thing here. >> >> When you say 'host' name do you mean the hostname of the virtual machine >> that you are starting or do you mean the hostname of the *physical* machine >> that the VM will be running on? >> >> Everett >> >> >> On Nov 25, 2013, at 9:34 AM, Nirmal Fernando wrote: >> >>> Hi Andrew, >>> >>> Thanks for the pointers. But I'm kind of confused here. Does this mean >> that >>> I can't specify a 'host' name when I build a Template using >>> TemplateBuilder? >>> >>> >>> On Mon, Nov 25, 2013 at 8:31 PM, Andrew Phillips <[email protected] >>> wrote: >>> >>>> $Subject? I can't see any relevant operation in NovaTemplateOptions, is >>>>> there some other way? >>>>> >>>> >>>> Looking at ServerApi.create [1], it looks like you can indeed only set >> the >>>> *name*; the *ID* is something returned from that call [2]. >>>> >>>> ap >>>> >>>> [1] https://github.com/jclouds/jclouds/blob/master/apis/ >>>> openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_ >>>> 0/features/ServerApi.java#L85 >>>> [2] https://github.com/jclouds/jclouds/blob/master/apis/ >>>> openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_ >>>> 0/domain/ServerCreated.java >>>> >>> >>> >>> >>> -- >>> >>> Thanks & regards, >>> Nirmal >>> >>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc. >>> Mobile: +94715779733 >>> Blog: http://nirmalfdo.blogspot.com/ >> >> > > > -- > > Thanks & regards, > Nirmal > > Senior Software Engineer- Platform Technologies Team, WSO2 Inc. > Mobile: +94715779733 > Blog: http://nirmalfdo.blogspot.com/
