Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D36217C78 for ; Mon, 6 Oct 2014 19:16:23 +0000 (UTC) Received: (qmail 91280 invoked by uid 500); 6 Oct 2014 19:16:22 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 91228 invoked by uid 500); 6 Oct 2014 19:16:22 -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 91216 invoked by uid 99); 6 Oct 2014 19:16:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 19:16:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shadowsor@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vc0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 19:16:17 +0000 Received: by mail-vc0-f180.google.com with SMTP id le20so3661132vcb.11 for ; Mon, 06 Oct 2014 12:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/3a1dRcmsmQJjyJsZcOnQ+3SX7w6TicQ+6MhOgq9aUY=; b=RAofXStGt3cf0dOz0iJ+TXNTjiHCLKiWYmdwMyusjExipH1wuwpFzazRWKz9Xqvidt Mzgo4i8BuZSQg6jBGfgcTuTGNaEYglvmOdDJRep8yDHi5XSegQwwyXrq545Lvp76dMaL 7A+IdJ/cBmscM5KX4kaoALCQMziWG8BRi/mtSyTKyLzbXCrM6RMlGtsqPc0A7hA/nSB4 8QGiQLxRFgshTpwNMK3ztWba95S8l21Cdk3KyAmOofZH1IjTsXJVFiNjjNTzew3jl2RD rkd9nZ/0zZ7aEPVhL12J3NQF3lf5x5QmtSBlZi2PeJc+jEaJQA2wuW3aS2AyKi86971R zD5Q== MIME-Version: 1.0 X-Received: by 10.53.13.227 with SMTP id fb3mr16868073vdd.18.1412622957144; Mon, 06 Oct 2014 12:15:57 -0700 (PDT) Received: by 10.52.78.33 with HTTP; Mon, 6 Oct 2014 12:15:57 -0700 (PDT) Received: by 10.52.78.33 with HTTP; Mon, 6 Oct 2014 12:15:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Oct 2014 13:15:57 -0600 Message-ID: Subject: Re: Reserved Guest VM CIDR Question From: Marcus To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a1133c43a8ffa2a0504c5e93c X-Virus-Checked: Checked by ClamAV on apache.org --001a1133c43a8ffa2a0504c5e93c Content-Type: text/plain; charset=UTF-8 Do startip and endip createNetwork parameters not work for that (when creating the network? That should carve out a subset of the network for cloudstack use and leave the rest untouched. On Oct 6, 2014 12:57 PM, "Logan Barfield" wrote: > We have decided internally to set up a CIDR reservation with all new > accounts to give us the ability to easily attach dedicated hosts to > existing VM networks. > > We were thinking it would be easier to set up the reservation before > deploying VMs. Setting up reservation after the fact can get complicated > if a VM happens to be outside the intended reservation range. > > The issue we're having is that reservation is not allowed until the network > is in the "Implemented" state (i.e. after the first VM is deployed). > > Why is reservation not allowed upon initial network creation? If we try to > apply reservation after the first VM is online the command will fail > occasionally because the first VM is deployed outside the CIDR range. > > Example: > > Guest Net: 10.1.1.0/24 > Reserved CIDR: 10.1.1.0/25 > > - Attempt reservation before deploying a VM: Fails due to network not being > "Implemented" > - Attempt reservation after many VMs are deployed: Fails due to VMs being > outside Reserved CIDR (e.g., 10.1.1.150), and requires a lot of work to > change the VM's IP > - Attempt reservation after first VM is deployed: Either succeeds, or fails > if the first VMs IP is outside of the reserved CIDR. > > How can we fix this without hacking work arounds into the deployment logic? > (ex: Check network for 10.1.1.10, if it doesn't exist deploy the VM on > that IP, if it already exists deploy it wherever.) > > Thank You, > > Logan Barfield > Tranquil Hosting > --001a1133c43a8ffa2a0504c5e93c--