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 2FAC3200C8C for ; Tue, 6 Jun 2017 16:42:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2E9D6160BC6; Tue, 6 Jun 2017 14:42:40 +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 72DCB160BC3 for ; Tue, 6 Jun 2017 16:42:39 +0200 (CEST) Received: (qmail 62222 invoked by uid 500); 6 Jun 2017 14:42:38 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 62210 invoked by uid 99); 6 Jun 2017 14:42:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 14:42:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C99191AFDBD for ; Tue, 6 Jun 2017 14:42:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.491 X-Spam-Level: ** X-Spam-Status: No, score=2.491 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id yXXaGRYT7GJM for ; Tue, 6 Jun 2017 14:42:35 +0000 (UTC) Received: from mail-ot0-f180.google.com (mail-ot0-f180.google.com [74.125.82.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4E7FF5F1D5 for ; Tue, 6 Jun 2017 14:42:35 +0000 (UTC) Received: by mail-ot0-f180.google.com with SMTP id k4so16784580otd.0 for ; Tue, 06 Jun 2017 07:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=n19KYb+zHRcls2xnJWx+wZO2qpUuOF65RBm/N44uBIc=; b=P4TKwMTmgf90LStDRKQmDTy7Qmlu3Uw5oi4S+GY3d1ae3ymH1xi8i9K14rHdRoHxiw nWyUvjeegd9bdlefxQhr/YViiO7G6iSJG+rvG/+Zox090S/r7nAwnuGRWFNp1BdNGwFe CD1ZcN6HEkQWup3N0AOcwZvhCj0BTShNi6x5dUmAlP/mb5hjL4WrluMforcNqpm+ud61 gyw/8oxphw6Kdl9etuVdygx9czJDWyY2/FEJT9awHvngka7bc1rcNF11mHlDTmf/i6VM 9zfHLSbxAqIilJQ7OPa+ML0pe2fIOyO9Ezjn8RtvULMnbwSzRoDh8EAJVmbf5alZGZK3 JlCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=n19KYb+zHRcls2xnJWx+wZO2qpUuOF65RBm/N44uBIc=; b=VmInaCQCDDuoHYr2/pxVLWPAUY0VRZqN9MTKzDaeZgDzObVY1pD4WFHcrrKLy/N26a vKlBS8/L9L7ynInUVeazt46Eg6ebPD8VWyVxM/ksyq5SBp7GQ/GiarJr1vlH109mK0fM DRmU/iFNA1fiyRBHs6odN8ylGQak9nyK468q466ZajtMgd6NHlTVti5MQgwUdE92Drcz 8lqhAmqAAa1JosSkBkU4x47/BtrRywu9XZoxxF9XKtOIetpzqGQQILkfRBK/9yZbrDKy KckCVN/ME8for6MQL2TrA4b4x3e0Z/cduABLZ9Tx+qSVVM6KNBu9oUp05OrvuG/sXNgL G43Q== X-Gm-Message-State: AODbwcAYfTFgn9X6jWF+y0LqPAqnDg8O5r2bqPlJtJ+2mMxoHuWcoTAE 2Sp/VhEFdy89zESbr++GiF3dEPIxGw== X-Received: by 10.157.37.45 with SMTP id k42mr17234290otb.83.1496760154300; Tue, 06 Jun 2017 07:42:34 -0700 (PDT) MIME-Version: 1.0 Sender: williamstevens@gmail.com Received: by 10.182.17.68 with HTTP; Tue, 6 Jun 2017 07:42:33 -0700 (PDT) In-Reply-To: References: From: Will Stevens Date: Tue, 6 Jun 2017 10:42:33 -0400 X-Google-Sender-Auth: eVAGHT81NA4EJ-LXE5MqZdv3tKs Message-ID: Subject: Re: Site-to-site VPN Connection via API To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary="001a11352e464fcae705514ba1a2" archived-at: Tue, 06 Jun 2017 14:42:40 -0000 --001a11352e464fcae705514ba1a2 Content-Type: text/plain; charset="UTF-8" What version of ACS are you using? The implementation has changed a few times recently, so it is an important detail. Cheers, *Will Stevens* CTO On Tue, Jun 6, 2017 at 10:30 AM, Andre Jacques wrote: > Hi there, > > I am currently creating Site-to-site VPN between > different instance of CloudStack using the > CloudStack API. Let's say I've got VPC_A in ENV_A > and VPC_B in ENV_B. We create VpnCustomerGateway > VCG_TO_B (IP Source NAT and CIDR of VPC_B in the > ENV_A) and VCG_TO_A (IP Source NAT and CIDR of > VPC_A in the ENV_B). I make sure both has the same > preshared-key, IKE Policy and ESP Policy. > > Then I create the VpnGateway for VPC_A and VPC_B, > then create the VpnConnection in VPC_A using the > VCG_TO_B VpnCustomerGateway. I make sure the > "passive" is checked, since the VPC_B is not yet > configured. This call does return a 200 OK HTTP > Status Code along with the data I need to refresh > my UI. > > Then the problem start. When I come to create the > VpnConnection in VPC_B to connect at VCG_TO_A > VpnCustomerGateway, generally I will receive a 534 > with the error message saying "Host with specified > id is not in the right state: Down". The problem > I've got with this is since I receive a 5xx error > code, my presumption is that the VpnConnection has > not been created, but it did. I know that the > "Connection" has been established and there is an > "Error" in that regard, nothing that a refresh > can't solve, but I believe that if the > VpnConnection is created properly in CloudStack, > regardless of its state, it should be returned > along with a 200 OK Status Code. > > Thank you for your time, > > A. Jacques > Stagiaire - Intern > t 514.447.3456 > --001a11352e464fcae705514ba1a2--