Bug 1325777

Summary: Validation error should be raised on creating alias interface when primary interface doesn't have any device identifier set
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: NetworkingAssignee: Marek Hulan <mhulan>
Status: CLOSED WONTFIX QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: mhulan, tbrisker
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:43:04 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:

Description Sachin Ghai 2016-04-11 07:51:04 UTC
Description of problem:

I was trying to configure an alias interface while provisioning a virtual host. I defined an alias interface, however didn't set the identifier for first/primary interface. So alias configuration failed like below:


[root@sghai ~]# cat /etc/sysconfig/network-scripts/ifcfg-.1 
BOOTPROTO="none"
IPADDR="192.168.100.126"
NETMASK="255.255.255.248"
GATEWAY="192.168.100.1"
DEVICE=.1
ONBOOT=yes
PEERDNS=no
PEERROUTES=no
VLAN=yes


[root@sghai ~]# cat /etc/sysconfig/network-scripts/ifcfg-_0 
BOOTPROTO="none"
IPADDR="192.168.100.125"
NETMASK="255.255.255.248"
GATEWAY="192.168.100.1"
DEVICE=:0
ONBOOT=yes
PEERDNS=no
PEERROUTES=no
TYPE=Alias
[root@sghai ~]#


But user got to know only when host was provisioned successfully. So user should get a validation error if user doesn't/forgot to set the identifier for primary interface while creating alias of it.

Version-Release number of selected component (if applicable):
sat6.2 beta snap6.2

How reproducible:


Steps to Reproduce:
1. define a static subnet
2. create new host ( do not specify identifier for primary interface)
3. add an alias interface and specify primary interface's identifier under attached_to interface like eth0 while creating alias interface 

Actual results:
alias interface configuration sliently failed, no error to user, but an incorrect device name as shown above in alias interface config file.

Expected results:
user should get a validation error that 'Interface to which alias interface going to attach should have proper device identifier set.

Additional info:

Comment 2 Tomer Brisker 2017-12-05 15:59:14 UTC
Created redmine issue http://projects.theforeman.org/issues/21874 from this bug

Comment 3 Bryan Kearney 2018-09-04 17:43:04 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.