Thanks Udara! This is an old email I sent.   I've already made the enhancement to support fixed private Ips a while back.  The changes already pushed upstream.

-Jeffrey

From: Udara Liyanage <udara@wso2.com>
Reply-To: "dev@stratos.apache.org" <dev@stratos.apache.org>
Date: Monday, September 1, 2014 12:29 AM
To: "dev@stratos.incubator.apache.org" <dev@stratos.incubator.apache.org>
Cc: Reka Thirunavukkarasu <reka@wso2.com>
Subject: Re: Assign private IP addresses when subscribing to cartridge via CC

Hi,

AFAIK this flag is relevant for floating IP assignment. I am now aware of any way of assigning a specific private IP to a instance. May be Reka can provide a better answer.


On Thu, Feb 27, 2014 at 5:43 PM, Udara Liyanage <udara@wso2.com> wrote:

AFAR if this property is set to true, CC will assign a public IP to the instance when it is spawned. Else the public IP is not assigned by CC. We have to manually assign it if we need.

Touched, not typed. Erroneous words are a feature, not a typo.

On Feb 27, 2014 2:24 PM, "Jeffrey Nguyen (jeffrngu)" <jeffrngu@cisco.com> wrote:
Hi Devs,

I'm looking for a way to assign private IP addresses when subscribing to cartridges via Cloud Controller.   Ideally, these private IP addresses corresponds to their network interfaces which can be specified in the NovaTemplateOptions.

Currently, when I subscribe to a cartridge, the private IPs are randomly assigned from their respective networks.   I want to be able to use the private IPs defined in the cartridge definition.

jClouds supports specifying list of network interface UUIDs when launching cartridges, but not specifying private IPs.

I was also playing with CloudControllServiceImpl.startInstance() and noticed that the private IPs are assigned after  the MetadataNode is returned from the call "computeService.createNodesInGroup()".   I modified the instance of MetadataNode returned from this call to overwrite the set of randomly assigned private IPs with the ones I specified in cartridge definition JSON.   On the Horizon GUI, I observed that the instance still came up with the randomly private IPs.

Questions:
  • Does Stratos support assigning specific private IPs?
  • What does "autoAssignIp" in cloud-controller.xml used for?   From the implementation, it looks like regardless of the value (true/false), we are still getting the IP from the IP pool.
  • Does the above flag apply to both private and floating Ips?

Thanks,
-Jeffrey



--

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 443 6897