From 21a54f920e8725099228ebbd3ff53975d12306bf Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Mon, 2 Nov 2015 16:24:21 +0000 Subject: [PATCH] CP-14649 Add friendly names for new API errors Signed-off-by: Mihaela Stoica --- .../XenAPI/FriendlyErrorNames.Designer.cs | 83 ++++++++++++++++++- XenModel/XenAPI/FriendlyErrorNames.resx | 27 ++++++ 2 files changed, 109 insertions(+), 1 deletion(-) diff --git a/XenModel/XenAPI/FriendlyErrorNames.Designer.cs b/XenModel/XenAPI/FriendlyErrorNames.Designer.cs index 701fe37b8..fe3bb1412 100644 --- a/XenModel/XenAPI/FriendlyErrorNames.Designer.cs +++ b/XenModel/XenAPI/FriendlyErrorNames.Designer.cs @@ -402,6 +402,15 @@ namespace XenAPI { } } + /// + /// 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.. + /// + public static string CLUSTERED_SR_DEGRADED { + get { + return ResourceManager.GetString("CLUSTERED_SR_DEGRADED", resourceCulture); + } + } + /// /// Looks up a localized string similar to Could not find a network interface with the specified device name and MAC address.. /// @@ -1248,6 +1257,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to This operation cannot be performed, because it is incompatible with the currently active HA cluster stack.. + /// + public static string INCOMPATIBLE_CLUSTER_STACK_ACTIVE { + get { + return ResourceManager.GetString("INCOMPATIBLE_CLUSTER_STACK_ACTIVE", resourceCulture); + } + } + /// /// Looks up a localized string similar to These PIFs can not be bonded, because their properties are different.. /// @@ -1257,6 +1275,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to The specified SR is incompatible with the selected HA cluster stack.. + /// + public static string INCOMPATIBLE_STATEFILE_SR { + get { + return ResourceManager.GetString("INCOMPATIBLE_STATEFILE_SR", resourceCulture); + } + } + /// /// Looks up a localized string similar to The specified interface cannot be used because it has no IP address. /// @@ -1834,7 +1861,7 @@ namespace XenAPI { } /// - /// 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.. /// public static string PATCH_PRECHECK_FAILED_ISO_MOUNTED { get { @@ -2378,6 +2405,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to The SR is currently attached on non-master host.. + /// + public static string SR_ATTACHED_ON_SLAVE { + get { + return ResourceManager.GetString("SR_ATTACHED_ON_SLAVE", resourceCulture); + } + } + /// /// Looks up a localized string similar to The SR failed to complete the operation. /// @@ -3602,6 +3638,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to Not enough space to enable LVHD thin provisioning.. + /// + public static string SR_BACKEND_FAILURE_457 { + get { + return ResourceManager.GetString("SR_BACKEND_FAILURE_457", resourceCulture); + } + } + /// /// Looks up a localized string similar to The VDI is not available. /// @@ -4088,6 +4133,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to The SR is currently detached on the master.. + /// + public static string SR_DETACHED_ON_MASTER { + get { + return ResourceManager.GetString("SR_DETACHED_ON_MASTER", resourceCulture); + } + } + /// /// 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.. /// @@ -4484,6 +4538,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to The operation cannot be performed because this VDI has rrd stats. + /// + public static string VDI_HAS_RRDS { + get { + return ResourceManager.GetString("VDI_HAS_RRDS", resourceCulture); + } + } + /// /// Looks up a localized string similar to This operation cannot be performed because a VDI is in use by some other operation.. /// @@ -4709,6 +4772,15 @@ namespace XenAPI { } } + /// + /// 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.. + /// + public static string VM_CALL_PLUGIN_RATE_LIMIT { + get { + return ResourceManager.GetString("VM_CALL_PLUGIN_RATE_LIMIT", resourceCulture); + } + } + /// /// Looks up a localized string similar to You cannot delete the specified default template.. /// @@ -4943,6 +5015,15 @@ namespace XenAPI { } } + /// + /// Looks up a localized string similar to The VM has no empty CD drive (VBD).. + /// + public static string VM_NO_EMPTY_CD_VBD { + get { + return ResourceManager.GetString("VM_NO_EMPTY_CD_VBD", resourceCulture); + } + } + /// /// Looks up a localized string similar to This VM does not have a suspend SR specified.. /// diff --git a/XenModel/XenAPI/FriendlyErrorNames.resx b/XenModel/XenAPI/FriendlyErrorNames.resx index 1cdc026c7..3fdff9c7b 100644 --- a/XenModel/XenAPI/FriendlyErrorNames.resx +++ b/XenModel/XenAPI/FriendlyErrorNames.resx @@ -231,6 +231,9 @@ Change password rejected + + An SR is using clustered local storage. It is not safe to reboot a host at the moment. + Could not find a network interface with the specified device name and MAC address. @@ -513,9 +516,15 @@ Cannot import on this server because it was saved on an incompatible version + + This operation cannot be performed, because it is incompatible with the currently active HA cluster stack. + These PIFs can not be bonded, because their properties are different. + + The specified SR is incompatible with the selected HA cluster stack. + The specified interface cannot be used because it has no IP address @@ -890,6 +899,9 @@ Authorized Roles: {1} The SM plugin did not respond to a query. + + The SR is currently attached on non-master host. + Attaching this SR failed. @@ -1301,6 +1313,9 @@ Authorized Roles: {1} Unable to attach empty optical drive to VM. + + Not enough space to enable LVHD thin provisioning. + The VDI is not available @@ -1463,6 +1478,9 @@ Authorized Roles: {1} Only 1 LUN may be used with shared LVM + + The SR is currently detached on the master. + The SR operation cannot be performed because a device underlying the SR is in use by the server. @@ -1595,6 +1613,9 @@ Authorized Roles: {1} The VDI copy action has failed + + The operation cannot be performed because this VDI has rrd stats + 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) @@ -1679,6 +1700,9 @@ Authorized Roles: {1} The BIOS strings for this VM have already been set and cannot be changed anymore. + + There is a minimal interval required between consecutive plugin calls made on the same VM, please wait before retry. + You cannot delete the specified default template. @@ -1760,6 +1784,9 @@ Authorized Roles: {1} This VM does not have a crashdump SR specified. + + The VM has no empty CD drive (VBD). + This VM does not have a suspend SR specified.