GCP作曲者创建失败,请求失败

时间:2019-12-20 15:59:50

标签: google-cloud-platform gcloud google-cloud-composer

尝试使用gcloud CLI创建GCP composer环境实例

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"

一个小时后出现错误:

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"}}

基于https://cloud.google.com/sdk/gcloud/reference/composer/environments/create

1 个答案:

答案 0 :(得分:0)

这是由于尝试使用旧的图像版本引起的。根据{{​​3}},尝试使用更新的受支持版本重试Composer Environment的创建。