xenadmin/XenAdmin/Commands
Callum McIntyre e6cc09ae87 [CA-203752] New VM from Snapshot doesn't use default host
The reported bug was that the new VM would crash because when clicking through the wizard the pool master is selected by default, not the slave the VM snapshot is on. We already select a default host when a new VM is created from a selected host using HostAncestor, but this property is null for a template (which isn't in the server/VM tree). The fix is that if the selection is a template (which it is when we use new VM from Snapshot) then we instead use its host (using Home()) as the default host. Now the correct host is selected in the VM wizard and the VM creation succeeds.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>
2016-10-27 17:52:32 +01:00
..
Controls Merge pull request #1188 from kc284/vm_migration 2016-10-07 16:18:49 +01:00
ActivateVBDCommand.cs [CA-225062] For Ely and greater hosts, don't check for IO tools when activating/deactivating (this covers detatch + delete too in UI) a VBD 2016-10-18 16:48:05 +01:00
ActivationRequestCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
AddHostCommand.cs Moved some object/node selection methods from the MainWindow to the FlickerFreeTreView class. 2013-08-23 16:26:05 +01:00
AddHostToPoolCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
AddNewHostToPoolCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
AddVirtualDiskCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
ApplyLicenseEditionCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:17:42 +01:00
AttachVirtualDiskCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
BackupHostCommand.cs CA-213045: Rework on comments to change string format 2016-07-04 09:11:10 +08:00
BaseVIFCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
BugToolCommand.cs MainWindow tidy up: use existing method to launch the AboutBox rather than reimplementing 2013-08-21 17:13:23 +01:00
CallHomeCommand.cs CP-15401: Move HiddenFeatures to a new class 2016-01-28 21:43:15 +00:00
CancelHostConnectionCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ChangeControlDomainMemoryCommand.cs CP-16935: Configure Control domain memory for a host 2016-08-09 14:50:04 +01:00
ChangeHostPasswordCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
CollapseChildTreeNodesCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Command.cs Refactoring: it's not a good idea to set virtual members in constructors; thus 2016-09-30 13:45:44 +01:00
ConnectAllHostsCommand.cs Refactored MainWindow to derive from IMainWindow rather than implement a field deriving 2014-01-22 12:39:32 +00:00
ConvertToThinSRCommand.cs CP-16097: Hide Thin Provosioning in XenCenter 2016-02-17 13:14:42 +00:00
ConvertVMToTemplateCommand.cs CP-6267: Stop jumping to the Events window when an action has started. 2013-10-08 11:03:29 +01:00
CopyTemplateCommand.cs CP-11292: Remove storage motion constraints: Allow cross-pool copy for templates 2015-03-31 17:40:05 +01:00
CopyVMCommand.cs CP-11292: Remove storage motion constraints: Allow cross-pool copy for stopped VMs 2015-03-31 14:27:04 +01:00
CreateVIFCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
CreateVMFromTemplateCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
CrossConnectionCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
CrossPoolCopyVMCommand.cs Refactoring: it's not a good idea to set virtual members in constructors; thus 2016-09-30 13:45:44 +01:00
CrossPoolMigrateCommand.cs CA-220218: For halted VMs moving intra-pool, XenCenter does not need to assert migration 2016-10-03 10:30:40 +01:00
CrossPoolMigrateToHomeCommand.cs Refactoring: it's not a good idea to set virtual members in constructors; thus 2016-09-30 13:45:44 +01:00
CrossPoolMoveVMCommand.cs Refactoring: it's not a good idea to set virtual members in constructors; thus 2016-09-30 13:45:44 +01:00
DeactivateVBDCommand.cs [CA-225062] For Ely and greater hosts, don't check for IO tools when activating/deactivating (this covers detatch + delete too in UI) a VBD 2016-10-18 16:48:05 +01:00
DeleteFolderCommand.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
DeletePoolCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
DeleteSnapshotCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DeleteTagCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DeleteTemplateCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DeleteVirtualDiskCommand.cs Corrections and refactoring on VDI move/migrate: 2016-09-28 09:50:43 +01:00
DeleteVMCommand.cs CP-6267: Stop jumping to the Events window when an action has started. 2013-10-08 11:03:29 +01:00
DeleteVMsAndTemplatesCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DestroyBondCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
DestroyHostCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DestroySRCommand.cs CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
DetachSRCommand.cs CA-76329: SR destroy option is missing from XenCenter (even SR doesn't contains any VDI and SR is detached) 2013-07-23 13:42:27 +01:00
DetachVirtualDiskCommand.cs Fixed typos. 2016-09-06 14:53:46 +01:00
DisablePvsReadCachingCommand.cs CA-226112: Disable PVS read caching causes System.NullReferenceException 2016-10-21 07:10:23 +01:00
DisasterRecoveryCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
DisconnectAllHostsCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DisconnectCommand.cs CA-218241: Cancel connect right click menu item does not seem to be doing anything 2016-08-15 15:25:14 +01:00
DisconnectHostCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DisconnectHostsAndPoolsCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DisconnectPoolCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DisconnectWlbServerCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
DragDropAddHostToPoolCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DragDropCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DragDropCrossPoolMoveHaltedVMCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
DragDropIntoFolderCommand.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
DragDropMigrateVMCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
DragDropRemoveHostFromPoolCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
DragDropTagCommand.cs CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
DRConfigureCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
DRDryrunCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
DRFailbackCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
DRFailoverCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
EditTagsCommand.cs CA-136173: Getting several notifications for one user-level action (e.g. Updating network operation creates 4 entries in the Notifications/Events view) 2014-07-21 11:47:14 +01:00
EnablePvsReadCachingCommand.cs CP-16922: Implement GUI for enabling PVS read caching (#1179) 2016-09-22 15:08:15 +01:00
ExpandTreeNodesCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ExportCommand.cs Code repetition. 2016-10-14 12:21:59 +01:00
ExportResourceReportCommand.cs CA-161524: Resource report menu item is only shown when you're on the pool node 2015-05-20 10:17:00 +01:00
ExportSnapshotAsTemplateCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ExportTemplateCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ExportVMCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
ForceVMRebootCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ForceVMShutDownCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ForgetSavedPasswordCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ForgetSRCommand.cs CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
HACommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
HostMaintenanceModeCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
HostPasswordCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
HostReconnectAsCommand.cs CP-14647: Intermediate check-in #1 2015-11-08 11:27:56 +00:00
ImPortCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ImportSearchCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
InstallNewUpdateCommand.cs CP-18417: Removed flag forbidding update; was added for CP-17750, but is no longer applicable. 2016-10-17 11:16:16 +01:00
InstallToolsCommand.cs Improvements made while investigating CA-218953: 2016-08-17 22:35:01 +01:00
InstantVMFromTemplateCommand.cs CP-5750: Changed the declaration for the ActionBase events Completed, Changed and 2013-08-09 17:20:33 +01:00
MigrateVirtualDiskCommand.cs Corrections and refactoring on VDI move/migrate: 2016-09-28 09:50:43 +01:00
MoveVirtualDiskCommand.cs Corrections and refactoring on VDI move/migrate: 2016-09-28 09:50:43 +01:00
MoveVMCommand.cs CP-12282: Semantics of Move / Migrate / Copy for suspended VMs 2015-05-27 12:17:35 +01:00
NewFolderCommand.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
NewPoolCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
NewSRCommand.cs CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
NewTemplateFromSnapshotCommand.cs CP-5750: Changed the declaration for the ActionBase events Completed, Changed and 2013-08-09 17:20:33 +01:00
NewVMCommand.cs [CA-203752] New VM from Snapshot doesn't use default host 2016-10-27 17:52:32 +01:00
NewVMFromSnapshotCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
NewVMFromTemplateCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
PauseDockerContainerCommand.cs CP-15576: Hide containers options that aren't available for Windows Server 2016-02-12 16:48:52 +00:00
PoolReconnectAsCommand.cs CP-14647: Intermediate check-in #1 2015-11-08 11:27:56 +00:00
PowerOnHostCommand.cs Refactored MainWindow to derive from IMainWindow rather than implement a field deriving 2014-01-22 12:39:32 +00:00
PropertiesCommands.cs CA-157786: Added general tab for VDIs. 2016-10-14 13:51:51 +01:00
PutFolderIntoRenameModeCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
PutTagIntoRenameModeCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ReattachSRCommand.cs CP-17502: Hide SR types from the NewSrWizard if the corresponding sm plugin is not available. 2016-06-22 18:34:21 +01:00
RebootCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RebootHostCommand.cs CP-17470: Added missing hotkey. Performance improvement by using Exists instead of FindAll in check. 2016-06-27 10:43:29 +01:00
RebootVMCommand.cs CP-13786: GetVirtualisationStatus: Refactoring, bugfixes 2015-09-18 15:48:59 +01:00
ReconnectHostCommand.cs Refactored MainWindow to derive from IMainWindow rather than implement a field deriving 2014-01-22 12:39:32 +00:00
RemoveFromFolderCommand.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
RemoveHostCommand.cs Refactored MainWindow to derive from IMainWindow rather than implement a field deriving 2014-01-22 12:39:32 +00:00
RemoveHostCrashDumpsCommand.cs CP-6267: Stop jumping to the Events window when an action has started. 2013-10-08 11:03:29 +01:00
RemoveHostFromPoolCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
RenameFolderCommand.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
RenameTagCommand.cs CP-5750: Changed the declaration for the ActionBase events Completed, Changed and 2013-08-09 17:20:33 +01:00
RepairSRCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
RescanPIFsCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RestartDockerContainerCommand.cs CP-10927: Add container lifetime operations to the toolbar 2015-02-11 13:46:23 +00:00
RestartToolstackCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RestoreHostFromBackupCommand.cs CA-213045: Rework on comments to change string format 2016-07-04 09:11:10 +08:00
ResumeDockerContainerCommand.cs CP-10927: Add container lifetime operations to the toolbar 2015-02-11 13:46:23 +00:00
ResumeVMCommand.cs CP-13786: GetVirtualisationStatus: Refactoring, bugfixes 2015-09-18 15:48:59 +01:00
RevertToSnapshotCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
RollingUpgradeCommand.cs CP-17690: Block RPU for clusters with the hci-forbid-rpu flag (disable the relevant pools/hosts on the select pool page; do not launch the RPU wizard at all if there are no upgradable clusters). 2016-06-20 13:11:21 +01:00
SaveSessionCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
SelectedItem.cs CP-6095: Ensure the different views have a single root node with the appropriate 2013-10-08 10:17:57 +01:00
SelectedItemCollection.cs Code repetition. 2016-10-14 12:21:59 +01:00
SelectionBroadcaster.cs CA-143826: When in Notifications view, the context should be empty 2014-09-08 18:05:51 +01:00
SelectionManager.cs Just a code comment 2014-10-01 14:02:04 +01:00
SetAsDefaultSRCommand.cs CA-76329: SR destroy option is missing from XenCenter (even SR doesn't contains any VDI and SR is detached) 2013-07-23 13:42:27 +01:00
ShutDownCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ShutDownHostCommand.cs CP-17470: Added missing hotkey. Performance improvement by using Exists instead of FindAll in check. 2016-06-27 10:43:29 +01:00
ShutDownVMCommand.cs CP-13786: GetVirtualisationStatus: Refactoring, bugfixes 2015-09-18 15:48:59 +01:00
StartDockerContainerCommand.cs CP-10927: Add container lifetime operations to the toolbar 2015-02-11 13:46:23 +00:00
StartVMCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
StopDockerContainerCommand.cs CP-10927: Add container lifetime operations to the toolbar 2015-02-11 13:46:23 +00:00
SuspendVMCommand.cs CP-13786: GetVirtualisationStatus: Refactoring, bugfixes 2015-09-18 15:48:59 +01:00
TakeSnapshotCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
TrimSRCommand.cs CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
UntagCommand.cs CP-6095: Ensure the different views have a single root node with the appropriate 2013-10-08 10:17:57 +01:00
UpdateVIFCommand.cs CP-5750: Changed the declaration for the ActionBase events Completed, Changed and 2013-08-09 17:20:33 +01:00
VappShutDownCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
VappStartCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
ViewWorkloadReportsCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
VirtualDiskCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
VMGroupCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 13:26:52 +01:00
VMLifeCycleCommand.cs CP-13786: GetVirtualisationStatus: Refactoring, bugfixes 2015-09-18 15:48:59 +01:00
VMOperationCommand.cs CP-17161: Add 'using' statement around dialogs to ensure garbage collection 2016-06-20 10:49:12 +01:00
VMOperationHomeServerCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
VMOperationHostCommand.cs Fixed wrong images in the following cases: 2016-09-30 13:45:30 +01:00
VMOperationWlbHostCommand.cs CA-144708: Optimal server option doesn't seem to pass the Ronseal test 2014-09-24 11:57:07 +08:00
VMOperationWlbOptimalServerCommand.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
VMRecoveryModeCommand.cs CP-6267: Stop jumping to the Events window when an action has started. 2013-10-08 11:03:29 +01:00