Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4748

Initial-setup freezes for a while while downloading dnf repodata

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-8.7.0
    • initial-setup
    • None
    • Moderate
    • rhel-sst-installer
    • ssg_front_door
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      When dnf repositories are enabled on the installed system, initial-setup becomes unresponsive for a while after clicking the "Finish configuration" button.
      journalctl shows that repository metadata are being downloaded during this freeze and only after that initial-setup is closed and the system continues:

      ...
      říj 17 07:33:21 localhost.localdomain anaconda[1040]: dnf: repo: downloading from remote: rhel-8-for-x86_64-baseos-rpms
      říj 17 07:33:39 localhost.localdomain anaconda[1040]: dnf: rhel-8-for-x86_64-baseos-rpms: using metadata from Mon 17 Oct 2022 06:00:36 AM EDT.
      říj 17 07:33:39 localhost.localdomain anaconda[1040]: dnf: repo: downloading from remote: rhel-8-for-x86_64-appstream-rpms
      říj 17 07:33:49 localhost.localdomain systemd[1]: systemd-localed.service: Succeeded.
      říj 17 07:33:50 localhost.localdomain systemd[1]: systemd-hostnamed.service: Succeeded.
      říj 17 07:34:00 localhost.localdomain anaconda[1040]: dnf: rhel-8-for-x86_64-appstream-rpms: using metadata from Mon 17 Oct 2022 07:10:29 AM EDT.
      říj 17 07:34:00 localhost.localdomain anaconda[1040]: dnf: Last metadata expiration check: 0:00:10 ago on Mon 17 Oct 2022 07:33:43 AM EDT.
      ...

      This only happens when subscription-manager-initial-setup-addon is installed. If the package is uninstalled, metadata are not downloaded and there is no significant delay before clicking the "Finish configuration" button and closing initial-setup.

      To reproduce this issue it's good to have repositories with big repodata and/or using slow network connection.

      Version-Release number of selected component (if applicable):
      RHEL-8.6, RHEL-8.7
      initial-setup-0.3.81.7-1.el8
      subscription-manager-initial-setup-addon-1.28.32-1.el8

      How reproducible:
      Always

      Steps to Reproduce:
      1. Install RHEL-8 with the default package set (Server with GUI) and register to CDN during the installation.
      2. Reboot to the installed system.
      3. Accept the EULA in initial-setup and click the "Finish configuration" button quickly.
      4. An alternative approach is to configure dnf repositories on the installed system, run "dnf clean all && systemctl enable initial-setup" and reboot the system.

      Actual results:
      initial-setup freezes until metadata are downloaded.

      Expected results:
      initial-setup finishes without a significant delay, or there is a notification that metadata are being downloaded.

              mkolman@redhat.com Martin Kolman
              jstodola@redhat.com Jan Stodola
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: