mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.15'
This commit is contained in:
commit
015bb20caa
@ -2352,7 +2352,7 @@ public class NetworkOrchestrator extends ManagerBase implements NetworkOrchestra
|
||||
// Validate network offering
|
||||
if (ntwkOff.getState() != NetworkOffering.State.Enabled) {
|
||||
// see NetworkOfferingVO
|
||||
final InvalidParameterValueException ex = new InvalidParameterValueException("Can't use specified network offering id as its stat is not " + NetworkOffering.State.Enabled);
|
||||
final InvalidParameterValueException ex = new InvalidParameterValueException("Can't use specified network offering id as its state is not " + NetworkOffering.State.Enabled);
|
||||
ex.addProxyObject(ntwkOff.getUuid(), "networkOfferingId");
|
||||
throw ex;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ public class KVMPhysicalDisk {
|
||||
rbdOpts = "rbd:" + image;
|
||||
rbdOpts += ":mon_host=" + monHost;
|
||||
if (monPort > 0) {
|
||||
rbdOpts += "\\\\:" + monPort;
|
||||
rbdOpts += "\\:" + monPort;
|
||||
}
|
||||
|
||||
if (authUserName == null) {
|
||||
|
||||
@ -25,7 +25,7 @@ public class KVMPhysicalDiskTest extends TestCase {
|
||||
|
||||
public void testRBDStringBuilder() {
|
||||
assertEquals(KVMPhysicalDisk.RBDStringBuilder("ceph-monitor", 8000, "admin", "supersecret", "volume1"),
|
||||
"rbd:volume1:mon_host=ceph-monitor\\\\:8000:auth_supported=cephx:id=admin:key=supersecret:rbd_default_format=2:client_mount_timeout=30");
|
||||
"rbd:volume1:mon_host=ceph-monitor\\:8000:auth_supported=cephx:id=admin:key=supersecret:rbd_default_format=2:client_mount_timeout=30");
|
||||
}
|
||||
|
||||
public void testAttributes() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user