jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Izek Greenfield (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (JCLOUDS-416) TemplateBuilder is lacking network id support
Date Mon, 06 Jan 2014 07:18:50 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862825#comment-13862825
] 

Izek Greenfield edited comment on JCLOUDS-416 at 1/6/14 7:17 AM:
-----------------------------------------------------------------

Hi,

I am try to do something like this:

   val modules = ImmutableSet.of(new ExecutorServiceModule(sameThreadExecutor(),     sameThreadExecutor()))

    val context = ContextBuilder.newBuilder("rackspace-cloudservers-us")
         .credentials("myUsername", "myApiKey")
         .modules(modules)
         .buildView(classOf[ComputeServiceContext])

    val compute = context.getComputeService()

    compute.createNodesInGroup("test_jclouds",1, compute.templateBuilder().smallest().networks(Lists.newArrayList("id1","id2")).build())


also i don't understand from the docs how to use: CreateServerOptions.networks() 


was (Author: igreenfi):
Hi,

I am try to do something like this:

   val modules = ImmutableSet.of(new ExecutorServiceModule(sameThreadExecutor(),     sameThreadExecutor()))

    val context = ContextBuilder.newBuilder("rackspace-cloudservers-us")
         .credentials("myUsername", "myApiKey")
         .modules(modules)
         .buildView(classOf[ComputeServiceContext])

    val compute = context.getComputeService()

    compute.createNodesInGroup("test_jclouds",1, compute.templateBuilder().smallest().networks(Lists.newArrayList("id1","id2")).build())

> TemplateBuilder is lacking network id support
> ---------------------------------------------
>
>                 Key: JCLOUDS-416
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-416
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.7.0
>            Reporter: Izek Greenfield
>              Labels: features, openstack, rackspace
>
> You can choose which network to assign to the new VM (Rackspace).
> need to add  public and internal networks.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message