Micro BOSH deployment doesn't work with DHCP on openstack unless IP is provided.

70 views
Skip to first unread message

sudipto....@gmail.com

unread,
Jul 1, 2014, 7:05:42 AM7/1/14
to bosh...@cloudfoundry.org
I am trying to deploy CF on openstack - Icehouse.
I have been following the instructions documented here: http://docs.cloudfoundry.org/deploying/openstack/deploying_microbosh.html

network:
  type: dynamic
  cloud_properties:
    net_id: <dhcp-network_uuid>

Per the documentation - the micro bosh deploy should work for DHCP based IP addresses even without specifying an IP in the micro_bosh.yml


When i execute the following commands:

bosh micro deployment microbosh-openstack --> this would say "No deployment set"

Next when i execute this:

bosh micro deploy ~/bosh-workspace/stemcells/bosh-stemcell-XXXX-openstack-kvm-ubuntu.tgz --> This would simply not proceed saying - No target set.

Then just out of experiment, i deployed a dummy VM and specified the IP address of the deployed VM in the micro_bosh.yml as:

network: type: dynamic
ip: <xyz>
  cloud_properties: net_id: <dhcp-network_uuid>

This would let the deployment to proceed but would set the "Target" wrong for the deployed micro-bosh VM.

Can someone help me with the right configuration options in the micro_bosh.yml for deploying with DHCP based networks?
Note - i do not want to use VIP or IP. I want openstack's DHCP networking to pick up the IP and per the document only providing the net_id and type as dynamic - it should work.

Ferran Rodenas

unread,
Jul 1, 2014, 2:27:54 PM7/1/14
to bosh...@cloudfoundry.org
The microBosh deploy for OpenStack must work without providing and IP address (unless there's a regression). But based on your log, there should be a different problem. When you run 'bosh micro deployment microbosh-openstack' it should NOT say 'No deployment set', so the problem can be:

1) Something wrong on the micro_bosh.yml file. Can you please share the file (masking any credentials)?
2) Ruby version. Bosh cli only work with ruby 1.9.3. I've seen some problems using Ruby 2.0 and 2.1. What version of Ruby are you using?

- Ferdy


To unsubscribe from this group and stop receiving emails from it, send an email to bosh-dev+u...@cloudfoundry.org.

Sudipto Biswas

unread,
Jul 1, 2014, 2:49:56 PM7/1/14
to bosh...@cloudfoundry.org, frod...@gmail.com
Thank you Ferdy.
I think it's the Ruby version. I am using Ruby 2.0.
I am going to try this out by down grading to 1.9.3 tomorrow.
However, i have another question on this documentation here: http://docs.cloudfoundry.org/deploying/openstack/install_cf_openstack.html

As per this documentation:

There are different ways that networking can be configured. If your OpenStack has Quantum running, then you can use advanced compositions of subnets to isolate and protect each job, thus providing greater security. In this section, no advanced networking will be used.

Only a single public floating IP is required. Replace your allocated floating IP with 2.3.4.5 below.

Again if i don't want to use floating IPs here - what are my options?

Basically if i am using DHCP - what should i specify in this section of the demo.yml (in bold):


<%
director_uuid = "DIRECTOR_UUID"
protocol = "http"
cf_release = "141"
ip_address = "2.3.4.5"
common_password = "c1oudc0wc1oudc0w"
root_domain = "#{ip_address}.xip.io"
deployment_name = "cf-demo"
%>
And can i use no static IPs for (in bold) and leave that section out if i am using DHCP:

- name: router template: - gorouter instances: 1 resource_pool: common networks: - name: default default: [dns, gateway] - name: floating static_ips: - <%= ip_address %>
Appreciate your help here.

Thanks,
Sudipto
--
Thank and Regards

Sud1p70
Voice, Dark Project!
www.darkproject.co.in


Greg Oehmen

unread,
Jul 1, 2014, 8:08:48 PM7/1/14
to bosh...@cloudfoundry.org, frod...@gmail.com
It is no longer true that the BOSH CLI only works with 1.9.3.  The CLI now works with 2.0.x and 2.1.x. as of 2619.  


 

Greg Oehmen
Cloud Foundry Product Manager - Bosh
Pivotal

Dr Nic Williams

unread,
Jul 1, 2014, 8:18:36 PM7/1/14
to bosh...@cloudfoundry.org, bosh...@cloudfoundry.org, frod...@gmail.com
That's great news!
Reply all
Reply to author
Forward
0 new messages