CP-34862: Do not allow enabling clustering when a pool secret rotation is pending.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2020-09-14 02:12:42 +01:00
parent cef3acaa6e
commit db7582a397
3 changed files with 14 additions and 0 deletions

View File

@ -178,6 +178,8 @@ namespace XenAdmin.SettingsPanels
}
else if (pool.ha_enabled)
DisableControls(Messages.GFS2_HA_ENABLED);
else if (!pool.Connection.Cache.Hosts.Any(Host.RestrictPoolSecretRotation) && pool.is_psr_pending)
DisableControls(Messages.ROTATE_POOL_SECRET_PENDING_CLUSTER);
labelHostCountWarning.Visible = pool.Connection.Cache.HostCount < 3;
}

View File

@ -32791,6 +32791,15 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to You cannot enable clustering while a pool secret rotation is in progress..
/// </summary>
public static string ROTATE_POOL_SECRET_PENDING_CLUSTER {
get {
return ResourceManager.GetString("ROTATE_POOL_SECRET_PENDING_CLUSTER", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A {0} user does not have sufficient permissions to rotate the pool secret. Please login using an account with one of the following roles:
///

View File

@ -11369,6 +11369,9 @@ The master must be upgraded first, so if you skip the master, the rolling pool u
<data name="ROTATE_POOL_SECRET_HA" xml:space="preserve">
<value>You cannot rotate the pool secret when HA is on.</value>
</data>
<data name="ROTATE_POOL_SECRET_PENDING_CLUSTER" xml:space="preserve">
<value>You cannot enable clustering while a pool secret rotation is in progress.</value>
</data>
<data name="ROTATE_POOL_SECRET_MENU" xml:space="preserve">
<value>Rotate &amp;Pool Secret</value>
</data>