在GCP中创建新的Cloud Composer环境时出现400 HTTP错误

时间:2019-04-05 21:41:34

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

在GCP中创建作曲家环境时,出现此错误:

Http error status code: 400 Http error message: BAD REQUEST Additional errors: {"ResourceType":"gcp-types/storage-v1:storage.buckets.insert","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global","message":"Invalid argument","reason":"invalid"}],"message":"Invalid argument","statusMessage":"Bad Request","requestPath":"https://www.googleapis.com/storage/v1/b","httpMethod":"POST"}}

看来GKE集群已成功创建,并且有一个名为composer-agent-a62cd8ef-f7a8-4797-c732-fc15673528e8的k8s作业失败了

在查看作业容器的日志时,我发现gsutil cp失败于某个名为us-central1-test-airflow--a62cd8ef-bucket的存储桶。

在GCS中,该存储桶确实不存在。

我查看了堆栈驱动程序,发现该存储桶的创建确实失败了。这是失败的示例stackdriver记录:

{
insertId: "59zovdfe3w3r" 
 logName: "projects/analytics-analysis-1/logs/cloudaudit.googleapis.com%2Factivity" 
 protoPayload: {
  @type: "type.googleapis.com/google.cloud.audit.AuditLog"  
  authenticationInfo: {
   principalEmail: "234453461464@cloudservices.gserviceaccount.com"   
   serviceAccountDelegationInfo: [
    0: {
     firstPartyPrincipal: {
      principalEmail: "cloud-dm@prod.google.com"      
     }
    }
   ]
  }
  authorizationInfo: [
   0: {
    granted: true    
    permission: "storage.buckets.create"    
    resource: "projects/_/buckets/us-central1-test-airflow--a62cd8ef-bucket"    
    resourceAttributes: {
    }
   }
  ]
  methodName: "storage.buckets.create"  
  requestMetadata: {
   callerIp: "64.233.172.244"   
   callerSuppliedUserAgent: "Google-Deployment-Manager,gzip(gfe)"   
   destinationAttributes: {
   }
   requestAttributes: {
   }
  }
  resourceLocation: {
   currentLocations: [
    0: "us"    
   ]
  }
  resourceName: "projects/_/buckets/us-central1-test-airflow--a62cd8ef-bucket"  
  serviceName: "storage.googleapis.com"  
  status: {
   code: 3   
   message: "INVALID_ARGUMENT"   
  }
}
receiveTimestamp: "2019-04-05T09:29:59.198703635Z" 
 resource: {
  labels: {
   bucket_name: "us-central1-test-airflow--a62cd8ef-bucket"   
   location: "us"   
   project_id: "exp-project-airflow"   
  }
  type: "gcs_bucket"  
 }
severity: "ERROR" 
 timestamp: "2019-04-05T09:28:54.019Z" 
}

我想创建存储桶的失败是导致整个气流环境创建失败的原因。

我该如何解决?

0 个答案:

没有答案