Bosh 部署期间出错:"Arguments are not correct, details: 'expected string value for member 1 of key values of member 1 of option filters"

Error during bosh deploy: "Arguments are not correct, details: 'expected string value for member 1 of key values of member 1 of option filters"

我尝试部署 simple example。除了 warden.yml 文件外,我没有更改任何内容。所以,我尝试将其部署到AWS并使用弹性IP,这样我就可以访问特定IP的服务器。

当我部署它时,我收到:

Director task 67
Deprecation: Ignoring cloud config. Manifest contains 'networks' section.

  Started preparing deployment > Preparing deployment. Done (00:00:00)

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

  Started creating missing vms > webapp/3a8acd3a-77a8-4bad-8de4-fb544d70f76d (0). Failed: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected string value for member 1 of key values of member 1 of option filters'' in 'create_vm' CPI method (00:00:05)

Error 100: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected string value for member 1 of key values of member 1 of option filters'' in 'create_vm' CPI method

这个错误的原因是什么?

warden.yml

name: webapp-warden
director_uuid: <%= `bosh status --uuid` %>

releases:
- name: simple-bosh-release
  version: latest

compilation:
  workers: 1
  network: webapp-network
  reuse_compilation_vms: true
  cloud_properties:
    instance_type: t2.medium
    availability_zone: us-west-2a

update:
  canaries: 1
  canary_watch_time: 30000-240000
  update_watch_time: 30000-600000
  max_in_flight: 3

resource_pools:
- name: common-resource-pool
  network: webapp-network
  size: 1
  stemcell:
    name: bosh-aws-xen-ubuntu-trusty-go_agent
    version: latest
  cloud_properties:
    instance_type: t2.medium
    availability_zone: us-west-2a

networks:
- name: webapp-network
  type: vip
  cloud_properties:
    security_groups:
    - default
  # cloud_properties:
    # subnet: subnet-87d256ce
- name: default
  type: dynamic
  cloud_properties:
    security_groups:
    - default

jobs:
- name: webapp
  template: webapp
  instances: 1
  resource_pool: common-resource-pool
  networks:
    - name: webapp-network
      static_ips:
        - 52.40.58.163
    - name: default
      default: [dns, gateway]

properties:
  webapp:
    admin: foo@bar.com
    servername: 52.40.58.163

出现此错误是因为网络配置中缺少属性。提供子网 ID 并尝试。它会起作用。