You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Andrew Phillips <an...@apache.org> on 2014/02/06 22:55:21 UTC
Fwd: Questions about network related support for jClouds
Forwarding to user@, as that may be of interest to others there...
> 2. For a given network/interface, specify an IP address to be used
> instead of being assigned a random IP from the network
> 3. A floating IP to be used for the instance
One of the OpenStack experts on the list will certainly have more to
say, but for #2 and #3 it might be worth trying what happens if you
set autoAssignFloatingIp to false/true on the template options, if you
haven't already.
More floating IP options are available via the FloatingIPApi [2],
which you can access via the (provider-specific) NovaApi.
Hope that helps!
ap
[1]
http://javadocs.jclouds.cloudbees.net/org/jclouds/openstack/nova/v2_0/compute/options/NovaTemplateOptions.Builder.html#autoAssignFloatingIp(boolean)
[2]
http://javadocs.jclouds.cloudbees.net/org/jclouds/openstack/nova/v2_0/NovaApi.html#getFloatingIPExtensionForZone(java.lang.String)
----- Forwarded message from jeffrngu@cisco.com -----
Date: Thu, 6 Feb 2014 02:14:10 +0000
From: "Jeffrey Nguyen (jeffrngu)" <je...@cisco.com>
Reply-To: dev@jclouds.apache.org
Subject: Questions about network related support for jClouds
To: "dev@jclouds.apache.org" <de...@jclouds.apache.org>
Hi Devs,
I have the need to specify additional network related parameters when
creating an instance of an OpenStack cartridge. These parameters
include the following:
1. A list of networks (uuids) to associate with the list of
network interfaces defined in the cartridge
2. For a given network/interface, specify an IP address to be used
instead of being assigned a random IP from the network
3. A floating IP to be used for the instance
With the jClouds version 1.7 and later, CreateServerOptions.networks()
fulfills item #1 (please seee
https://issues.apache.org/jira/browse/JCLOUDS-416, )
Can someone give me some pointers on whether items #2 and #3 are also
supported. If not, I would appreciate some pointers, tips on how to
extend the existing API to support them.
Thanks in advance!
Regards,
-Jeffrey
Re: Questions about network related support for jClouds
Posted by Andrew Phillips <an...@apache.org>.
> I'm not sure how to use NovaTemplateOptions in the context of
> CreateServerOptions. Right now, I'm using CreateServerOptions in
> ServerApi.create() to create a new instance. Not really sure how to
> combine that with NovaTemplateOptions. Perhaps there's another way to
> spin off an instance besides ServerApi.create()?
Have a look at the "jclouds Core Concepts" document [1], which will
hopefully help explain the difference between the abstract
ComputeService and the provider-specific APIs such as server API.
Regards
ap
[1] https://wiki.apache.org/jclouds/Core%20Concepts