GCP composer creation failed with bad request

江枫思渺然 提交于 2020-01-15 09:32:05

问题


Trying to create GCP composer environment instance with gcloud CLI

gcloud composer environments create "jakub" \
>     --project "projectX" \
>     --location "us-central1" \
>     --zone "us-central1-a" \
>     --disk-size 50GB \
>     --node-count 3 \
>     --image-version composer-1.7.1-airflow-1.10.2 \
>     --machine-type n1-standard-2 \
>     --python-version 3 \
>     --labels env="test"

After an hour getting error:

f7b3f4-6b95-4fb0-85e3-f39a2b11cec9] failed: Http error status code: 400
Http error message: BAD REQUEST
Additional errors:
    {"ResourceType":"appengine.v1.version","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Legacy health checks are no longer supported for the App Engine Flexible environment. Please remove the 'health_check' section from your app.yaml and configure updated health checks. For instructions on migrating to split health checks see https://cloud.google.com/appengine/docs/flexible/java/migrating-to-split-health-checks","status":"INVALID_ARGUMENT","details":[],"statusMessage":"Bad Request","requestPath":"https://appengine.googleapis.com/v1/apps/vd41e6cad4ccb2a7b-tp/services/default/versions","httpMethod":"POST"}}

Based on https://cloud.google.com/sdk/gcloud/reference/composer/environments/create


回答1:


This is caused because you are trying to use an old image version. Retry Composer Environment creation with a newer supported version as per Supported Cloud Composer versions.



来源:https://stackoverflow.com/questions/59428114/gcp-composer-creation-failed-with-bad-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!