You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Zack Shoylev (JIRA)" <ji...@apache.org> on 2014/04/03 20:45:15 UTC

[jira] [Comment Edited] (JCLOUDS-486) Be able to use neutron to statically assign IPs to private interface at boot time in nova

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

Zack Shoylev edited comment on JCLOUDS-486 at 4/3/14 6:43 PM:
--------------------------------------------------------------

{code}
ServerApi serverApi = api.getServerApiForZone(zoneId);
try {
   CreateServerOptions options = CreateServerOptions.Builder.novaNetworks(
      // This network UUID must match an existing network.
      ImmutableSet.of(Network.builder().networkUuid("bc4cfa2b-2b27-4671-8e8f-73009623def0").fixedIp("192.168.55.56").build())
   );
   ServerCreated server = serverApi.create(hostName, imageIdForZone(zoneId), "1", options);
   ...
}
{code}


was (Author: zack-s):
ServerApi serverApi = api.getServerApiForZone(zoneId);
try {
   CreateServerOptions options = CreateServerOptions.Builder.novaNetworks(
      // This network UUID must match an existing network.
      ImmutableSet.of(Network.builder().networkUuid("bc4cfa2b-2b27-4671-8e8f-73009623def0").fixedIp("192.168.55.56").build())
   );
   ServerCreated server = serverApi.create(hostName, imageIdForZone(zoneId), "1", options);
   ...
}

> Be able to use neutron to statically assign IPs to private interface at boot time in nova
> -----------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-486
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-486
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.8.0, 1.7.1
>            Reporter: Zack Shoylev
>            Assignee: Zack Shoylev
>             Fix For: 1.8.0, 1.7.2
>
>
> There is no way currently to assign a specific static IP to a specific network at nova instance creation time. CreateServerOptions currently only supports a network uuid, but that is not sufficient.
> Specifically, networks in nova can support the following parameters:
> fixed_ip
> uuid -> jclouds supported
> port
> uuid and port seems to be mutually exclusive.
> see: CreateServerOptions 
> see: ServerApi 
> see: ServerCreated



--
This message was sent by Atlassian JIRA
(v6.2#6252)