Bug 1613455

Summary: Missing example to configure vlan interfaces, i.e. nic with one vlan
Product: Red Hat OpenStack Reporter: Alexander Chuzhoy <sasha>
Component: openstack-tripleo-heat-templatesAssignee: Dan Sneddon <dsneddon>
Status: CLOSED ERRATA QA Contact: mlammon
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: bfournie, mburns
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.3.2-0.20200109050651.8f93d27.el8ost.noarch Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 14:37:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Chuzhoy 2018-08-07 15:11:36 UTC
Missing example to configure vlan interfaces, i.e. nic with one vlan

Environment:
openstack-tripleo-heat-templates-8.0.4-4.el7ost.noarch

We have no examples for cases where a nic has one vlan network.

Below is an example:
              - type: vlan
                device: nic4
                vlan_id:
                  get_param: StorageNetworkVlanID
                addresses:
                - ip_netmask:
                    get_param: StorageIpSubnet

Comment 5 Dan Sneddon 2018-08-07 19:12:14 UTC
In order for you to assign a VLAN to a NIC, the NIC has to have a basic configuration.


              - type: interface
                name: nic4
                use_dhcp: false
              - type: vlan
                device: nic4
                vlan_id:
                  get_param: StorageNetworkVlanID
                addresses:
                - ip_netmask:
                    get_param: StorageIpSubnet

Comment 9 Dan Sneddon 2019-11-14 16:09:12 UTC
Sorry, ignore comment #8, that was intended for a different bug

Comment 10 Dan Sneddon 2019-11-14 16:11:21 UTC
Submitted https://review.opendev.org/#/c/694340/ upstream.

Comment 11 Bob Fournier 2020-01-21 19:36:53 UTC
I't verified that this support was added to RHOS_TRUNK-16.0-RHEL-8-20200113.n.0

$ ls /usr/share/openstack-tripleo-heat-templates/network/config/multiple-nics-vlans/
compute-dvr.j2.yaml  README.md  role.role.j2.yaml

$ cat /usr/share/openstack-tripleo-heat-templates/network/config/multiple-nics-vlans/README.md 
This directory contains Heat templates to help configure
multiple NICs for each Overcloud role, where it is
assumed that each NIC is running a specific network
traffic type with tagged VLANs.
...

Comment 14 errata-xmlrpc 2020-02-06 14:37:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:0283