VLAN creation failed due to bridge_name not substituted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Zhu Shengli |
Bug Description
Description
===========
I created a ovs bridge specifically for external network as the following template.
```
- type: ovs_bridge
name: bridge_name
addresses:
- ip_netmask:
- /
- - {get_param: ControlPlaneIp}
- {get_param: ControlPlaneSub
members:
- type: interface
name: interface_name
- type: vlan
device: bridge_name
vlan_id:
addresses:
- ip_netmask:
```
But the deployment failed during this network because the bridge_name in the vlan definition was not substituded at all. The relevant code in generated /etc/os-
```
{"addresses": [{"ip_netmask": "10.1.1.111/24"}], "device": "bridge_name", "routes": [{"default": true, "next_hop": "10.1.1.1"}], "type": "vlan", "vlan_id": 655}
```
I checked the code in `run-os-
```
sed -i "s/bridge_
sed -i "s/interface_
```
I know the bridge_name is supposed to be substituted by NeutronExternal
BTW,
The network template snippet above was copied from the documentation of RedHat Openstack Platform.
Steps to reproduce
==================
add the following code to controller network template and deploy.
```
```
- type: ovs_bridge
name: bridge_name
addresses:
- ip_netmask:
- /
- - {get_param: ControlPlaneIp}
- {get_param: ControlPlaneSub
members:
- type: interface
name: interface_name
- type: vlan
device: bridge_name
vlan_id:
addresses:
- ip_netmask:
```
Expected result
===============
VLAN655 was created normally.
Actual result
=============
Deploy failed, VLAN655 was not created.
description: | updated |
Changed in tripleo: | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. opendev. org/714102
Review: https:/