From 0ea7a90456c49924c11786d86671dffd41ac795f Mon Sep 17 00:00:00 2001 From: sarahkianfar <145067161+sarahkianfar@users.noreply.github.com> Date: Fri, 15 Sep 2023 12:37:07 -0700 Subject: [PATCH 1/2] Update 0193.md As part of the actionable errors initiative, I have modified the error message to be more descriptive and included a link to documentation. This is based on our recommended guidelines in the design process: https://docs.google.com/document/d/19z0AMtEqsG_d44sEVgNST0JN7NBWBHWjBAmWVA8yR38/edit#bookmark=id.rsxve02tqdl4 I have also changed the error reason to resource availability according to this guide: https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-resource-availability#resolve_resource_errors These changes have been approved by Bryan Z. and Julie S., PM and IX lead of actionable errors. Please update the example on the AIP-193 website accordingly. --- aip/general/0193.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/aip/general/0193.md b/aip/general/0193.md index dbd4ddfee..ccce8cd02 100644 --- a/aip/general/0193.md +++ b/aip/general/0193.md @@ -47,19 +47,31 @@ following: "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", - "reason": "STOCKOUT", + "reason": "resource_availability", "domain": "compute.googleapis.com", "metadata": { - "zone": "us-east1-a", "vmType": "e2-medium", "attachment": "local-ssd=3,nvidia-t4=2" + "zone": "us-east1-a", } }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", - "message": "A e2-medium with local-ssd=3,nvidia-t4=2 is currently unavailable in the us-east1-a zone.\nCapacity changes frequently, so try your request in a different zone, with a different VM hardware configuration, or at a later time. For more information, see troubleshooting documentation." + "message": An VM instance with is currently unavailable in the zone.\n + +Consider trying your request in the zone(s), which currently has/have capacity to accommodate your request.\n + +Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation." } + "@type": "type.googleapis.com/google.rpc.Help", + "links": [ + { + "description": "troubleshooting documentation" + "url": "https://cloud.google.com/compute/docs/resource-error" + } + ]"resource_availability", + "domain": "compute.googleapis.com", ] } } From 0170176026fa9539882bc1c89e4023c3dad39706 Mon Sep 17 00:00:00 2001 From: sarahkianfar <145067161+sarahkianfar@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:33:48 -0700 Subject: [PATCH 2/2] Update 0193.md I fixed the formatting issues. let me know if there is anything else --- aip/general/0193.md | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/aip/general/0193.md b/aip/general/0193.md index ccce8cd02..c6efe6694 100644 --- a/aip/general/0193.md +++ b/aip/general/0193.md @@ -47,34 +47,30 @@ following: "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", - "reason": "resource_availability", + "reason": "RESOURCE_AVAILABILITY", "domain": "compute.googleapis.com", "metadata": { "vmType": "e2-medium", - "attachment": "local-ssd=3,nvidia-t4=2" - "zone": "us-east1-a", + "attachment": "local-ssd=3,nvidia-t4=2", + "zone": "us-east1-a" } }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", - "message": An VM instance with is currently unavailable in the zone.\n - -Consider trying your request in the zone(s), which currently has/have capacity to accommodate your request.\n - -Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation." - } + "message": An VM instance with is currently unavailable in the zone.\n Consider trying your request in the zone(s), which currently has/have capacity to accommodate your request.\n Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation." + }, + { "@type": "type.googleapis.com/google.rpc.Help", - "links": [ - { - "description": "troubleshooting documentation" - "url": "https://cloud.google.com/compute/docs/resource-error" - } - ]"resource_availability", - "domain": "compute.googleapis.com", - ] - } + "links": { + "description": "troubleshooting documentation", + "url": "https://cloud.google.com/compute/docs/resource-error" + } + } + ] + } } + ``` ### Details