Repository navigation
make control.cidr and control.gateway dynamic #7746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e83c568
3d390b1
8cd48ac
34dabe4
a7b9fbe
efd2cd9
3dd5858
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,7 @@ | |||||
| import java.util.Map; | ||||||
| import java.util.Set; | ||||||
|
|
||||||
| import org.apache.cloudstack.framework.config.ConfigKey; | ||||||
| import org.apache.cloudstack.framework.config.impl.ConfigurationSubGroupVO; | ||||||
|
|
||||||
| import com.cloud.dc.ClusterVO; | ||||||
|
|
@@ -54,10 +55,40 @@ | |||||
| */ | ||||||
| public interface ConfigurationManager { | ||||||
|
|
||||||
| public static final String MESSAGE_CREATE_POD_IP_RANGE_EVENT = "Message.CreatePodIpRange.Event"; | ||||||
| public static final String MESSAGE_DELETE_POD_IP_RANGE_EVENT = "Message.DeletePodIpRange.Event"; | ||||||
| public static final String MESSAGE_CREATE_VLAN_IP_RANGE_EVENT = "Message.CreateVlanIpRange.Event"; | ||||||
| public static final String MESSAGE_DELETE_VLAN_IP_RANGE_EVENT = "Message.DeleteVlanIpRange.Event"; | ||||||
| String MESSAGE_CREATE_POD_IP_RANGE_EVENT = "Message.CreatePodIpRange.Event"; | ||||||
| String MESSAGE_DELETE_POD_IP_RANGE_EVENT = "Message.DeletePodIpRange.Event"; | ||||||
| String MESSAGE_CREATE_VLAN_IP_RANGE_EVENT = "Message.CreateVlanIpRange.Event"; | ||||||
| String MESSAGE_DELETE_VLAN_IP_RANGE_EVENT = "Message.DeleteVlanIpRange.Event"; | ||||||
|
|
||||||
| ConfigKey<Boolean> SystemVMUseLocalStorage = new ConfigKey<>( | ||||||
| Boolean.class, | ||||||
| "system.vm.use.local.storage", | ||||||
| "Advanced", | ||||||
| "false", | ||||||
| "Indicates whether to use local storage pools or shared storage pools for system VMs.", | ||||||
| false, | ||||||
| ConfigKey.Scope.Zone, | ||||||
| null); | ||||||
|
|
||||||
| ConfigKey<String> ControlCidr = new ConfigKey<>( | ||||||
| String.class, | ||||||
| "control.cidr", | ||||||
| "Advanced", | ||||||
| "169.254.0.0/16", | ||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
like this and abandon all other changes in this PR, right @wido ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Almost @DaanHoogland , but also in:
If we change it to a /20 in those files we should be good.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will only work for new environments. I don't think this will work when upgrading environment. These hardcoded values of an already otherwise deplayed config item will break systems and needs a bit more TLC .
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DaanHoogland
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. For upgrades we shouldn't touch anything. Unless somebody is going to use BGP Unnumbered in their existing environment. Otherwise just using the /20 for new deployments is fine.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well, this means that the hardcoded values in NetUtils.java and AgentProperties.java have to be intelligent... we can not assume returning the one or the other in these methods. That complicates things a bit. |
||||||
| "Changes the cidr for the control network traffic. Defaults to using link local. Must be unique within pods", | ||||||
| false, | ||||||
| ConfigKey.Scope.Zone, | ||||||
| null); | ||||||
|
|
||||||
| ConfigKey<String> ControlGateway = new ConfigKey<>( | ||||||
| String.class, | ||||||
| "control.gateway", | ||||||
| "Advanced", | ||||||
| "169.254.0.1", | ||||||
| "gateway for the control network traffic", | ||||||
| false, | ||||||
| ConfigKey.Scope.Zone, | ||||||
| null); | ||||||
|
|
||||||
| /** | ||||||
| * @param offering | ||||||
|
|
@@ -78,58 +109,6 @@ public interface ConfigurationManager { | |||||
| */ | ||||||
| String updateConfiguration(long userId, String name, String category, String value, String scope, Long id); | ||||||
|
|
||||||
| // /** | ||||||
| // * Creates a new service offering | ||||||
| // * | ||||||
| // * @param name | ||||||
| // * @param cpu | ||||||
| // * @param ramSize | ||||||
| // * @param speed | ||||||
| // * @param displayText | ||||||
| // * @param localStorageRequired | ||||||
| // * @param offerHA | ||||||
| // * @param domainId | ||||||
| // * @param volatileVm | ||||||
| // * @param hostTag | ||||||
| // * @param networkRate | ||||||
| // * TODO | ||||||
| // * @param id | ||||||
| // * @param useVirtualNetwork | ||||||
| // * @param deploymentPlanner | ||||||
| // * @param details | ||||||
| // * @param bytesReadRate | ||||||
| // * @param bytesWriteRate | ||||||
| // * @param iopsReadRate | ||||||
| // * @param iopsWriteRate | ||||||
| // * @return ID | ||||||
| // */ | ||||||
| // ServiceOfferingVO createServiceOffering(long userId, boolean isSystem, VirtualMachine.Type vm_typeType, String name, int cpu, int ramSize, int speed, String displayText, boolean localStorageRequired, | ||||||
| // boolean offerHA, boolean limitResourceUse, boolean volatileVm, String tags, Long domainId, String hostTag, Integer networkRate, String deploymentPlanner, Map<String, String> details, | ||||||
| // Long bytesReadRate, Long bytesWriteRate, Long iopsReadRate, Long iopsWriteRate); | ||||||
|
|
||||||
| // /** | ||||||
| // * Creates a new disk offering | ||||||
| // * | ||||||
| // * @param domainId | ||||||
| // * @param name | ||||||
| // * @param description | ||||||
| // * @param numGibibytes | ||||||
| // * @param tags | ||||||
| // * @param isCustomized | ||||||
| // * @param localStorageRequired | ||||||
| // * @param isDisplayOfferingEnabled | ||||||
| // * @param isCustomizedIops (is admin allowing users to set custom iops?) | ||||||
| // * @param minIops | ||||||
| // * @param maxIops | ||||||
| // * @param bytesReadRate | ||||||
| // * @param bytesWriteRate | ||||||
| // * @param iopsReadRate | ||||||
| // * @param iopsWriteRate | ||||||
| // * @return newly created disk offering | ||||||
| // */ | ||||||
| // DiskOfferingVO createDiskOffering(Long domainId, String name, String description, Long numGibibytes, String tags, boolean isCustomized, | ||||||
| // boolean localStorageRequired, boolean isDisplayOfferingEnabled, Boolean isCustomizedIops, Long minIops, Long maxIops, | ||||||
| // Long bytesReadRate, Long bytesWriteRate, Long iopsReadRate, Long iopsWriteRate); | ||||||
|
|
||||||
| /** | ||||||
| * Creates a new pod | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.