-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2 more message based deployment checks.
Change-Id: Iddb877b3d237851f11335b250c10aaf17740bea0 GitOrigin-RevId: 98b275a30158f17ac9cde21264f2d1a8cff7d306
- Loading branch information
Showing
10 changed files
with
440 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 21 additions & 2 deletions
23
gcpdiag/runbook/cloudrun/templates/service_deployment.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
{% block deployment_working_failure_remediation %} | ||
{% block starts_correctly_failure_remediation %} | ||
The container failed to start. Please check | ||
https://cloud.google.com/run/docs/troubleshooting#container-failed-to-start | ||
for the next steps. | ||
{% endblock %} | ||
|
||
{% block deployment_working_failure_reason %} | ||
{% block starts_correctly_failure_reason %} | ||
Container failed to start in service { name }. | ||
{% endblock %} | ||
|
||
{% block image_exists_failure_remediation %} | ||
The provided image does not exist. Make sure that it is correct. Try following | ||
quickstart guide and see how to correctly specify image names. https://cloud.google.com/run/docs/quickstarts | ||
{% endblock %} | ||
|
||
{% block image_exists_failure_reason %} | ||
Provided image {image} does not exist. | ||
{% endblock %} | ||
|
||
{% block has_permission_for_image_failure_remediation %} | ||
Please make sure that {sa} has roles/storage.objectViewer role if the image is stored in Container | ||
Registry or roles/artifactregistry.reader if in Artifact Registry. Please note that the role needs to be granted in the | ||
project where the image is stored. | ||
{% endblock %} | ||
|
||
{% block has_permission_for_image_failure_reason %} | ||
Cloud Run Service agent {sa} does not have permissions to read image {image}. | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.