Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-3695

[RFE] sort interfaces alphabetically before select primary interface

XMLWordPrintable

    • False
    • False
    • 0
    • Undefined
    • None

      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

            jira-bugzilla-migration RH Bugzilla Integration
            jira-bugzilla-migration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: