Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9197510199 for ; Tue, 11 Mar 2014 18:44:13 +0000 (UTC) Received: (qmail 81706 invoked by uid 500); 11 Mar 2014 18:44:12 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 81407 invoked by uid 500); 11 Mar 2014 18:44:10 -0000 Mailing-List: contact dev-help@stratos.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.incubator.apache.org Delivered-To: mailing list dev@stratos.incubator.apache.org Received: (qmail 81369 invoked by uid 99); 11 Mar 2014 18:44:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 18:44:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Mar 2014 18:44:06 +0000 Received: (qmail 75918 invoked by uid 99); 11 Mar 2014 18:43:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 18:43:46 +0000 Date: Tue, 11 Mar 2014 18:43:45 +0000 (UTC) From: "Jeffrey Nguyen (JIRA)" To: dev@stratos.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STRATOS-507) Support to assign fixed private IPs and Port number in addition to network UUIDs for cartridges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STRATOS-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13930754#comment-13930754 ] Jeffrey Nguyen commented on STRATOS-507: ---------------------------------------- Thank you Nirmal and Reka for confirming the removal of existing "networkInterfaces" and elasticIp properties. As for the naming convention for the for the fixed IP, correct me if I'm wrong but I thought the JSON payload is Iaas specific. It is processed as-is by the underlined Iaas. As such, for OpenStack, we can use "fixed_ip" for OpenStack based on http://docs.openstack.org/api/openstack-compute/2/content/NetworksSection.h tml. Otherwise, we need to have code at the OpenStack layer/adapter to convert from "fixedIp" to "fixed_ip". Just to make sure we're all on the same page, my intention is to treat all these network properties as name/value pairs. There's no code to deal with specific network attributes. Also, where exactly do you suggest the new "network" config section be? Should it still be under "iaasProvider" but outside of the "property", or should it be some where outside of "iaasProvider" section? Thanks, -Jeffrey On 3/11/14 11:19 AM, "Reka Thirunavukkarasu (JIRA)" > Support to assign fixed private IPs and Port number in addition to network UUIDs for cartridges > ----------------------------------------------------------------------------------------------- > > Key: STRATOS-507 > URL: https://issues.apache.org/jira/browse/STRATOS-507 > Project: Stratos > Issue Type: Improvement > Components: Cloud Controller > Affects Versions: 4.0.0 Alpha > Environment: Stratos 4.0.0 Alpha, jClouds 1.7.1 > Reporter: Jeffrey Nguyen > > Hi Stratos Devs, > I'm currently working on Stratos enhancement to leverage new network API supported by jClouds [1]. > In the current environment, when we attached a list of network UUIDs to a cartridge and subscribe to this cartridge, the new instance will have private IPs randomly assigned to each network. We need the ability to specify fixed private IP for each network. > In addition to fixed private IPs, we could also assign port UUIDs or whatever the underlined Iaas supports for the networks configuration. > I am currently working on jClouds enhancement [1]. This JIRA is for the changes required on Stratos side. > Please see [3] below on how the private IPs are specified in the JSON payload. > In the existing implementation of multiple networks [2], the JSON cartridge definition can specify multiple networks like one below. > { > "name": "networkInterfaces", > "value": "fb9c21f4-0672-48b2-8279-77334bb63a53,aa1809a2-c32d-4eb8-a5c5-e46f692416e0,1e43f86f-4165-4f2e-8017-dd4cfb5548b0" > } > With this new enhancement, the JSON cartridge definition can specify multiple networks and fixed private IPs like one below. > { > "name": "networkInterfaces", > "value": "[{\"uuid\":\"fb9c21f4-0672-48b2-8279-77334bb63a53\",\"fixed_ip\":\"172.16.0.10\"},{\"uuid\":\"aa1809a2-c32d-4eb8-a5c5-e46f692416e0\",\"fixed_ip\":\"172.16.1.11\"}]" > } > Questions: > - Should introduce new property for the new format or should I just use existing "networkInterfaces" properties, which implies fixing [2]? When invoking jClouds API, we should set the value one way or the other, but not both. > - In the current implementation of Stratos, all cartridge properties are treated as String. Therefore, with this new enhancement, the networks tuples need to escape the double quotes. Is this okay? > Please let me know what you think. > Regards, > -Jeffrey > [1] https://issues.apache.org/jira/browse/JCLOUDS-493 > [2] https://issues.apache.org/jira/browse/STRATOS-180 > [3] OpenStack JSON payload for creating server with network uuid and fixed private IP: > "{"server":{"name":"testp-e12","imageRef":"66dac7ce-992c-43a4-b765-029c0b6fc1fe","flavorRef":"1d89ff82-5981-4a14-91e5-fc769f82a2f9","metadata":{"jclouds-group":"testp"},"key_name":"test","security_groups":[{"name":"default"}],"user_data":"U0VSVk...VAx","networks":[{"uuid":"fb9c21f4-0672-48b2-8279-77334bb63a53","fixed_ip":"172.16.0.10"},{"uuid":"aa1809a2-c32d-4eb8-a5c5-e46f692416e0","fixed_ip":"172.16.1.11"},{"uuid":"1e43f86f-4165-4f2e-8017-dd4cfb5548b0","fixed_ip":"172.16.2.12"}]}}" -- This message was sent by Atlassian JIRA (v6.2#6252)