-
Bug
-
Resolution: Done
-
Major
-
None
-
6.2.14
Description of problem: When customer have multiple interfaces and not valid DNS record for one of them, it is selected first from Array, but Array is filled randomly. when this array will be sorted, customer can rename his primary interface to be alphabetically first and let primary interface set correctly during registration.
How reproducible:
Easily
Steps to Reproduce:
1. Create new system with multiple interfaces and DO NOT create DNS record for this system.
2. Register it to Satellite
Actual results:
Interface is randomly selected.
Expected results:
Interface Alphabetically first from available should be selected for example
ens5, ens0, ens6
Should be ens0.
Additional info:
It seems that interface is select by using code
/usr/share/foreman/app/services/fact_parser.rb
part of for example foreman-1.11.0.49-1.el7sat.noarch
with methods
interfaces, suggested_primary_interface, find_interface_by_name