mirror of https://github.com/apache/cloudstack.git
Merge branch '2.1.x' of ssh://anthony@git.cloud.com/var/lib/git/cloudstack-oss into 2.1.x
This commit is contained in:
commit
f802808613
|
|
@ -989,13 +989,20 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
} else {
|
||||
args = "-D";
|
||||
}
|
||||
String cidrSize = Long.toString(NetUtils.getCidrSize(vlanNetmask));
|
||||
if (sourceNat) {
|
||||
args += " -f";
|
||||
args += " -l ";
|
||||
args += publicIpAddress + "/" + cidrSize;
|
||||
} else if (firstIP) {
|
||||
args += " -l ";
|
||||
args += publicIpAddress + "/" + cidrSize;
|
||||
} else {
|
||||
args += " -l ";
|
||||
args += publicIpAddress;
|
||||
}
|
||||
args += " -i ";
|
||||
args += privateIpAddress;
|
||||
args += " -l ";
|
||||
args += publicIpAddress;
|
||||
args += " -c ";
|
||||
args += "eth" + correctVif.getDevice(conn);
|
||||
args += " -g ";
|
||||
|
|
|
|||
|
|
@ -1142,11 +1142,11 @@ public class UserVmManagerImpl implements UserVmManager {
|
|||
);
|
||||
userVm.setGuestMacAddress(vmMacAddress);
|
||||
_vmDao.update(userVm.getId(), userVm);
|
||||
txn.commit();
|
||||
if (routerLock) {
|
||||
_routerDao.release(routerId);
|
||||
routerLock = false;
|
||||
}
|
||||
txn.commit();
|
||||
return ipAddressStr;
|
||||
}finally {
|
||||
if (routerLock) {
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
ALTER TABLE `cloud`.`vm_instance` MODIFY COLUMN `pod_id` bigint unsigned; -- remove NOT NULL constraint to allow creating DB record in early time
|
||||
ALTER TABLE `cloud`.`storage_pool` MODIFY COLUMN `uuid` varchar(255) UNIQUE; -- remove NOT NULL constraint to allow creating DB record in early time
|
||||
|
|
|
|||
Loading…
Reference in New Issue