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
s_logger.debug("AssignVM: use old shared network " + defaultNetworkOld.getName() + " with old ip " + requestedIPv4ForDefaultNic + " on default nic of vm:" + vm.getInstanceName());
5262
+
} catch (PermissionDeniedExceptione) {
5263
+
s_logger.debug("AssignVM: the shared network on old default nic can not be applied to new account");
5264
+
}
5265
+
}
5266
+
}
5267
+
}
5268
+
// cleanup the network for the oldOwner
5269
+
_networkMgr.cleanupNics(vmOldProfile);
5270
+
_networkMgr.expungeNics(vmOldProfile);
5271
+
5272
+
if (networkIdList != null && !networkIdList.isEmpty()) {
thrownewInvalidParameterValueException("No network is specified, please specify one when you move the vm. For now, please add a network to VM on NICs tab.");
5358
+
} else {
5359
+
_networkMgr.allocate(vmProfile, networks);
5360
+
}
5361
+
5362
+
_securityGroupMgr.addInstanceToGroups(vm.getId(),
5363
+
securityGroupIdList);
5364
+
s_logger.debug("AssignVM: Advanced zone, adding security groups no "
5365
+
+ securityGroupIdList.size() + " to "
5366
+
+ vm.getInstanceName());
5367
+
5245
5368
} else {
5246
5369
if (securityGroupIdList != null && !securityGroupIdList.isEmpty()) {
5247
5370
thrownewInvalidParameterValueException("Can't move vm with security groups; security group feature is not enabled in this zone");
Copy file name to clipboardExpand all lines: ui/l10n/en.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1908,6 +1908,7 @@ var dictionary = {"ICMP.code":"ICMP Code",
1908
1908
"message.alert.state.detected":"Alert state detected",
1909
1909
"message.allow.vpn.access":"Please enter a username and password of the user that you want to allow VPN access.",
1910
1910
"message.apply.snapshot.policy":"You have successfully updated your current snapshot policy.",
1911
+
"message.assign.instance.another":"Please specify the account type, domain, account name and network (optional) of the new account. <br> If the default nic of the vm is on a shared network, CloudStack will check if the network can be used by the new account if you do not specify one network. <br> If the default nic of the vm is on a isolated network, and the new account has more one isolated networks, you should specify one.",
1911
1912
"message.attach.iso.confirm":"Please confirm that you want to attach the ISO to this virtual instance.",
1912
1913
"message.attach.volume":"Please fill in the following data to attach a new volume. If you are attaching a disk volume to a Windows based virtual machine, you will need to reboot the instance to see the attached disk.",
1913
1914
"message.basic.mode.desc":"Choose this network model if you do <b>*<u>not</u>*</b> want to enable any VLAN support. All virtual instances created under this network model will be assigned an IP directly from the network and security groups are used to provide security and segregation.",
@@ -2281,4 +2282,4 @@ var dictionary = {"ICMP.code":"ICMP Code",
Copy file name to clipboardExpand all lines: ui/scripts/instances.js
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1905,7 +1905,25 @@
1905
1905
label: 'label.assign.instance.another',
1906
1906
createForm: {
1907
1907
title: 'label.assign.instance.another',
1908
-
desc: 'Please specify the account type, domain, account name and network (optional) of the new account. <br> If the default nic of the vm is on a shared network, CloudStack will check if the network can be used by the new account if you do not specify one network. <br> If the default nic of the vm is on a isolated network, and the new account has more one isolated networks, you should specify one.',
0 commit comments