Using net-bond-with-vlans.yaml results in broken os-net-config config.yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Triaged
|
High
|
Unassigned |
Bug Description
Description
===========
When using net-bond-
You'll notice that each iteration of the vlan loop leaves the routes line as:
routes: [] - type: vlan
This causes deployment failures because the config.yaml file is invalid.
I believe the issue is in the tripleo-
This file has the loop end with:
{%- endfor %}
I believe the minus sign is the issue. Some of the j2 templates for tripleo_
Steps to reproduce
==================
1. Preprovision servers with only ctlplane network configured
2. Attempt overcloud deployment on pre-provisioned servers using net-bond-
3. Observe failure of deployment on os-net-config execution
Expected result
===============
os-net-config config.json has - type: vlan on seperate line and os-net-config is able to complete without error
Actual result
=============
Deployment fails because os-net-
Environment
===========
RDO Victoria
Ceph Nautilus
Neutron OVN DVR HA
Additional Info
===========
Example broken config.yaml:
[heat-admin@
---
network_config:
- type: ovs_bridge
name: br-ex
dns_servers: ['10.99.99.12']
domain: ['kdjlab.com']
use_dhcp: false
addresses:
- ip_netmask: 10.100.4.84/24
routes: []
members:
- type: ovs_bond
name: bond1
mtu: 1500
ovs_options: bond_mode=
members:
- type: interface
name: nic1
mtu: 1500
primary: true
- type: interface
name: nic2
mtu: 1500
- type: vlan
mtu: 1500
vlan_id: 1107
addresses:
- ip_netmask: 10.100.7.164/24
routes: [] - type: vlan
mtu: 1500
vlan_id: 1108
addresses:
- ip_netmask: 10.100.8.168/24
routes: [] - type: vlan
mtu: 1500
vlan_id: 1105
addresses:
- ip_netmask: 10.100.5.158/24
routes: [] - type: vlan
mtu: 1500
vlan_id: 1106
addresses:
- ip_netmask: 10.100.6.169/24
routes: [] - type: vlan
mtu: 1500
vlan_id: 2100
addresses:
- ip_netmask: 192.168.100.41/24
routes: [{'default': True, 'next_hop': '192.168.100.1'}]
Changed in tripleo: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → victoria-3 |
After running with the minus removed from the end loop line, below is the resulting (valid) config.yaml.
[heat-admin@ overcloud- controller- 0 ~]$ sudo cat /etc/os- net-config/ config. yaml balance- slb
---
network_config:
- type: ovs_bridge
name: br-ex
dns_servers: ['10.99.99.12']
domain: ['kdjlab.com']
use_dhcp: false
addresses:
- ip_netmask: 10.100.4.84/24
routes: []
members:
- type: ovs_bond
name: bond1
mtu: 1500
ovs_options: bond_mode=
members:
- type: interface
name: nic1
mtu: 1500
primary: true
- type: interface
name: nic2
mtu: 1500
- type: vlan
mtu: 1500
vlan_id: 1107
addresses:
- ip_netmask: 10.100.7.169/24
routes: []
- type: vlan
mtu: 1500
vlan_id: 1108
addresses:
- ip_netmask: 10.100.8.150/24
routes: []
- type: vlan
mtu: 1500
vlan_id: 1105
addresses:
- ip_netmask: 10.100.5.163/24
routes: []
- type: vlan
mtu: 1500
vlan_id: 1106
addresses:
- ip_netmask: 10.100.6.167/24
routes: []
- type: vlan
mtu: 1500
vlan_id: 2100
addresses:
- ip_netmask: 192.168.100.48/24
routes: [{'default': True, 'next_hop': '192.168.100.1'}]