mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
CP-21504: Added check for restart (for the version update)
Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
parent
0ac4cd5014
commit
6051949227
@ -419,17 +419,9 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
}
|
||||
}
|
||||
|
||||
//Checking can evacuate host for version updates
|
||||
//Checking reboot required and can evacuate host for version updates
|
||||
if (WizardMode == Wizards.PatchingWizard.WizardMode.NewVersion && UpdateAlert != null && UpdateAlert.Patch != null && UpdateAlert.Patch.after_apply_guidance == after_apply_guidance.restartHost)
|
||||
{
|
||||
checks.Add(new KeyValuePair<string, List<Check>>(Messages.CHECKING_CANEVACUATE_STATUS, new List<Check>()));
|
||||
checkGroup = checks[checks.Count - 1].Value;
|
||||
foreach (Host host in SelectedServers)
|
||||
{
|
||||
checkGroup.Add(new AssertCanEvacuateCheck(host, LivePatchCodesByHost));
|
||||
}
|
||||
|
||||
|
||||
checks.Add(new KeyValuePair<string, List<Check>>(Messages.CHECKING_SERVER_NEEDS_REBOOT, new List<Check>()));
|
||||
checkGroup = checks[checks.Count - 1].Value;
|
||||
var guidance = new List<after_apply_guidance>() { UpdateAlert.Patch.after_apply_guidance };
|
||||
@ -438,6 +430,13 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
{
|
||||
checkGroup.Add(new HostNeedsRebootCheck(host, guidance, LivePatchCodesByHost));
|
||||
}
|
||||
|
||||
checks.Add(new KeyValuePair<string, List<Check>>(Messages.CHECKING_CANEVACUATE_STATUS, new List<Check>()));
|
||||
checkGroup = checks[checks.Count - 1].Value;
|
||||
foreach (Host host in SelectedServers)
|
||||
{
|
||||
checkGroup.Add(new AssertCanEvacuateCheck(host, LivePatchCodesByHost));
|
||||
}
|
||||
}
|
||||
|
||||
return checks;
|
||||
|
Loading…
Reference in New Issue
Block a user