jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <zack.shoy...@RACKSPACE.COM>
Subject RE: assign a port on vm create?
Date Thu, 04 Dec 2014 01:13:45 GMT
Here is my suggestion.
Create a neutron network.
Create a subnet (you will be allocating fixed IPs from that subnet's CIDR range).
Create 8 ports on that subnet.
These ports should specify fixed ips.
These fixed ips should provide the subnet id and a fixed ip that is within the subnet range.

For each VM that you boot, you can provide a port uuid (when you boot with the nova API)
(It seems this is the part that you might be having trouble with).

Let me know if this works or if you are having issues getting it to work.


From: Andrea Turli [andrea.turli@gmail.com]
Sent: Sunday, November 30, 2014 12:08 PM
To: user@jclouds.apache.org
Subject: RE: assign a port on vm create?

Thx Dan for the details.

I think it is a specific question for Neutron support and I can't help you immediately on
it. Could you please file an issue on jira reporting pretty much the same description so that
we as community don't forget it again?


Il 30/nov/2014 00:57 "dan rusak" <merlinlabs@rseincorp.com<mailto:merlinlabs@rseincorp.com>>
ha scritto:
Oh .. of course ..
thought that might be  a generic question.

I use JClouds 1.8.0 (I notice that neutron is broken in 1.8.1 or would have upgraded).
I am using Openstack icehouse on a  local endpoint collocated with my
VM installations with Chef-solo installed on my centos 6.5 image.
I need to instantiate and provision 8 VMs which need to perform nfs mounts
against each other during their provisioning and issue commands over ssh between them
when all are up and operational.
I have looked into everything I can find scraps of in the ether to provide static
ips  so this can happen but they all seem to dead end for one reason or another, usually
resulting in silence in fact when someone else has the same general question.
 Anyway wrapping an ip in a port using the neutron api looked promising but need to get the
VMs to use the port to see if that would even work.


-----Original Message-----
From: Andrea Turli [mailto:andrea.turli@gmail.com<mailto:andrea.turli@gmail.com>]
Sent: Saturday, November 29, 2014 9:31 AM
To: user@jclouds.apache.org<mailto:user@jclouds.apache.org>
Subject: Re: assign a port on vm create?

Hi Dan,

could you please clarify which jclouds version are you using?
which provider/api are you consuming?
Is it a public openstack (I guess) endpoint or an on-premise installation?
If the latter what services can you use?

I think those are useful preliminary questions to get the context of your use case.


On Sat, Nov 29, 2014 at 4:53 PM, dan rusak <merlinlabs@rseincorp.com<mailto:merlinlabs@rseincorp.com>>
> I need to assign static ips on VM creates. It appears that the only
> way MAY be to use neutron to
> create a port and assign an ip there and assign the port to the VM.
> However when it came to assigning the port I could not find an
> interface to accomplish that.
> Hopefully I am just missing seeing it.
> Doesn’t Jclouds support this? If it can be done from command line it
> should be available
> programmatically?
> -d

View raw message