mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
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:
parent
cef3acaa6e
commit
db7582a397
@ -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;
|
||||
}
|
||||
|
9
XenModel/Messages.Designer.cs
generated
9
XenModel/Messages.Designer.cs
generated
@ -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:
|
||||
///
|
||||
|
@ -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 &Pool Secret</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user