2017-08-03 9 views
1

は、私は彼らのREADMEに続く領事-boshrelease展開エラー

Deploying 
--------- 

Director task 1990 
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 compiling packages 
    Started compiling packages > envconsul/90d4cc3b4e290c3833cf5e32d0b5c99f4a63c0be 
    Started compiling packages > consul-template/561a4a5d99c375822876d5482ed24f790a0e216b 
    Started compiling packages > consul/30f12d1e70d89f28b34a433d2b885a03ae41adae 
    Failed compiling packages > consul-template/561a4a5d99c375822876d5482ed24f790a0e216b: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected params[:filters][0][:values][0] to be a String, got value nil (class: NilClass) instead.'' in 'create_vm' CPI method (00:00:12) 
    Failed compiling packages > envconsul/90d4cc3b4e290c3833cf5e32d0b5c99f4a63c0be: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected params[:filters][0][:values][0] to be a String, got value nil (class: NilClass) instead.'' in 'create_vm' CPI method (00:00:12) 
    Failed compiling packages > consul/30f12d1e70d89f28b34a433d2b885a03ae41adae: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected params[:filters][0][:values][0] to be a String, got value nil (class: NilClass) instead.'' in 'create_vm' CPI method (00:00:12) 
    Failed compiling packages (00:00:12) 

Error 100: Unknown CPI error 'InvalidCall' with message 'Arguments are not correct, details: 'expected params[:filters][0][:values][0] to be a String, got value nil (class: NilClass) instead.'' in 'create_vm' CPI method 

Task 1990 error 

私は無駄に、このUnknown CPI errorを追跡しようとしました。

答えて

0

最終的には、生成されたマニフェストファイルにエラーがあり、readmeでtemplates/make_manifest aws-ec2を実行して生成するよう指示されているという問題がありました。マニフェストが間違っているのを除いて、適切なコマンドは実際には(「ec2」部分なし)です。

とにかく、これが私のために展開されたマニフェストファイルです。領事クラスターは実際には機能していませんでした(ダッシュボードの500個のエラー)が、それは別の投稿の話です。編集された$FOOのアイテムを探して、自分で置き換えてください。

compilation: 
    cloud_properties: 
    instance_type: m3.medium 
    availability_zone: us-east-1d 
    network: consul1 
    reuse_compilation_vms: true 
    workers: 6 
director_uuid: $YOUR_ID 
jobs: 
- instances: 3 
    name: consul 
    networks: 
    - name: consul1 
    persistent_disk: 4096 
    properties: 
    consul: 
     join_host: 0.consul-z1.consul1.consul-aws.microbosh 
     services: 
     example: {} 
    networks: 
     apps: consul1 
    resource_pool: small_z1 
    templates: 
    - consumes: 
     consul_servers: 
     from: consul_leaders 
    name: consul 
    provides: 
     consul_servers: 
     as: consul_leaders 
    release: consul 
    update: 
    canaries: 0 
    max_in_flight: 50 
name: consul-aws 
networks: 
- cloud_properties: {} 
    name: floating 
    type: vip 
- cloud_properties: 
    subnet: $YOUR_SUBNET 
    security_groups: 
    - default 
    availability_zone: us-east-1d 
    name: consul1 
    type: dynamic 
properties: {} 
releases: 
- name: consul 
    version: latest 
resource_pools: 
- cloud_properties: 
    instance_type: m3.medium 
    availability_zone: us-east-1d 
    name: small_z1 
    network: consul1 
    stemcell: 
    name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent 
    version: latest 
update: 
    canaries: 0 
    canary_watch_time: 1000-60000 
    max_in_flight: 50 
    serial: true 
    update_watch_time: 1000-60000 
0

私はawkにboshを配備している間に同じエラーメッセージが表示されました。理由は私のbosh.ymlマニフェストの間違いでした。

は、代わりに

cloud_properties: {subnet: subnet-6b54e7f1} 

私は書き込み

cloud_properties: {subnet-6b54e7f1} 

たもう一つの理由は、私のインスタンスタイプが立方メートルだったということでした。それはm4でなければならない。 私の修正後、このエラーメッセージは消えました。

+0

ええと...生成されたマニフェストファイルにエラーがありました。私は解決策を投稿するつもりです。 – vcardillo