Bug 1902045

Summary: ocf:heartbeat:iface-vlan does not allow multiple vlans by interface nor multiple VLANs
Product: Red Hat Enterprise Linux 8 Reporter: Oliver Freyermuth <o.freyermuth>
Component: resource-agentsAssignee: Oyvind Albrigtsen <oalbrigt>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.2CC: agk, cluster-maint, fdinitto, mjuricek, o.freyermuth, phagara, wienemann
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: resource-agents-4.1.1-91.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:26:02 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 Oliver Freyermuth 2020-11-26 16:22:54 UTC
Description of problem:

Trying:

pcs resource create vlan_83 ocf:heartbeat:iface-vlan vlan_interface=bond_in vlan_id=83 vlan_name=bond_in.83 vlan_loose_binding=true --group fw
pcs resource create vlan_84 ocf:heartbeat:iface-vlan vlan_interface=bond_in vlan_id=84 vlan_name=bond_in.84 vlan_loose_binding=true --group fw

yields:

Error: Value 'bond_in' of option 'vlan_interface' is not unique across 'ocf:heartbeat:iface-vlan' resources. Following resources are configured with the same value of the instance attribute: 'vlan_85', use --force to override

However, this is a common usecase, since vlan_name will naturally still be unique, i.e. the following VLAN interfaces could be created:

    bond_in.83@bond_in
    bond_in.84@bond_in

It also seems the vlan_id field is marked unique. 


Version-Release number of selected component (if applicable):
4.1.1-44


How reproducible:
Always.


Steps to Reproduce:
1. pcs resource create vlan_83 ocf:heartbeat:iface-vlan vlan_interface=bond_in vlan_id=83 vlan_name=bond_in.83 vlan_loose_binding=true --group fw
2. pcs resource create vlan_84 ocf:heartbeat:iface-vlan vlan_interface=bond_in vlan_id=84 vlan_name=bond_in.84 vlan_loose_binding=true --group fw


Actual results:
Error. 


Expected results:
Success. 


Additional info:
The issue has already been reported upstream:
https://github.com/ClusterLabs/resource-agents/issues/1581
and a fix has been developed and merged:
https://github.com/ClusterLabs/resource-agents/pull/1586

Comment 3 Dean Jansa 2021-04-08 17:06:19 UTC
ON_QA bug without Verified:Tested should be in the MODIFIED state.

Comment 5 Dean Jansa 2021-04-15 08:00:57 UTC
ON_QA bug without Verified:Tested should be in the MODIFIED state.

Comment 9 errata-xmlrpc 2021-11-09 17:26:02 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 (Moderate: resource-agents security, bug fix, and enhancement update), 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/RHSA-2021:4139