Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AC0B1200B0F for ; Thu, 12 May 2016 17:03:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AACD6160939; Thu, 12 May 2016 15:03:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06AB6160A10 for ; Thu, 12 May 2016 17:03:26 +0200 (CEST) Received: (qmail 9296 invoked by uid 500); 12 May 2016 15:03:26 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 9275 invoked by uid 99); 12 May 2016 15:03:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2016 15:03:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E28E6DFFAB; Thu, 12 May 2016 15:03:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Thu, 12 May 2016 15:03:27 -0000 Message-Id: In-Reply-To: <3dca2637a74a4be8b7dea54a0700f236@git.apache.org> References: <3dca2637a74a4be8b7dea54a0700f236@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/3] git commit: updated refs/heads/4.7 to 3fab757 archived-at: Thu, 12 May 2016 15:03:27 -0000 Merge pull request #1474 from remibergsma/47_private_gw_initial_config Handle private gateways more reliablyWhen initialising a VPC router we need to know which IP/device corresponds to a private gateway. This is to solve a problem when stop/starting a VPC router (which gets the private gateway config as a guest network and as a result breaks the functionality). You read it right, the private gateway is sent as type=guest after reboot and type=public initially. Before this change, you could add a private gw to a running router but you couldn't restart it (it would mix up the tiers). Now the private gateway is detected properly and it works just fine. Booting without private gateway: ``` root@r-167-VM:~# cat /etc/cloudstack/cmdline.json { "config": { "baremetalnotificationapikey": "V2l1u3wKJVan01h8kq63-5Y5Ia3VLEW1v_Z6i-31QIRJXlt5vkqaqf6DVcdK0jP3u79SW6X9pqJSLSwQP2c2Rw", "baremetalnotificationsecuritykey": "OXI16srCrxFBi-xOtEwcYqwLlMfSFTlTg66YHtXBBqR7HNN1us3HP5zWOKxfVmz4a3C1kUNLPrUH13gNmZlu4w", "disable_rp_filter": "true", "dns1": "8.8.8.8", "domain": "cs2cloud", "eth0ip": "169.254.0.42", "eth0mask": "255.255.0.0", "host": "192.168.22.61", "name": "r-167-VM", "port": "8080", "privategateway": "None", "redundant_router": "false", "template": "domP", "type": "vpcrouter", "vpccidr": "10.0.0.0/24" }, "id": "cmdline" ``` Booting with private gateway: ``` root@r-167-VM:~# cat /etc/cloudstack/cmdline.json { "config": { "baremetalnotificationapikey": "V2l1u3wKJVan01h8kq63-5Y5Ia3VLEW1v_Z6i-31QIRJXlt5vkqaqf6DVcdK0jP3u79SW6X9pqJSLSwQP2c2Rw", "baremetalnotificationsecuritykey": "OXI16srCrxFBi-xOtEwcYqwLlMfSFTlTg66YHtXBBqR7HNN1us3HP5zWOKxfVmz4a3C1kUNLPrUH13gNmZlu4w", "disable_rp_filter": "true", "dns1": "8.8.8.8", "domain": "cs2cloud", "eth0ip": "169.254.2.227", "eth0mask": "255.255.0.0", "host": "192.168.22.61", "name": "r-167-VM", "port": "8080", "privategateway": "10.201.10.1", "redundant_router": "false", "template": "domP", "type": "vpcrouter", "vpccidr": "10.0.0.0/24" }, "id": "cmdline" ``` And: ``` cat cmdline vpccidr=10.0.0.0/24 domain=cs2cloud dns1=8.8.8.8 privategateway=10.201.10.1 template=domP name=r-167-VM eth0ip=169.254.2.227 eth0mask=255.255.0.0 type=vpcrouter disable_rp_filter=true baremetalnotificationsecuritykey=OXI16srCrxFBi-xOtEwcYqwLlMfSFTlTg66YHtXBBqR7HNN1us3HP5zWOKxfVmz4a3C1kUNLPrUH13gNmZlu4w baremetalnotificationapikey=V2l1u3wKJVan01h8kq63-5Y5Ia3VLEW1v_Z6i-31QIRJXlt5vkqaqf6DVcdK0jP3u79SW6X9pqJSLSwQP2c2Rw host=192.168.22.61 port=8080 ``` Logs: ``` 2016-02-24 20:08:45,723 DEBUG [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:ctx-458d4c52 job-1402/job-1403 ctx-d5355fca) (logid:5772906c) Set privategateway field in cmd_line.json to 10.201.10.1 ``` * pr/1474: Handle private gateways more reliably Add private gateway IP to router initialization config Signed-off-by: Will Stevens Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3fab7577 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3fab7577 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3fab7577 Branch: refs/heads/4.7 Commit: 3fab75772f02a3b79849c59a7723aa2370814cc9 Parents: 919660d f4f9b3a Author: Will Stevens Authored: Thu May 12 11:02:55 2016 -0400 Committer: Will Stevens Committed: Thu May 12 11:02:55 2016 -0400 ---------------------------------------------------------------------- .../VpcVirtualNetworkApplianceManagerImpl.java | 10 +++++ .../debian/config/opt/cloud/bin/cs/CsHelper.py | 2 +- .../debian/config/opt/cloud/bin/merge.py | 46 ++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3fab7577/server/src/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3fab7577/systemvm/patches/debian/config/opt/cloud/bin/cs/CsHelper.py ----------------------------------------------------------------------