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: engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2326,7 +2326,8 @@ public void prepareAllNicsForMigration(final VirtualMachineProfile vm, final Dep
2326
2326
for (finalNetworkElementelement : networkElements) {
2327
2327
if (providersToImplement.contains(element.getProvider())) {
2328
2328
if (!_networkModel.isProviderEnabledInPhysicalNetwork(_networkModel.getPhysicalNetworkId(network), element.getProvider().getName())) {
2329
-
thrownewCloudRuntimeException(String.format("Service provider %s either doesn't exist or is not enabled in physical network: %s", element.getProvider().getName(), _physicalNetworkDao.findById(network.getPhysicalNetworkId())));
2329
+
thrownewCloudRuntimeException(String.format("Service provider %s either doesn't exist or is not enabled in physical network: %s",
if (ipVO.getAssociatedWithNetworkId() != null && network.getId() != ipVO.getAssociatedWithNetworkId()) {
1798
+
Stringmsg = String.format("Cannot create Load Balancer rule %s as the IP address %s is not associated " +
1799
+
"with the network %s (ID=%s)", lbName, ipVO.getAddress(), network.getName(), network.getUuid());
1800
+
logger.error(msg);
1801
+
thrownewInvalidParameterValueException(msg);
1802
+
}
1803
+
}
1804
+
1805
+
/**
1794
1806
* Transforms the cidrList from a List of Strings to a String which contains all the CIDRs from cidrList separated by whitespaces. This is used to facilitate both the persistence
1795
1807
* in the DB and also later when building the configuration String in the getRulesForPool method of the HAProxyConfigurator class.
0 commit comments