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

Satellite-clone /etc/hosts puts FQDN in the 127.0.0.1 line in /etc/hosts and doesn't make new line for IP ADDR

XMLWordPrintable

    • Moderate
    • None

      Description of problem:

      Version-Release number of selected component (if applicable):
      Satellite 6.11 @ RHEL7
      RHEL 8

      Steps to Reproduce:
      1. On Satellite 6.11 on RHEL 7 create backup:
      ]# satellite-maintain backup offline --skip-pulp-content /var/backup

      2. On fresh build RHEL 8 make /backup to move the above back to
      ]# mkdir /backup
      ]# ls /backup
      config_files.tar.gz metadata.yml pgsql_data.tar.gz

      3. On fresh RHEL8 register to Customer Portal and enable repositories:
      ]# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \
      --enable=rhel-8-for-x86_64-appstream-rpms \
      --enable=satellite-6.11-for-rhel-8-x86_64-rpms \
      --enable=satellite-maintenance-6.11-for-rhel-8-x86_64-rpms
      ]# dnf module enable satellite:el8

      4. Install satellite-clone:
      ]# dnf -y install satellite-lcone

      5. Run satellite-clone

      Actual results:
      After satellite-clone finishes /etc/hosts looks as follows where FQDN is in the 127.0.0.1 localhosts line:

      ]# cat /etc/hosts
      127.0.0.1 EXAMPLE.SATELLITE.FQDN localhost.localdomain localhost4
      ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

      Expected results:
      ]# cat /etc/hosts
      127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
      ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
      aa.bb.ccc.ddd EXAMPLE.SATELLITE.FQDN

      Additional info:
      This occurs when using satellite-clone in process described in RFE 2231191
      https://bugzilla.redhat.com/show_bug.cgi?id=2231191

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-risantam Ricardo Santamaria
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: