Bosh Director Not assigned an IP address in vSphere

72 views
Skip to first unread message

chris....@opencredo.com

unread,
Nov 12, 2012, 5:43:52 AM11/12/12
to bosh-...@cloudfoundry.org
Hi 

I have bosh micro deploying a stem cell to vSphere server however the vm once provisioned doesn't seem to have an ip address assigned to it in vSphere client. I also cannot performa simple ping to the ip address that I have assigned to bosh director in my bosh yaml file. This is leading to connection timeouts whilst waiting for the agent. The vm is powered up by the bosh micro deploy process,

Here is a snippet from the deployment log...

I, [2012-11-12T02:05:39.819121 #8151] [create_vm(bm-ac986c50-ec83-424b-8752-3ede19c76f31, ...)]  INFO -- : Cloning vm: <[Vim.VirtualMachine] vm-1253> to vm-689766f4-834d-44b5-9ab6-36e961390c72
I, [2012-11-12T02:06:01.560344 #8151] [create_vm(bm-ac986c50-ec83-424b-8752-3ede19c76f31, ...)]  INFO -- : Setting VM env: {"vm"=>{"name"=>"vm-689766f4-834d-44b5-9ab6-36e961390c72", "id"=>"vm-1255"},
 "agent_id"=>"bm-ac986c50-ec83-424b-8752-3ede19c76f31",
 "networks"=>
  {"bosh"=>
    {"cloud_properties"=>{"name"=>"VM Network"},
     "netmask"=>"255.255.255.0",
     "gateway"=>"172.16.19.2",
     "ip"=>"172.16.4.999",
     "dns"=>[],
     "type"=>nil,
     "default"=>["dns", "gateway"],
     "mac"=>"00:50:56:93:99:fb"}},
 "disks"=>{"system"=>0, "ephemeral"=>1, "persistent"=>{}},
 "ntp"=>["bosh.ntp.comain.com"],
 "blobstore"=>
  {"plugin"=>"local",
   "properties"=>{"blobstore_path"=>"/var/vcap/micro_bosh/data/cache"}},
 "env"=>{"bosh"=>{"password"=>"mypassword"}}}

and here is my yaml...

name: micro_bosh
network:
  ip: 172.16.4.999
  netmask: 255.255.255.0
  gateway: 172.16.19.2
  cloud_properties:
    name: VM Network
loglevel: debug
env:
  bosh:
    password: mypassword
resources:
  persistent_disk: 16384
cloud:
  plugin: vsphere
  properties:
    agent:
      ntp:
       - bosh.ntp.opencred.com 
    vcenters:
      - host: 172.16.4.121
        user: root
        password: vmware
        datacenters:
          - name: bosh-datacenter
            vm_folder: BOSH_VMs
            template_folder: BOSH_Templates
            disk_path: BOSH_Deployer
            datastore_pattern: datastore1
            persistent_datastore_pattern: datastore1
            allow_mixed_datastores: true
            clusters:
              - bosh-cluster:
                 resource_pool: bosh-resource-pool

It may also be worth pointing out that I cannot log into the director vm with the credentials logged in the snippet  "env"=>{"bosh"=>{"password"=>"mypassword"}}}. Are these the correct credentials to use?

Thanks

Chris 



chris....@opencredo.com

unread,
Nov 12, 2012, 6:19:25 AM11/12/12
to bosh-...@cloudfoundry.org, chris....@opencredo.com
The ip address was due to the fact I was using an out of range ip address for the bosh director. Although any help on the login credentials issue is welcome. 

Martin Englund

unread,
Nov 12, 2012, 11:52:06 AM11/12/12
to bosh-...@cloudfoundry.org
Chris,

the passform you use, did you generate it with "mkpasswd -m sha-512"?

cheers,
/Martin
--
Martin Englund, Staff Engineer, Cloud Foundry, VMware Inc.
"The question is not if you are paranoid, it is if you are paranoid enough."

chris....@opencredo.com

unread,
Nov 13, 2012, 7:13:16 AM11/13/12
to bosh-...@cloudfoundry.org
No I've not generated a passform, For now I just use a raw string as defined in the micro yaml file. Have I missed an obvious step here?

chris....@opencredo.com

unread,
Nov 13, 2012, 7:37:31 AM11/13/12
to bosh-...@cloudfoundry.org, chris....@opencredo.com
Thanks for the pointer, I've generated the password with mkpasswd and now I can access the director vm. Out of interest is there a default password if I don't specify env->bosh->password or is this property mandatory?

Aneesh Kumar E P

unread,
Nov 13, 2012, 9:24:29 AM11/13/12
to bosh-...@cloudfoundry.org, chris....@opencredo.com

The default password is c1oudc0w

Reply all
Reply to author
Forward
0 new messages