You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/org/apache/cloudstack/api/command/user/loadbalancer/CreateLoadBalancerRuleCmd.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -138,8 +138,8 @@ public class CreateLoadBalancerRuleCmd extends BaseAsyncCreateCmd /*implements L
138
138
@Parameter(name = ApiConstants.EXPECTED_HEALTHCHECK, type = CommandType.STRING, description = "Expected healthcheck string to check if is in service.")
139
139
privateStringexpectedHealthCheck;
140
140
141
-
@Parameter(name = "forceregisterdomain", type = CommandType.BOOLEAN, description = "when true if dns integration failed, the loadbalancer will not be created")
142
-
privatebooleanforceregisterdomain = true ;
141
+
@Parameter(name = "skipdnserror", type = CommandType.BOOLEAN, description = "when false if dns integration failed, the loadbalancer will not be created and throw an exception, else lb will be created and dns it could be register later")
"when false if dns integration failed, the vm will not be created and throw an exception, else vm will be created and dns it could be register later", true, ConfigKey.Scope.Global);
107
107
// DAOs
108
108
@Inject
109
109
DataCenterDao_dcDao;
@@ -168,14 +168,14 @@ public boolean prepare(final Network network, final NicProfile nic, final Virtua
booleanforceDoaminRegister = forceConfig != null ? forceConfig.getBooleanValue() : GloboDNSForceRegisterVM.value(); // false while the config is not persisted by vm flow
booleanforceDoaminRegister = forceConfig != null ? forceConfig.getBooleanValue() : GloboDNSVmSkipDnsError.value(); // false while the config is not persisted by vm flow
s_logger.warn("IOException: ignoring loadbalancer validation because forcedoaminresgister is " + cmd.isForceDomainRegister() + ", maybe globoDNSAPI is off or with some problem. Error: " + ex.getMessage(), ex);
330
+
if (cmd.isSkipDnsError()) {
331
+
s_logger.warn("IOException: ignoring loadbalancer validation because skipdnserror is " + cmd.isSkipDnsError() + ", maybe globoDNSAPI is off or with some problem. Error: " + ex.getMessage(), ex);
335
332
returnnewAnswer(cmd, true, ex.getMessage());
333
+
} else {
334
+
s_logger.error("IOException: force loadbalancer validation because skipdnserror is "+ cmd.isSkipDnsError() + " failed: " + ex.getMessage(), ex);
Copy file name to clipboardExpand all lines: plugins/network-elements/globonetwork/src/com/globo/globonetwork/cloudstack/manager/GloboNetworkManager.java
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2174,7 +2174,7 @@ public void registerLoadbalancerDomainName(String resourceUuId) {
0 commit comments