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

install_packages script adds repo sections always (non-idempotently)

XMLWordPrintable

    • Moderate
    • No

      Description of problem:
      After successfully running ./install_packages satellite installer fails with:
      [ERROR ] [configure] Could not prefetch yumrepo provider 'inifile': Section "Satellite-local" is already defined, cannot redefine (file: /etc/yum.repos.d/satellite-local.repo)

      Version-Release number of selected component (if applicable):
      6.15.0
      Satellite-6.15-RHEL-8-20240129.n.0-x86_64-dvd.iso

      How reproducible:
      100%

      Steps to Reproduce:
      1. Perform disconnected installation

      1. cd /media/sat6
      2. ./install_packages --nogpgsigs
        ...
        This script will install the satellite packages on the current machine.
      • Ensuring we are in an expected directory.
      • Copying installation files.
      • Creating Satellite Repository File
      • Creating Maintenance Repository File
      • Checking to see if Satellite is already installed.
      • Importing the gpg key.
      • WARNING: Package GPG signatures will be ignored!
      • WARNING: Package GPG signatures will be ignored!
      • Installation repository will remain configured for future package installs.
      • Installation media can now be safely unmounted.

      Install is complete. Please run satellite-installer --scenario satellite

      2. Run satellite-installer

      1. satellite-installer --scenario satellite
        2024-01-29 05:59:16 [NOTICE] [root] Loading installer configuration. This will take some time.
        2024-01-29 05:59:20 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
        2024-01-29 05:59:20 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
        2024-01-29 06:00:39 [NOTICE] [configure] Starting system configuration.
        2024-01-29 06:01:01 [NOTICE] [configure] 250 configuration steps out of 1615 steps complete.
        2024-01-29 06:01:12 [ERROR ] [configure] Could not prefetch yumrepo provider 'inifile': Section "Satellite-local" is already defined, cannot redefine (file: /etc/yum.repos.d/satellite-local.repo)
        2024-01-29 06:01:12 [NOTICE] [configure] 500 configuration steps out of 1616 steps complete.
        2024-01-29 06:01:21 [NOTICE] [configure] 750 configuration steps out of 1618 steps complete.
        2024-01-29 06:01:54 [NOTICE] [configure] 1000 configuration steps out of 1643 steps complete.
        2024-01-29 06:02:05 [NOTICE] [configure] 1250 configuration steps out of 1645 steps complete.
        2024-01-29 06:04:56 [NOTICE] [configure] 1500 configuration steps out of 1645 steps complete.

      2024-01-29 06:07:40 [NOTICE] [configure] System configuration has finished.

      Error 1: Puppet Yumrepo resource 'ansible-runner' failed. Logs:
      /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]/before
      before to Package[ansible-runner]
      /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]
      Starting to evaluate the resource (489 of 1615)
      Skipping because provider prefetch failed
      Resource is being skipped, unscheduling all events
      Evaluated in 0.00 seconds

      1 error was detected during installation.
      Please address the errors and re-run the installer to ensure the system is properly configured.
      Failing to do so is likely to result in broken functionality.

      The full log is at /var/log/foreman-installer/satellite.log
      Package versions are being locked.

      Actual results:
      error during installer run

      Expected results:
      installer runs successfully

      Additional info:
      /var/log/foreman-installer/satellite.log:
      2024-01-29 06:01:12 [DEBUG ] [configure] Class[Foreman_proxy::Plugin::Ansible::Runner]: Starting to evaluate the resource (488 of 1615)
      2024-01-29 06:01:12 [DEBUG ] [configure] Class[Foreman_proxy::Plugin::Ansible::Runner]: Evaluated in 0.00 seconds
      2024-01-29 06:01:12 [DEBUG ] [configure] Prefetching inifile resources for yumrepo
      2024-01-29 06:01:12 [ERROR ] [configure] Could not prefetch yumrepo provider 'inifile': Section "Satellite-local" is already defined, cannot redefine (file: /etc/yum.repos.d/satellite-local.repo)
      2024-01-29 06:01:12 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]: Starting to evaluate the resource (489 of 1615)
      2024-01-29 06:01:12 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]: Skipping because provider prefetch failed
      2024-01-29 06:01:12 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]: Resource is being skipped, unscheduling all events
      2024-01-29 06:01:12 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Plugin::Ansible::Runner/Yumrepo[ansible-runner]: Evaluated in 0.00 seconds
      2024-01-29 06:01:12 [DEBUG ] [configure] /Package[ansible-runner]: Starting to evaluate the resource (490 of 1615)
      2024-01-29 06:01:12 [INFO ] [configure] /Package[ansible-runner]: Dependency Yumrepo[ansible-runner] has failures: true

            ehelms@redhat.com Eric Helms
            lpramuk Lukas Pramuk
            Lukas Pramuk Lukas Pramuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: