mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge branch '4.11'
This commit is contained in:
commit
1d132d0e58
@ -728,7 +728,7 @@ public class Agent implements HandlerFactory, IAgentControl {
|
|||||||
_shell.setPersistentProperty(null, KeyStoreUtils.KS_PASSPHRASE_PROPERTY, storedPassword);
|
_shell.setPersistentProperty(null, KeyStoreUtils.KS_PASSPHRASE_PROPERTY, storedPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
Script script = new Script(true, _keystoreSetupPath, 60000, s_logger);
|
Script script = new Script(_keystoreSetupPath, 60000, s_logger);
|
||||||
script.add(agentFile.getAbsolutePath());
|
script.add(agentFile.getAbsolutePath());
|
||||||
script.add(keyStoreFile);
|
script.add(keyStoreFile);
|
||||||
script.add(storedPassword);
|
script.add(storedPassword);
|
||||||
@ -772,7 +772,7 @@ public class Agent implements HandlerFactory, IAgentControl {
|
|||||||
throw new CloudRuntimeException("Unable to save received agent client and ca certificates", e);
|
throw new CloudRuntimeException("Unable to save received agent client and ca certificates", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
Script script = new Script(true, _keystoreCertImportPath, 60000, s_logger);
|
Script script = new Script(_keystoreCertImportPath, 60000, s_logger);
|
||||||
script.add(agentFile.getAbsolutePath());
|
script.add(agentFile.getAbsolutePath());
|
||||||
script.add(keyStoreFile);
|
script.add(keyStoreFile);
|
||||||
script.add(KeyStoreUtils.AGENT_MODE);
|
script.add(KeyStoreUtils.AGENT_MODE);
|
||||||
|
|||||||
@ -326,7 +326,7 @@ public class XenServerStorageMotionStrategy implements DataMotionStrategy {
|
|||||||
volumeToStorageUuid.add(new Pair<>(volumeTo, iqn));
|
volumeToStorageUuid.add(new Pair<>(volumeTo, iqn));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
volumeToStorageUuid.add(new Pair<>(volumeTo, ((StoragePool)entry.getValue()).getPath()));
|
volumeToStorageUuid.add(new Pair<>(volumeTo, ((StoragePool)entry.getValue()).getUuid()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -133,9 +133,20 @@ public class DirectNetworkGuru extends AdapterBase implements NetworkGuru {
|
|||||||
return TrafficTypes;
|
return TrafficTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* True for Advanced zones, with VXLAN isolation method and Security Groups enabled
|
||||||
|
*/
|
||||||
|
private boolean isMyIsolationMethodVxlanWithSecurityGroups(NetworkOffering offering, DataCenter dc, PhysicalNetwork physnet) {
|
||||||
|
return dc.getNetworkType().equals(NetworkType.Advanced) &&
|
||||||
|
_networkModel.areServicesSupportedByNetworkOffering(offering.getId(), Service.SecurityGroup) &&
|
||||||
|
physnet.getIsolationMethods().contains("VXLAN");
|
||||||
|
}
|
||||||
|
|
||||||
protected boolean canHandle(NetworkOffering offering, DataCenter dc, PhysicalNetwork physnet) {
|
protected boolean canHandle(NetworkOffering offering, DataCenter dc, PhysicalNetwork physnet) {
|
||||||
// this guru handles only Guest networks in Advance zone with source nat service disabled
|
// this guru handles only Guest networks in Advance zone with source nat service disabled
|
||||||
if (dc.getNetworkType() == NetworkType.Advanced && isMyTrafficType(offering.getTrafficType()) && isMyIsolationMethod(physnet) && offering.getGuestType() == GuestType.Shared
|
boolean vxlanWithSecurityGroups = isMyIsolationMethodVxlanWithSecurityGroups(offering, dc, physnet);
|
||||||
|
if (dc.getNetworkType() == NetworkType.Advanced && isMyTrafficType(offering.getTrafficType()) &&
|
||||||
|
(isMyIsolationMethod(physnet) || vxlanWithSecurityGroups) && offering.getGuestType() == GuestType.Shared
|
||||||
&& !_ntwkOfferingSrvcDao.isProviderForNetworkOffering(offering.getId(), Network.Provider.NuageVsp)
|
&& !_ntwkOfferingSrvcDao.isProviderForNetworkOffering(offering.getId(), Network.Provider.NuageVsp)
|
||||||
&& !_ntwkOfferingSrvcDao.isProviderForNetworkOffering(offering.getId(), Network.Provider.NiciraNvp)) {
|
&& !_ntwkOfferingSrvcDao.isProviderForNetworkOffering(offering.getId(), Network.Provider.NiciraNvp)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user