如何修复BOSH部署错误`缺少属性:resource_pool.availability_zone`?

时间:2016-04-20 23:33:06

标签: amazon-web-services bosh-deployer

当我尝试BOSH部署(bosh -d nginx-ntp-xip-aws.yml -n deploy)时,出现以下错误:

Deploying
---------

Director task 311
  Started preparing deployment > Preparing deployment. Done     (00:00:01)

  Started preparing package compilation > Finding packages to compile. Done (00:00:00)

  Started creating missing vms > nginx_ntp_xip/0 (23ec1c94-f415-4922-9914-42fe5b3f2b38). Failed: Missing properties: resource_pool.availability_zone (00:00:05)

Error 100: Missing properties: resource_pool.availability_zone

1 个答案:

答案 0 :(得分:0)

问题是我的BOSH导演的 cloud-config availability_zone部分缺少vm_types属性。这是我的 cloud-config 中的azs部分:

azs:
- name: z1
  cloud_properties:
    availability_zone: us-east-1a

我更新了vm_types中的cloud-config.yml节:

vm_types:
- name: t2.nano
  cloud_properties:
    instance_type: t2.nano
    availability_zone: us-east-1a
    ephemeral_disk:
      size: 4_000
      type: gp2

然后我更新了我的BOSH导演的cloud-config:

bosh update cloud-config cloud-config.yml

我的后续部署成功了:

bosh -d nginx-ntp-xip-aws.yml -n deploy