asked for a static IP 10.0.0.6 but it's in the dynamic pool

260 views
Skip to first unread message

ramonm...@gmail.com

unread,
Oct 1, 2012, 9:54:11 AM10/1/12
to bosh-...@cloudfoundry.org
i have setup bosh using devstack and installed it with drnic manuall
https://github.com/drnic/bosh-getting-started/blob/master/create-a-bosh/creating-a-micro-bosh-from-stemcell-openstack.md

and now i'm trying to install cloudfoundry using the sample
https://github.com/cloudfoundry/oss-docs/blob/master/bosh/samples/cloudfoundry.yml

i changed the ip adress matching to the default 10.0.0.0/24 range

and now i get the following error
Error 130009: `routerv2/0' asked for a static IP 10.0.0.6 but it's in the dynamic pool

and i can't figure out where the problem is
openstack or bosh

Martin Englund

unread,
Oct 1, 2012, 10:26:28 AM10/1/12
to bosh-...@cloudfoundry.org
You are trying to assign an IP address which isn't within the static
range in your network declaration, so change it to .e.g

- name: default
subnets:
- reserved:
- 10.0.0.1 - 10.0.0.5
static:
- 10.0.0.6 - 10.0.0.10
range: 10.0.0.0/24

what remains of range - reserved - static is your dynamic pool.

Cheers,
/Martin
--
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."

ramonm...@gmail.com

unread,
Oct 1, 2012, 10:42:32 AM10/1/12
to bosh-...@cloudfoundry.org
ahh i saw my mistake
in the sample there are 2 vlans created
fixed that but now i got some trouble with openstack CPI

Error 100: Invalid network type `': OpenStack CPI can only handle `dynamic' and `vip' network types

is this just a shortcomming of the openstack CPI of piston?

Op maandag 1 oktober 2012 16:26:31 UTC+2 schreef Martin Englund het volgende:

Martin Englund

unread,
Oct 1, 2012, 10:50:39 AM10/1/12
to bosh-...@cloudfoundry.org
It is not a "shortcomming" it is the design of aws/openstack - you
need to change the network definition to something like this:

networks:
- name: static
type: vip
cloud_properties: {}
- name: default
type: dynamic
cloud_properties:
security_groups:
- open

/M

ramonm...@gmail.com

unread,
Oct 2, 2012, 3:39:17 AM10/2/12
to bosh-...@cloudfoundry.org
this is in the sample
networks:

 
- name: default
  subnets:
  - reserved:
    - 10.0.0.4 - 10.0.0.9
    - 10.0.0.245 - 10.0.0.254
    static:
    - 10.0.0.10 - 10.0.0.140
    range: 10.0.0.0/24
    gateway: 10.0.0.1
    dns:
    - 10.0.0.245
    - 10.0.0.246
    cloud_properties:
      name: VLAN2220
- name: lb
  subnets:
  - static:
    - 10.0.0.150 - 10.0.0.160
    range: 10.0.0.0/24
    dns:
    - 10.0.0.243
    - 10.0.0.242
    cloud_properties:
      name: VLAN3093


- name: redis_gateway
  template: redis_gateway
  instances: 1
  resource_pool: infrastructure
  networks:
  - name: default

and the gateways and dea don't have ip assigned
i think i'm really missing something here
because now i get the following error


Preparing deployment
  binding deployment
(00:00:00)                                                                    
  binding releases
(00:00:00)                                                                      
  binding existing deployment
: Timed out sending `get_state' to d951a54f-da84-4574-b1b7-dcc9cdfcbe16 after 30 seconds (00:01:30)
Error                   3/9 00:01:30                                                                

Error 450002: Timed out sending `
get_state' to d951a54f-da84-4574-b1b7-dcc9cdfcbe16 after 30 seconds






Op maandag 1 oktober 2012 16:50:40 UTC+2 schreef Martin Englund het volgende:

Martin Englund

unread,
Oct 2, 2012, 10:19:59 AM10/2/12
to bosh-...@cloudfoundry.org
The reason you get "timed out sending 'get_state' ..." is that the
network section you have is for vSphere, so the director can't
communicate with the instances it creates. You should be using
something like:

networks:
- name: static
type: vip
cloud_properties:
security_groups:
- open
- name: default
type: dynamic
cloud_properties:
security_groups:
- open

/M

Reply all
Reply to author
Forward
0 new messages