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 78553200D29 for ; Thu, 26 Oct 2017 09:09:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76C681609E8; Thu, 26 Oct 2017 07:09:05 +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 BC8CD160BF2 for ; Thu, 26 Oct 2017 09:09:04 +0200 (CEST) Received: (qmail 42652 invoked by uid 500); 26 Oct 2017 07:09:03 -0000 Mailing-List: contact issues-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 issues@cloudstack.apache.org Received: (qmail 42643 invoked by uid 500); 26 Oct 2017 07:09:03 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 42640 invoked by uid 99); 26 Oct 2017 07:09:03 -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; Thu, 26 Oct 2017 07:09:03 +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 E580A1A004A for ; Thu, 26 Oct 2017 07:09:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id N7o0yuaymR_B for ; Thu, 26 Oct 2017 07:09:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 14D555F5B8 for ; Thu, 26 Oct 2017 07:09:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5AD7DE061F for ; Thu, 26 Oct 2017 07:09:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 15DDC212F7 for ; Thu, 26 Oct 2017 07:09:00 +0000 (UTC) Date: Thu, 26 Oct 2017 07:09:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9880) Expansion of Management IP Range. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Oct 2017 07:09:05 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220064#comment-16220064 ] ASF GitHub Bot commented on CLOUDSTACK-9880: -------------------------------------------- DaanHoogland commented on a change in pull request #2048: CLOUDSTACK-9880: Expansion of Management IP Range. URL: https://github.com/apache/cloudstack/pull/2048#discussion_r147059958 ########## File path: engine/schema/src/com/cloud/dc/dao/DataCenterIpAddressDao.java ########## @@ -45,8 +45,11 @@ int countIPs(long dcId, boolean onlyCountAllocated); + int countIPs(String ipAddress, long podId, long dcId, boolean onlyCountAllocated); Review comment: actually it doesn't. It can be one method that acts based upon the presence of values in the parameters. i.e. if there is no ip present it searches for ranges in pods/DCs and if an ip is present (not null) it checks for allocation. If the behaviour is really distinct than so should the name. In that case i suggest you rename it to isAllocatedInPodOrDc(), or maybe countIpAddressUsage() or countIpAddressOccurance? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org > Expansion of Management IP Range. > --------------------------------- > > Key: CLOUDSTACK-9880 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9880 > Project: CloudStack > Issue Type: New Feature > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.10.0.0 > Reporter: Nitin Kumar Maharana > Fix For: 4.10.1.0 > > > At present, The management IP range can only be expanded under the same subnet. According to existing range, either the last IP can be forward extended or the first IP can be backward extended. But we cannot add an entirely different range from the same subnet. So the expansion of range is subnet bound, which is fixed. But when the range gets exhausted and a user wants to deploy more system VMs, then the operation would fail. The purpose of this feature is to expand the range of management network IPs within the existing subnet. It can also delete and list the IP ranges. > Please find the FS here : https://cwiki.apache.org/confluence/display/CLOUDSTACK/Expansion+of+Management+IP+Range -- This message was sent by Atlassian JIRA (v6.4.14#64029)