Hi, Gurus,

When I execute the command 'bosh deploy', I get the following error:

Preparing deployment
binding deployment (00:00:00)
binding releases (00:00:00)
binding existing deployment (00:00:00)
binding resource pools (00:00:00)
binding stemcells (00:00:00)
binding templates (00:00:00)
binding unallocated VMs (00:00:00)
binding instance networks (00:00:00)
Done 8/8 00:00:00

Preparing package compilation
finding packages to compile (00:00:00)
Done 1/1 00:00:00

Preparing DNS
binding DNS (00:00:00)
Done 1/1 00:00:00

Preparing configuration
binding configuration: Error filling in template `nats.yml.erb' for
`nats/0' (line 20: undefined method `if_p' for
#<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)
(00:00:00)
Error 1/1 00:00:00

Error 80006: Error filling in template `nats.yml.erb' for `nats/0' (line
20: undefined method `if_p' for
#<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)

Please help figure out the reason of error. Thanks a lot.

ZhengDao

Search Discussions

  • Zhengdao Yang at Feb 22, 2013 at 11:36 am
    ==========================
    bosh status

    Updating director data... done

    Director
    Name micro01 #the same name as your folder name
    URL http://10.10.1.210:25555
    Version 0.5.2 (release:ffed4d4a bosh:21e0b0bc)
    User admin
    UUID 05e80db1-ad84-4617-85f7-d6654bf09c91
    CPI vsphere

    Deployment
    Manifest /home/ubuntu/bosh-release/bosh_dev1.yml

    Release
    dev bosh_dev1/12.1-dev
    final bosh/12

    gem list bosh

    *** LOCAL GEMS ***

    bosh_aws_cpi (0.7.0)
    bosh_aws_registry (0.2.3)
    bosh_cli (1.0.3)
    bosh_common (0.5.4)
    bosh_cpi (0.5.1)
    bosh_deployer (1.4.0)
    bosh_openstack_cpi (0.0.7)
    bosh_openstack_registry (0.0.5)
    bosh_vcloud_cpi (0.4.9)
    bosh_vsphere_cpi (0.6.0)

    ==========================

    bosh_dev1.yml

    ---
    name: bosh1
    director_uuid: 05e80db1-ad84-4617-85f7-d6654bf09c91 # Change this to the
    UUID of the BOSH director.
    release: # Find this with > bosh status.
    name: bosh_dev1 # Change this to reflect the name of your release. This
    is specified in your release manifest.
    version: 12.1-dev # Specify the version of your release. This is also
    specified in your release manifest.

    networks:
    - name: default # An internal name for the network in your manifest file
    subnets:
    - reserved:
    - 10.10.1.231 - 10.10.1.253 # IP addresses which you don't want
    allocated by BOSH
    static:
    - 10.10.1.211 - 10.10.1.230 # A static IP range that can be used for
    deploying BOSH
    range: 10.10.1.0/24 # The range of IP addresses that can be accessible
    by BOSH
    gateway: 10.10.1.254
    dns:
    -
    cloud_properties:
    name: "VM Network" # The name of the virtual machine network in
    vCenter

    #
    # You shouldn't have to change any of the resource pool parameters
    #

    resource_pools:
    - name: small
    stemcell:
    name: bosh-stemcell
    version: 0.6.4
    network: default
    size: 3
    cloud_properties:
    ram: 512
    disk: 2048
    cpu: 1
    - name: medium
    stemcell:
    name: bosh-stemcell
    version: 0.6.4
    network: default
    size: 2
    cloud_properties:
    ram: 1024
    disk: 8192
    cpu: 1
    - name: director
    stemcell:
    name: bosh-stemcell
    version: 0.6.4
    network: default
    size: 1
    cloud_properties:
    ram: 2048
    disk: 8192
    cpu: 2

    compilation:
    workers: 4
    network: default
    cloud_properties:
    ram: 2048
    disk: 4096
    cpu: 4

    #
    # If you have errors with canary instances during a deployment, you can try
    # increasing the canary_watch_time and update_watch_time. The values here
    are in
    # milliseconds. Divide by 1000 to get the value in seconds.
    #
    #

    update:
    canaries: 1
    canary_watch_time: 60000
    update_watch_time: 60000
    max_in_flight: 1
    max_errors: 2

    jobs:

    - name: nats
    template: nats
    instances: 1
    resource_pool: small
    networks:
    - name: default
    static_ips:
    - 10.10.1.211 # Assign a static IP

    - name: postgres
    template: postgres
    instances: 1
    resource_pool: medium
    persistent_disk: 2048
    networks:
    - name: default
    static_ips:
    - 10.10.1.212 # Assign a static IP from the static range specified above

    - name: redis
    template: redis
    instances: 1
    resource_pool: small
    persistent_disk: 2048
    networks:
    - name: default
    static_ips:
    - 10.10.1.213 # Assign a static IP from the static range specified above

    - name: director
    template: director
    instances: 1
    resource_pool: director
    persistent_disk: 2048
    networks:
    - name: default
    static_ips:
    - 10.10.1.214 # Assign a static IP from the static range specified above

    - name: blobstore
    template: blobstore
    instances: 1
    resource_pool: medium
    persistent_disk: 20480
    networks:
    - name: default
    static_ips:
    - 10.10.1.215 # Assign a static IP from the static range specified above

    - name: health_monitor
    template: health_monitor
    instances: 1
    resource_pool: small
    networks:
    - name: default
    static_ips:
    - 10.10.1.216 # Assign a static IP from the static range specified above

    properties:
    env:

    blobstore:
    address: 10.10.1.215 # This should be the same IP specified for the job
    above
    port: 25251
    backend_port: 25552
    agent:
    user: root
    password: A11111111
    director:
    user: root
    password: A11111111

    networks:
    apps: default
    management: default

    nats:
    user: root
    password: A11111111
    address: 10.10.1.211 # This should be the same IP specified for the job
    above
    port: 4222

    postgres:
    user: root
    password: A11111111
    address: 10.10.1.212 # This should be the same IP specified for the job
    above
    port: 5432
    database: bosh

    redis:
    address: 10.10.1.213 # This should be the same IP specified for the job
    above
    port: 25255
    password: A11111111

    director:
    name: bosh_director
    address: 10.10.1.214 # This should be the same IP specified for the job
    above
    port: 25555

    hm:
    http:
    port: 25923
    user: root
    password: A11111111
    director_account:
    user: root
    password: A11111111
    intervals:
    poll_director: 60
    poll_grace_period: 30
    log_stats: 300
    analyze_agents: 60
    agent_timeout: 180
    rogue_agent_alert: 180
    loglevel: info
    email_notifications: false
    email_recipients:
    -
    smtp:
    from:
    host:
    port: 25
    auth: plain
    user: root
    password: A11111111
    domain: localdomain
    tsdb_enabled: false # If this option is set to false, comment out its
    params.
    #tsdb:
    # address: 10.1.4.228
    # port: 4242

    vcenter:
    address: 10.10.1.208 # The IP of your vCenter server
    user: Administrator # Your vCenter server user
    password: A11111111 # You vCenter user password
    datacenters:
    - name: vDataCenter # The datacenter name in vCenter
    vm_folder: vm_folder_bosh # This folder should be created
    automatically by BOSH
    template_folder: template_folder_bosh # This folder should be
    created automatically by BOSH
    disk_path: boshdeployer_bosh # Create this path manually in your
    datastore
    datastore_pattern: datastore1 # See the offcial BOSH documentation
    (documentation.md) for additional pattern params
    persistent_datastore_pattern: datastore1
    allow_mixed_datastores: true # Are you mixing persistent and
    non-persistent disks?
    clusters:
    - vCluster

    在 2013年2月22日星期五UTC+8下午7时28分57秒,zhengd...@gmail.com写道:
    Hi, Gurus,

    When I execute the command 'bosh deploy', I get the following error:

    Preparing deployment
    binding deployment (00:00:00)
    binding releases (00:00:00)
    binding existing deployment (00:00:00)
    binding resource pools (00:00:00)
    binding stemcells (00:00:00)
    binding templates (00:00:00)
    binding unallocated VMs (00:00:00)
    binding instance networks (00:00:00)
    Done 8/8 00:00:00

    Preparing package compilation
    finding packages to compile (00:00:00)
    Done 1/1 00:00:00

    Preparing DNS
    binding DNS (00:00:00)
    Done 1/1 00:00:00

    Preparing configuration
    binding configuration: Error filling in template `nats.yml.erb' for
    `nats/0' (line 20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)
    (00:00:00)
    Error 1/1 00:00:00

    Error 80006: Error filling in template `nats.yml.erb' for `nats/0' (line
    20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)

    Please help figure out the reason of error. Thanks a lot.

    ZhengDao
  • Dr Nic Williams at Feb 22, 2013 at 3:26 pm
    I think you're using an old bosh/microbosh. Microbosh 0.8.1 includes the
    new p and if_p helpers.

    --
    Dr Nic Williams
    Stark & Wayne LLC - consultancy for Cloud Foundry users
    http://drnicwilliams.com
    http://starkandwayne.com
    cell +1 (415) 860-2185
    twitter @drnic
  • Rice Yang at Mar 7, 2013 at 8:26 am
    Hi,

    Thanks a lot. it's the key reason and I've solved it by downloading new
    stemcells.

    But it's strange, when I use command "bosh public stemcells" I can't see
    the latest version stemcells. when I use "bosh public stemcells --tag
    vsphere, it showed. Anyway. Thanks a lot.

    ZhengDao

    在 2013年2月22日星期五UTC+8下午7时28分57秒,Rice Yang写道:
    Hi, Gurus,

    When I execute the command 'bosh deploy', I get the following error:

    Preparing deployment
    binding deployment (00:00:00)
    binding releases (00:00:00)
    binding existing deployment (00:00:00)
    binding resource pools (00:00:00)
    binding stemcells (00:00:00)
    binding templates (00:00:00)
    binding unallocated VMs (00:00:00)
    binding instance networks (00:00:00)
    Done 8/8 00:00:00

    Preparing package compilation
    finding packages to compile (00:00:00)
    Done 1/1 00:00:00

    Preparing DNS
    binding DNS (00:00:00)
    Done 1/1 00:00:00

    Preparing configuration
    binding configuration: Error filling in template `nats.yml.erb' for
    `nats/0' (line 20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)
    (00:00:00)
    Error 1/1 00:00:00

    Error 80006: Error filling in template `nats.yml.erb' for `nats/0' (line
    20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)

    Please help figure out the reason of error. Thanks a lot.

    ZhengDao
  • Cfbook2013 at Mar 7, 2013 at 12:15 pm
    remeber to use bosh public stemcells -all

    在 2013年3月7日星期四UTC+8下午4时26分21秒,Rice Yang写道:
    Hi,

    Thanks a lot. it's the key reason and I've solved it by downloading new
    stemcells.

    But it's strange, when I use command "bosh public stemcells" I can't see
    the latest version stemcells. when I use "bosh public stemcells --tag
    vsphere, it showed. Anyway. Thanks a lot.

    ZhengDao

    在 2013年2月22日星期五UTC+8下午7时28分57秒,Rice Yang写道:
    Hi, Gurus,

    When I execute the command 'bosh deploy', I get the following error:

    Preparing deployment
    binding deployment (00:00:00)
    binding releases (00:00:00)
    binding existing deployment (00:00:00)
    binding resource pools (00:00:00)
    binding stemcells (00:00:00)
    binding templates (00:00:00)
    binding unallocated VMs (00:00:00)
    binding instance networks (00:00:00)
    Done 8/8 00:00:00

    Preparing package compilation
    finding packages to compile (00:00:00)
    Done 1/1 00:00:00

    Preparing DNS
    binding DNS (00:00:00)
    Done 1/1 00:00:00

    Preparing configuration
    binding configuration: Error filling in template `nats.yml.erb' for
    `nats/0' (line 20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)
    (00:00:00)
    Error 1/1 00:00:00

    Error 80006: Error filling in template `nats.yml.erb' for `nats/0' (line
    20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)

    Please help figure out the reason of error. Thanks a lot.

    ZhengDao
  • Dr Nic Williams at Mar 7, 2013 at 3:13 pm
    By default "bosh public stemcells" is equivalent to "--tags stable"
    --
    Dr Nic Williams
    Stark & Wayne LLC - the consultancy for Cloud Foundry
    http://starkandwayne.com
    +1 415 860 2185
    twitter: drnic
    On Thu, Mar 7, 2013 at 4:15 AM, null wrote:

    remeber to use bosh public stemcells -all
    在 2013年3月7日星期四UTC+8下午4时26分21秒,Rice Yang写道:
    Hi,

    Thanks a lot. it's the key reason and I've solved it by downloading new
    stemcells.

    But it's strange, when I use command "bosh public stemcells" I can't see
    the latest version stemcells. when I use "bosh public stemcells --tag
    vsphere, it showed. Anyway. Thanks a lot.

    ZhengDao

    在 2013年2月22日星期五UTC+8下午7时28分57秒,Rice Yang写道:
    Hi, Gurus,

    When I execute the command 'bosh deploy', I get the following error:

    Preparing deployment
    binding deployment (00:00:00)
    binding releases (00:00:00)
    binding existing deployment (00:00:00)
    binding resource pools (00:00:00)
    binding stemcells (00:00:00)
    binding templates (00:00:00)
    binding unallocated VMs (00:00:00)
    binding instance networks (00:00:00)
    Done 8/8 00:00:00

    Preparing package compilation
    finding packages to compile (00:00:00)
    Done 1/1 00:00:00

    Preparing DNS
    binding DNS (00:00:00)
    Done 1/1 00:00:00

    Preparing configuration
    binding configuration: Error filling in template `nats.yml.erb' for
    `nats/0' (line 20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)
    (00:00:00)
    Error 1/1 00:00:00

    Error 80006: Error filling in template `nats.yml.erb' for `nats/0' (line
    20: undefined method `if_p' for
    #<Bosh::Director::ConfigurationHasher::BindingHelper:0x000000041a7df0>)

    Please help figure out the reason of error. Thanks a lot.

    ZhengDao

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbosh-users @
postedFeb 22, '13 at 11:28a
activeMar 7, '13 at 3:13p
posts6
users3

People

Translate

site design / logo © 2021 Grokbase