CP-14649 Add friendly names for new API errors

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2015-11-02 16:24:21 +00:00
parent 2f1e5c38bb
commit 21a54f920e
2 changed files with 109 additions and 1 deletions

View File

@ -402,6 +402,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to An SR is using clustered local storage. It is not safe to reboot a host at the moment..
/// </summary>
public static string CLUSTERED_SR_DEGRADED {
get {
return ResourceManager.GetString("CLUSTERED_SR_DEGRADED", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find a network interface with the specified device name and MAC address..
/// </summary>
@ -1248,6 +1257,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to This operation cannot be performed, because it is incompatible with the currently active HA cluster stack..
/// </summary>
public static string INCOMPATIBLE_CLUSTER_STACK_ACTIVE {
get {
return ResourceManager.GetString("INCOMPATIBLE_CLUSTER_STACK_ACTIVE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to These PIFs can not be bonded, because their properties are different..
/// </summary>
@ -1257,6 +1275,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The specified SR is incompatible with the selected HA cluster stack..
/// </summary>
public static string INCOMPATIBLE_STATEFILE_SR {
get {
return ResourceManager.GetString("INCOMPATIBLE_STATEFILE_SR", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The specified interface cannot be used because it has no IP address.
/// </summary>
@ -1834,7 +1861,7 @@ namespace XenAPI {
}
/// <summary>
/// Looks up a localized string similar to XenServer Tools ISO must be ejected from all running VMs..
/// Looks up a localized string similar to XenServer Tools ISO must be ejected from all running VMs in the pool..
/// </summary>
public static string PATCH_PRECHECK_FAILED_ISO_MOUNTED {
get {
@ -2378,6 +2405,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The SR is currently attached on non-master host..
/// </summary>
public static string SR_ATTACHED_ON_SLAVE {
get {
return ResourceManager.GetString("SR_ATTACHED_ON_SLAVE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The SR failed to complete the operation.
/// </summary>
@ -3602,6 +3638,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to Not enough space to enable LVHD thin provisioning..
/// </summary>
public static string SR_BACKEND_FAILURE_457 {
get {
return ResourceManager.GetString("SR_BACKEND_FAILURE_457", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The VDI is not available.
/// </summary>
@ -4088,6 +4133,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The SR is currently detached on the master..
/// </summary>
public static string SR_DETACHED_ON_MASTER {
get {
return ResourceManager.GetString("SR_DETACHED_ON_MASTER", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The SR operation cannot be performed because a device underlying the SR is in use by the server..
/// </summary>
@ -4484,6 +4538,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The operation cannot be performed because this VDI has rrd stats.
/// </summary>
public static string VDI_HAS_RRDS {
get {
return ResourceManager.GetString("VDI_HAS_RRDS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This operation cannot be performed because a VDI is in use by some other operation..
/// </summary>
@ -4709,6 +4772,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to There is a minimal interval required between consecutive plugin calls made on the same VM, please wait before retry..
/// </summary>
public static string VM_CALL_PLUGIN_RATE_LIMIT {
get {
return ResourceManager.GetString("VM_CALL_PLUGIN_RATE_LIMIT", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to You cannot delete the specified default template..
/// </summary>
@ -4943,6 +5015,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The VM has no empty CD drive (VBD)..
/// </summary>
public static string VM_NO_EMPTY_CD_VBD {
get {
return ResourceManager.GetString("VM_NO_EMPTY_CD_VBD", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This VM does not have a suspend SR specified..
/// </summary>

View File

@ -231,6 +231,9 @@
<data name="CHANGE_PASSWORD_REJECTED" xml:space="preserve">
<value>Change password rejected</value>
</data>
<data name="CLUSTERED_SR_DEGRADED" xml:space="preserve">
<value>An SR is using clustered local storage. It is not safe to reboot a host at the moment.</value>
</data>
<data name="COULD_NOT_FIND_NETWORK_INTERFACE_WITH_SPECIFIED_DEVICE_NAME_AND_MAC_ADDRESS" xml:space="preserve">
<value>Could not find a network interface with the specified device name and MAC address.</value>
</data>
@ -513,9 +516,15 @@
<data name="IMPORT_INCOMPATIBLE_VERSION" xml:space="preserve">
<value>Cannot import on this server because it was saved on an incompatible version</value>
</data>
<data name="INCOMPATIBLE_CLUSTER_STACK_ACTIVE" xml:space="preserve">
<value>This operation cannot be performed, because it is incompatible with the currently active HA cluster stack.</value>
</data>
<data name="INCOMPATIBLE_PIF_PROPERTIES" xml:space="preserve">
<value>These PIFs can not be bonded, because their properties are different.</value>
</data>
<data name="INCOMPATIBLE_STATEFILE_SR" xml:space="preserve">
<value>The specified SR is incompatible with the selected HA cluster stack.</value>
</data>
<data name="INTERFACE_HAS_NO_IP" xml:space="preserve">
<value>The specified interface cannot be used because it has no IP address</value>
</data>
@ -890,6 +899,9 @@ Authorized Roles: {1}</value>
<data name="SM_PLUGIN_COMMUNICATION_FAILURE" xml:space="preserve">
<value>The SM plugin did not respond to a query.</value>
</data>
<data name="SR_ATTACHED_ON_SLAVE" xml:space="preserve">
<value>The SR is currently attached on non-master host.</value>
</data>
<data name="SR_ATTACH_FAILED" xml:space="preserve">
<value>Attaching this SR failed.</value>
</data>
@ -1301,6 +1313,9 @@ Authorized Roles: {1}</value>
<data name="SR_BACKEND_FAILURE_456" xml:space="preserve">
<value>Unable to attach empty optical drive to VM.</value>
</data>
<data name="SR_BACKEND_FAILURE_457" xml:space="preserve">
<value>Not enough space to enable LVHD thin provisioning.</value>
</data>
<data name="SR_BACKEND_FAILURE_46" xml:space="preserve">
<value>The VDI is not available</value>
</data>
@ -1463,6 +1478,9 @@ Authorized Roles: {1}</value>
<data name="SR_BACKEND_FAILURE_99" xml:space="preserve">
<value>Only 1 LUN may be used with shared LVM</value>
</data>
<data name="SR_DETACHED_ON_MASTER" xml:space="preserve">
<value>The SR is currently detached on the master.</value>
</data>
<data name="SR_DEVICE_IN_USE" xml:space="preserve">
<value>The SR operation cannot be performed because a device underlying the SR is in use by the server.</value>
</data>
@ -1595,6 +1613,9 @@ Authorized Roles: {1}</value>
<data name="VDI_COPY_FAILED" xml:space="preserve">
<value>The VDI copy action has failed</value>
</data>
<data name="VDI_HAS_RRDS" xml:space="preserve">
<value>The operation cannot be performed because this VDI has rrd stats</value>
</data>
<data name="VDI_INCOMPATIBLE_TYPE" xml:space="preserve">
<value>This operation cannot be performed because the specified virtual disk is of an incompatible type (e.g., an HA statefile cannot be attached to a VM)</value>
</data>
@ -1679,6 +1700,9 @@ Authorized Roles: {1}</value>
<data name="VM_BIOS_STRINGS_ALREADY_SET" xml:space="preserve">
<value>The BIOS strings for this VM have already been set and cannot be changed anymore.</value>
</data>
<data name="VM_CALL_PLUGIN_RATE_LIMIT" xml:space="preserve">
<value>There is a minimal interval required between consecutive plugin calls made on the same VM, please wait before retry.</value>
</data>
<data name="VM_CANNOT_DELETE_DEFAULT_TEMPLATE" xml:space="preserve">
<value>You cannot delete the specified default template.</value>
</data>
@ -1760,6 +1784,9 @@ Authorized Roles: {1}</value>
<data name="VM_NO_CRASHDUMP_SR" xml:space="preserve">
<value>This VM does not have a crashdump SR specified.</value>
</data>
<data name="VM_NO_EMPTY_CD_VBD" xml:space="preserve">
<value>The VM has no empty CD drive (VBD).</value>
</data>
<data name="VM_NO_SUSPEND_SR" xml:space="preserve">
<value>This VM does not have a suspend SR specified.</value>
</data>