Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Bind multiple networks to BOSH VM on OpenStack #61

Open
kei-yamazaki opened this issue Dec 18, 2015 · 2 comments
Open

Bind multiple networks to BOSH VM on OpenStack #61

kei-yamazaki opened this issue Dec 18, 2015 · 2 comments

Comments

@kei-yamazaki
Copy link

I try to bind multiple networks to BOSH VM.
For example following manifest.

networks:
- name: network1
  type: manual
  subnets:
  - range: 10.0.0.0/24
    gateway: 10.0.0.1
    dns: &dns
    - 8.8.8.8
    - 8.8.4.4
    cloud_properties: {net_id: aaaaa-aaaaa}
- name: network2
  type: dynamic
  subnets:
  - range: 10.1.0.0/24
    gateway: 10.1.0.1
    dns: *dns
    cloud_properties: {net_id: bbbbb-bbbbb}

jobs:
- name: bosh
  instances: 1

  templates:
  - {name: nats, release: bosh}
  - {name: redis, release: bosh}
  - {name: postgres, release: bosh}
  - {name: blobstore, release: bosh}
  - {name: director, release: bosh}
  - {name: health_monitor, release: bosh}
  - {name: registry, release: bosh}
  - {name: cpi, release: bosh-openstack-cpi}

  resource_pool: vms
  persistent_disk_pool: disks

  networks:
  - name: network1
    static_ips: [10.0.0.10]
    default: [dns, gateway]
  - name: network2

But can not deploy and bosh-init outputs following error log.

2015-12-18_02:24:24.53484 [main] 2015/12/18 02:24:24 ERROR - App setup Running bootstrap: Setting up networking: Computing network configuration: Creating interface configurations: Number of network settings '2' is greater than the number
 of network devices '1'
@cppforlife
Copy link
Contributor

I dont believe OpenStack CPI currently allows to specify multiple manual networks. cc @voelzmo

@cppforlife cppforlife changed the title Bind multiple networks to BOSH VM Bind multiple networks to BOSH VM on OpenStack Feb 3, 2016
@voelzmo
Copy link
Contributor

voelzmo commented Feb 15, 2016

The CPI allows binding multiple networks, as long as you have a DHCP server in the networks. However, it seems that there is only one network interface on the VM and I'd like to find out why that happens. @kei-yamazaki: Could you re-run the bosh-init deploy with debug logging as described in the readme? I'd like to see which calls are made to the IaaS and which network interfaces are parsed from your manifest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants