Bug 1325777 - Validation error should be raised on creating alias interface when primary interface doesn't have any device identifier set
Summary: Validation error should be raised on creating alias interface when primary in...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Networking
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 07:51 UTC by Sachin Ghai
Modified: 2018-09-04 17:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-04 17:43:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21874 0 None None None 2017-12-05 15:59:17 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.