2017-01-16 20:59:50 +01:00
|
|
|
|
/* Copyright (c) Citrix Systems, Inc.
|
2013-06-24 13:41:48 +02:00
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms,
|
|
|
|
|
* with or without modification, are permitted provided
|
|
|
|
|
* that the following conditions are met:
|
|
|
|
|
*
|
|
|
|
|
* * Redistributions of source code must retain the above
|
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
|
* following disclaimer.
|
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
|
* following disclaimer in the documentation and/or other
|
|
|
|
|
* materials provided with the distribution.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
|
|
|
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using XenAPI;
|
|
|
|
|
using XenAdmin.Diagnostics.Problems;
|
|
|
|
|
using XenAdmin.Core;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using XenAdmin.Diagnostics.Problems.HostProblem;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Xml;
|
2015-02-12 14:11:16 +01:00
|
|
|
|
using System.Collections.Generic;
|
2015-02-16 12:11:30 +01:00
|
|
|
|
using XenAdmin.Actions;
|
2020-03-31 01:00:57 +02:00
|
|
|
|
using XenAdmin.Diagnostics.Problems.PoolProblem;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
|
|
|
|
namespace XenAdmin.Diagnostics.Checks
|
|
|
|
|
{
|
2018-06-28 17:01:39 +02:00
|
|
|
|
class PatchPrecheckCheck : HostCheck
|
2013-06-24 13:41:48 +02:00
|
|
|
|
{
|
2018-10-28 16:20:30 +01:00
|
|
|
|
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
|
|
|
|
private readonly Pool_patch Patch;
|
|
|
|
|
private readonly Pool_update Update;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
|
|
|
|
private static Regex PrecheckErrorRegex = new Regex("(<error).+(</error>)");
|
2016-08-23 19:16:33 +02:00
|
|
|
|
private static Regex LivePatchResponseRegex = new Regex("(<livepatch).+(</livepatch>)");
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
2016-10-20 18:19:42 +02:00
|
|
|
|
private readonly Dictionary<string, livepatch_status> livePatchCodesByHost;
|
2018-03-14 13:19:14 +01:00
|
|
|
|
private SR srUploadedUpdates;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
2016-10-20 18:19:42 +02:00
|
|
|
|
public PatchPrecheckCheck(Host host, Pool_patch patch, Dictionary<string, livepatch_status> livePatchCodesByHost)
|
2013-06-24 13:41:48 +02:00
|
|
|
|
: base(host)
|
|
|
|
|
{
|
2018-10-28 16:20:30 +01:00
|
|
|
|
Patch = patch;
|
2016-08-23 19:16:33 +02:00
|
|
|
|
this.livePatchCodesByHost = livePatchCodesByHost;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-14 13:19:14 +01:00
|
|
|
|
public PatchPrecheckCheck(Host host, Pool_update update, Dictionary<string, livepatch_status> livePatchCodesByHost, SR srUploadedUpdates = null)
|
2016-10-04 15:58:54 +02:00
|
|
|
|
: base(host)
|
|
|
|
|
{
|
2018-10-28 16:20:30 +01:00
|
|
|
|
Update = update;
|
2016-10-04 15:58:54 +02:00
|
|
|
|
this.livePatchCodesByHost = livePatchCodesByHost;
|
2018-03-14 13:19:14 +01:00
|
|
|
|
this.srUploadedUpdates = srUploadedUpdates;
|
2016-10-04 15:58:54 +02:00
|
|
|
|
}
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
2016-06-07 18:40:59 +02:00
|
|
|
|
protected override Problem RunCheck()
|
2013-06-24 13:41:48 +02:00
|
|
|
|
{
|
2018-03-14 13:19:14 +01:00
|
|
|
|
//
|
|
|
|
|
// Check that the SR where the update was uploaded is still attached
|
|
|
|
|
//
|
2018-05-11 15:38:44 +02:00
|
|
|
|
if (srUploadedUpdates != null
|
|
|
|
|
&& ((srUploadedUpdates.shared && !srUploadedUpdates.CanBeSeenFrom(Host))
|
|
|
|
|
|| (!srUploadedUpdates.shared && srUploadedUpdates.IsBroken())))
|
|
|
|
|
{
|
2018-03-14 13:19:14 +01:00
|
|
|
|
return new BrokenSRWarning(this, Host, srUploadedUpdates);
|
2018-05-11 15:38:44 +02:00
|
|
|
|
}
|
2018-03-14 13:19:14 +01:00
|
|
|
|
|
2013-06-24 13:41:48 +02:00
|
|
|
|
//
|
|
|
|
|
// Check patch isn't already applied here
|
|
|
|
|
//
|
2016-10-04 15:58:54 +02:00
|
|
|
|
if ((Patch != null && Patch.AppliedOn(Host) != DateTime.MaxValue)
|
|
|
|
|
|| (Update != null && Update.AppliedOn(Host)))
|
2013-06-24 13:41:48 +02:00
|
|
|
|
{
|
|
|
|
|
return new PatchAlreadyApplied(this, Host);
|
|
|
|
|
}
|
2017-05-04 15:25:36 +02:00
|
|
|
|
|
2017-09-03 04:33:29 +02:00
|
|
|
|
if (!Host.IsLive())
|
2017-05-04 15:25:36 +02:00
|
|
|
|
return new HostNotLiveWarning(this, Host);
|
|
|
|
|
|
|
|
|
|
if (!Host.Connection.IsConnected)
|
|
|
|
|
throw new EndOfStreamException(Helpers.GetName(Host.Connection));
|
|
|
|
|
|
|
|
|
|
Session session = Host.Connection.DuplicateSession();
|
|
|
|
|
|
2013-06-24 13:41:48 +02:00
|
|
|
|
try
|
|
|
|
|
{
|
2016-10-04 15:58:54 +02:00
|
|
|
|
if (Patch != null)
|
|
|
|
|
{
|
2016-10-20 18:19:42 +02:00
|
|
|
|
string result = Pool_patch.precheck(session, Patch.opaque_ref, Host.opaque_ref);
|
|
|
|
|
log.DebugFormat("Pool_patch.precheck returned: '{0}'", result);
|
|
|
|
|
|
|
|
|
|
return FindProblem(result);
|
2016-10-04 15:58:54 +02:00
|
|
|
|
}
|
2019-01-10 14:24:42 +01:00
|
|
|
|
|
|
|
|
|
if (Update!= null)
|
2016-10-04 15:58:54 +02:00
|
|
|
|
{
|
2016-10-20 18:19:42 +02:00
|
|
|
|
var livepatchStatus = Pool_update.precheck(session, Update.opaque_ref, Host.opaque_ref);
|
2016-10-04 15:58:54 +02:00
|
|
|
|
|
2016-10-20 18:19:42 +02:00
|
|
|
|
log.DebugFormat("Pool_update.precheck returned livepatch_status: '{0}'", livepatchStatus);
|
2016-08-23 19:16:33 +02:00
|
|
|
|
|
2016-10-20 18:19:42 +02:00
|
|
|
|
if (livePatchCodesByHost != null)
|
|
|
|
|
livePatchCodesByHost[Host.uuid] = livepatchStatus;
|
2019-01-10 14:24:42 +01:00
|
|
|
|
|
|
|
|
|
return null;
|
2016-10-20 18:19:42 +02:00
|
|
|
|
}
|
2017-01-26 18:03:23 +01:00
|
|
|
|
//trying to apply update to partially upgraded pool
|
2021-08-31 12:31:16 +02:00
|
|
|
|
if (Helpers.ElyOrGreater(Helpers.GetCoordinator(Host.Connection)) && !Helpers.ElyOrGreater(Host))
|
2017-01-26 18:03:23 +01:00
|
|
|
|
{
|
|
|
|
|
return new WrongServerVersion(this, Host);
|
|
|
|
|
}
|
2016-12-19 19:00:42 +01:00
|
|
|
|
|
|
|
|
|
return null;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
}
|
|
|
|
|
catch (Failure f)
|
|
|
|
|
{
|
2019-11-08 13:09:48 +01:00
|
|
|
|
log.Error(string.Join(",", f.ErrorDescription.ToArray()), f);
|
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
// try and find problem from the xapi failure
|
|
|
|
|
Problem problem = FindProblem(f);
|
|
|
|
|
return problem ?? new PrecheckFailed(this, Host, f);
|
2013-06-24 13:41:48 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-31 01:00:57 +02:00
|
|
|
|
public override string Description => Messages.SERVER_SIDE_CHECK_DESCRIPTION;
|
2013-06-24 13:41:48 +02:00
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Find problem from xml result
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="result">xml result, as returned by Pool_patch.precheck() call.
|
|
|
|
|
/// E.g.:
|
|
|
|
|
/// <error errorcode="PATCH_PRECHECK_FAILED_OUT_OF_SPACE">
|
|
|
|
|
/// <found>2049859584</found>
|
|
|
|
|
/// <required>10000000000</required>
|
|
|
|
|
/// </error>
|
|
|
|
|
/// </param>
|
|
|
|
|
/// <returns>Problem or null, if no problem found</returns>
|
|
|
|
|
private Problem FindProblem(string result)
|
2013-06-24 13:41:48 +02:00
|
|
|
|
{
|
|
|
|
|
if (!PrecheckErrorRegex.IsMatch(result.Replace("\n", "")))
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
Match m = PrecheckErrorRegex.Match(result.Replace("\n", ""));
|
|
|
|
|
|
|
|
|
|
XmlDocument doc = new XmlDocument();
|
|
|
|
|
doc.LoadXml(m.ToString());
|
|
|
|
|
log.Error(m.ToString());
|
|
|
|
|
XmlNode errorNode = doc.FirstChild;
|
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
string errorcode = errorNode.Attributes != null && errorNode.Attributes["errorcode"] != null
|
2013-06-24 13:41:48 +02:00
|
|
|
|
? errorNode.Attributes["errorcode"].Value
|
|
|
|
|
: string.Empty;
|
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
if (errorcode == "")
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
var found = "";
|
|
|
|
|
var required = "";
|
|
|
|
|
|
|
|
|
|
foreach (XmlNode node in errorNode.ChildNodes)
|
|
|
|
|
{
|
|
|
|
|
if (node.Name == "found")
|
|
|
|
|
found = node.InnerXml;
|
|
|
|
|
else if (node.Name == "required")
|
|
|
|
|
required = node.InnerXml;
|
|
|
|
|
}
|
2020-03-31 01:00:57 +02:00
|
|
|
|
var problem = FindProblem(errorcode, "", found, required);
|
2015-02-16 12:11:30 +01:00
|
|
|
|
return problem ?? new PrecheckFailed(this, Host, new Failure(errorcode));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Find problem from xapi Failure
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="failure">Xapi failure, thrown by Pool_patch.precheck() call.
|
2020-03-31 01:00:57 +02:00
|
|
|
|
/// E.g.: failure.ErrorDescription.Count = 4
|
2015-02-16 12:11:30 +01:00
|
|
|
|
/// ErrorDescription[0] = "PATCH_PRECHECK_FAILED_WRONG_SERVER_VERSION"
|
|
|
|
|
/// ErrorDescription[1] = "OpaqueRef:612b5eee-03dc-bbf5-3385-6905fdc9b079"
|
|
|
|
|
/// ErrorDescription[2] = "6.5.0"
|
|
|
|
|
/// ErrorDescription[3] = "^6\\.2\\.0$"
|
2020-03-31 01:00:57 +02:00
|
|
|
|
///
|
|
|
|
|
/// E.g.: failure.ErrorDescription.Count = 2
|
2015-02-16 12:11:30 +01:00
|
|
|
|
/// ErrorDescription[0] = "OUT_OF_SPACE"
|
|
|
|
|
/// ErrorDescription[1] = "/var/patch"
|
2020-03-31 01:00:57 +02:00
|
|
|
|
///
|
|
|
|
|
/// E.g.: failure.ErrorDescription.Count = 3 with the last parameter being an xml string
|
|
|
|
|
/// ErrorDescription[0] = "UPDATE_PRECHECK_FAILED_UNKNOWN_ERROR"
|
|
|
|
|
/// ErrorDescription[1] = "test-update"
|
|
|
|
|
/// ErrorDescription[2] = "<?x m l version="1.0" ?><error errorcode="LICENCE_RESTRICTION"></error>"
|
|
|
|
|
///
|
|
|
|
|
/// E.g.: failure.ErrorDescription.Count = 3 with the last parameter being a plain string
|
|
|
|
|
/// ErrorDescription[0] = "UPDATE_PRECHECK_FAILED_UNKNOWN_ERROR"
|
|
|
|
|
/// ErrorDescription[1] = "CH82"
|
|
|
|
|
/// ErrorDescription[2] = "VSWITCH_CONTROLLER_CONNECTED\nYou must [...] this update\n"
|
2015-02-16 12:11:30 +01:00
|
|
|
|
/// </param>
|
|
|
|
|
/// <returns>Problem or null, if no problem found</returns>
|
|
|
|
|
private Problem FindProblem(Failure failure)
|
|
|
|
|
{
|
|
|
|
|
if (failure.ErrorDescription.Count == 0)
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
var errorcode = failure.ErrorDescription[0];
|
2020-03-31 01:00:57 +02:00
|
|
|
|
var param1 = failure.ErrorDescription.Count > 1 ? failure.ErrorDescription[1] : "";
|
|
|
|
|
var param2 = failure.ErrorDescription.Count > 2 ? failure.ErrorDescription[2] : "";
|
|
|
|
|
var param3 = failure.ErrorDescription.Count > 3 ? failure.ErrorDescription[3] : "";
|
2015-02-16 12:11:30 +01:00
|
|
|
|
|
2020-03-31 01:00:57 +02:00
|
|
|
|
return FindProblem(errorcode, param1, param2, param3);
|
2015-02-16 12:11:30 +01:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-31 01:00:57 +02:00
|
|
|
|
private Problem FindProblem(string errorcode, string param1, string param2, string param3)
|
2015-02-16 12:11:30 +01:00
|
|
|
|
{
|
2020-03-31 01:00:57 +02:00
|
|
|
|
long requiredSpace;
|
|
|
|
|
long foundSpace;
|
2016-11-01 16:46:40 +01:00
|
|
|
|
long reclaimableDiskSpace = 0;
|
|
|
|
|
|
|
|
|
|
DiskSpaceRequirements diskSpaceReq;
|
|
|
|
|
|
2013-06-24 13:41:48 +02:00
|
|
|
|
switch (errorcode)
|
|
|
|
|
{
|
2016-11-11 17:02:43 +01:00
|
|
|
|
case "UPDATE_PRECHECK_FAILED_WRONG_SERVER_VERSION":
|
|
|
|
|
return new WrongServerVersion(this, Host);
|
|
|
|
|
|
|
|
|
|
case "UPDATE_PRECHECK_FAILED_CONFLICT_PRESENT":
|
2020-03-31 01:00:57 +02:00
|
|
|
|
return new ConflictingUpdatePresent(this, param2, Host);
|
2016-11-11 17:02:43 +01:00
|
|
|
|
|
|
|
|
|
case "UPDATE_PRECHECK_FAILED_PREREQUISITE_MISSING":
|
2020-03-31 01:00:57 +02:00
|
|
|
|
return new PrerequisiteUpdateMissing(this, param2, Host);
|
2016-11-11 17:02:43 +01:00
|
|
|
|
|
2013-06-24 13:41:48 +02:00
|
|
|
|
case "PATCH_PRECHECK_FAILED_WRONG_SERVER_VERSION":
|
2020-03-31 01:00:57 +02:00
|
|
|
|
return new WrongServerVersion(this, param3, Host);
|
2016-11-01 16:46:40 +01:00
|
|
|
|
|
2015-02-12 14:11:16 +01:00
|
|
|
|
case "PATCH_PRECHECK_FAILED_OUT_OF_SPACE":
|
2017-06-27 14:48:54 +02:00
|
|
|
|
System.Diagnostics.Trace.Assert(!Helpers.ElyOrGreater(Host.Connection)); // If Ely or greater, we shouldn't get this error
|
2016-11-01 16:46:40 +01:00
|
|
|
|
|
2020-03-31 01:00:57 +02:00
|
|
|
|
long.TryParse(param2, out foundSpace);
|
|
|
|
|
long.TryParse(param3, out requiredSpace);
|
2015-02-12 14:11:16 +01:00
|
|
|
|
// get reclaimable disk space (excluding current patch)
|
|
|
|
|
try
|
|
|
|
|
{
|
2015-02-16 12:11:30 +01:00
|
|
|
|
var args = new Dictionary<string, string> { { "exclude", Patch.uuid } };
|
|
|
|
|
var resultReclaimable = Host.call_plugin(Host.Connection.Session, Host.opaque_ref, "disk-space", "get_reclaimable_disk_space", args);
|
|
|
|
|
reclaimableDiskSpace = Convert.ToInt64(resultReclaimable);
|
2015-02-12 14:11:16 +01:00
|
|
|
|
}
|
2019-07-22 14:05:22 +02:00
|
|
|
|
catch (Exception exception)
|
2015-02-12 14:11:16 +01:00
|
|
|
|
{
|
2019-07-22 14:05:22 +02:00
|
|
|
|
log.WarnFormat("Plugin call disk-space.get_reclaimable_disk_space on {0} failed with {1}", Host.Name(), exception.Message);
|
2015-02-12 14:11:16 +01:00
|
|
|
|
}
|
|
|
|
|
|
2017-09-03 04:33:29 +02:00
|
|
|
|
diskSpaceReq = new DiskSpaceRequirements(DiskSpaceRequirements.OperationTypes.install, Host, Patch.Name(), requiredSpace, foundSpace, reclaimableDiskSpace);
|
2015-02-12 14:11:16 +01:00
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
return new HostOutOfSpaceProblem(this, Host, Patch, diskSpaceReq);
|
2016-11-01 16:46:40 +01:00
|
|
|
|
|
|
|
|
|
case "UPDATE_PRECHECK_FAILED_OUT_OF_SPACE":
|
|
|
|
|
System.Diagnostics.Trace.Assert(Helpers.ElyOrGreater(Host.Connection)); // If not Ely or greater, we shouldn't get this error
|
2020-03-31 01:00:57 +02:00
|
|
|
|
|
|
|
|
|
long.TryParse(param2, out foundSpace);
|
|
|
|
|
long.TryParse(param3, out requiredSpace);
|
2016-11-01 16:46:40 +01:00
|
|
|
|
|
2017-09-03 04:33:29 +02:00
|
|
|
|
diskSpaceReq = new DiskSpaceRequirements(DiskSpaceRequirements.OperationTypes.install, Host, Update.Name(), requiredSpace, foundSpace, 0);
|
2016-11-01 16:46:40 +01:00
|
|
|
|
|
|
|
|
|
return new HostOutOfSpaceProblem(this, Host, Update, diskSpaceReq);
|
|
|
|
|
|
2015-02-16 12:11:30 +01:00
|
|
|
|
case "OUT_OF_SPACE":
|
2019-01-31 00:00:56 +01:00
|
|
|
|
if (Patch != null || Update != null)
|
2015-02-16 12:11:30 +01:00
|
|
|
|
{
|
2017-06-27 14:48:54 +02:00
|
|
|
|
var action = Patch != null
|
|
|
|
|
? new GetDiskSpaceRequirementsAction(Host, Patch, true)
|
2017-09-03 04:33:29 +02:00
|
|
|
|
: new GetDiskSpaceRequirementsAction(Host, Update.Name(), Update.installation_size, true);
|
2015-02-16 12:11:30 +01:00
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
action.RunExternal(action.Session);
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
log.WarnFormat("Could not get disk space requirements");
|
|
|
|
|
}
|
|
|
|
|
if (action.Succeeded)
|
2017-06-27 14:48:54 +02:00
|
|
|
|
return Patch != null
|
|
|
|
|
? new HostOutOfSpaceProblem(this, Host, Patch, action.DiskSpaceRequirements)
|
|
|
|
|
: new HostOutOfSpaceProblem(this, Host, Update, action.DiskSpaceRequirements);
|
2015-02-16 12:11:30 +01:00
|
|
|
|
}
|
|
|
|
|
break;
|
2018-01-19 13:57:57 +01:00
|
|
|
|
case "LICENCE_RESTRICTION":
|
|
|
|
|
return new LicenseRestrictionProblem(this, Host);
|
2017-08-22 17:09:47 +02:00
|
|
|
|
case "UPDATE_PRECHECK_FAILED_UNKNOWN_ERROR":
|
2020-03-31 01:00:57 +02:00
|
|
|
|
if (param1 == "CH82" && param2.StartsWith("VSWITCH_CONTROLLER_CONNECTED"))
|
|
|
|
|
{
|
|
|
|
|
var pool = Helpers.GetPoolOfOne(Host.Connection);
|
|
|
|
|
if (pool.vSwitchController())
|
|
|
|
|
return new VSwitchControllerProblem(this, pool);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
return FindProblem(param2);
|
2013-06-24 13:41:48 +02:00
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|