cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-10126) Separate Subnet for CPVM and SSVM
Date Sat, 23 Dec 2017 20:34:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-10126:

nitin-maharana commented on a change in pull request #2368: CLOUDSTACK-10126: Separate Subnet
for SSVM and CPVM

 File path: engine/schema/src/com/cloud/dc/dao/
 @@ -47,16 +49,26 @@
     private final GenericSearchBuilder<DataCenterIpAddressVO, Integer> AllAllocatedIpCount;
     private final GenericSearchBuilder<DataCenterIpAddressVO, Integer> AllAllocatedIpCountForDc;
+    private static final ConfigKey<Boolean> SystemVmManagementIpReservationModeStrictness
= new ConfigKey<Boolean>("Advanced",
+            Boolean.class, "", "false","If
enabled, the use of System VMs management IP reservation is strict, preferred if not.", false,
-    public DataCenterIpAddressVO takeIpAddress(long dcId, long podId, long instanceId, String
reservationId) {
+    public DataCenterIpAddressVO takeIpAddress(long dcId, long podId, long instanceId, String
reservationId, boolean forSystemVms) {
         SearchCriteria<DataCenterIpAddressVO> sc = AllFieldsSearch.create();
         sc.setParameters("pod", podId);
         sc.setParameters("taken", (Date)null);
+        sc.setParameters("forSystemVms", forSystemVms);
         TransactionLegacy txn = TransactionLegacy.currentTxn();
         DataCenterIpAddressVO vo = lockOneRandomRow(sc, true);
+        // If there is no explicitly created range for system vms
 Review comment:
   Would be better if you add the reservation mode is preferred in the comment section as

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:

> Separate Subnet for CPVM and SSVM
> ---------------------------------
>                 Key: CLOUDSTACK-10126
>                 URL:
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions:
>            Reporter: Nicolas Vazquez
>            Assignee: Nicolas Vazquez
> Separate Management Subnet for CPVM and SSVM

This message was sent by Atlassian JIRA

View raw message