You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Ignacio Mulas Viela <im...@gmail.com> on 2013/07/23 15:31:52 UTC

Creating a VM using an existing network

Hello all!
In openstack nova (version 1.6.0-rc.4), the default behavior of creating a
new server in openstack is to create it connected to all the networks
available. I would like to know if there is any way to create a new server
attached only to some of the networks (not all). According to the openstack
API, it is possible to specify the network id... Is there any way to
achieve this?

I saw a post in the google group forum, is something already implemented?
https://groups.google.com/forum/#!searchin/jclouds-dev/openstack$20quantum$20network/jclouds-dev/SL75LEhyEq4/2qTN2IAR64AJ

Thanks in advance.
Best regards,
Ignacio

RE: Creating a VM using an existing network

Posted by Zack Shoylev <za...@RACKSPACE.COM>.
Hello!
This seems to not be currently supported.
I have created a JIRA issue to track this.
https://issues.apache.org/jira/browse/JCLOUDS-202
It should be possible to modify the create options to add the network id (or I think it's some kind of UUID actually).

Zack
________________________________________
From: Andrew Phillips [andrewp@apache.org]
Sent: Tuesday, July 23, 2013 9:50 AM
To: user@jclouds.incubator.apache.org
Subject: Re: Creating a VM using an existing network

Just to follow up on that one: I also don't see any mention of
"networks" in the sample JSON jclouds will be sending [1]...

ap

[1]
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/test/resources/new_server.json

Re: Creating a VM using an existing network

Posted by Andrew Phillips <an...@apache.org>.
Just to follow up on that one: I also don't see any mention of  
"networks" in the sample JSON jclouds will be sending [1]...

ap

[1]  
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/test/resources/new_server.json

Re: Creating a VM using an existing network

Posted by Andrew Phillips <an...@apache.org>.
> I saw a post in the google group forum, is something already implemented?
> https://groups.google.com/forum/#!searchin/jclouds-dev/openstack$20quantum$20network/jclouds-dev/SL75LEhyEq4/2qTN2IAR64AJ

Looking at the Javadocs for NovaTemplateOptions [1] and the  
CreateServerOptions object [2], I suspect that this has indeed not  
been implemented yet.

One of the OpenStack experts on the list might have more information  
for you ;-)

ap

[1]  
http://javadocs.jclouds.cloudbees.net/org/jclouds/openstack/nova/v2_0/compute/options/NovaTemplateOptions.html
[2]  
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java