当我尝试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
答案 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