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

Getting "No such file" for RPMs when populating the container during "leapp upgrade" phase

    • No
    • Moderate
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When using a local repository stored on a dedicated file system (e.g. /RHEL8) on XFS, leapp preupgrade works fine, but leapp upgrade fails with not finding packages:

          Stderr: No matches found for the following disable plugin patterns: subscription-manager
                  Error opening /installroot/RHEL8/BaseOS/Packages/NetworkManager-1.40.16-15.el8.x86_64.rpm: No such file or directory
      ...
      

      Setting LEAPP_OVL_IMG_FS_EXT4=1 doesn't help.

      Please provide the package NVR for which bug is seen:

      leapp-upgrade-el7toel8-0.20.0-9.el7_9.noarch

      How reproducible:

      Always

      Steps to reproduce

      1. On a VM installed with default layout (/ on XFS), attach a new disk that will contain the unpacked DVD of RHEL8.10
      2. Format the new disk
        # mkfs.xfs /dev/vdb
        # mkdir /RHEL8
        # echo "/dev/vdb /RHEL8 xfs defaults 0 0" >> /etc/fstab
        # systemctl daemon-reload
        # mount /RHEL8
      3. Extract the DVD content
        # mount /dev/sr0 /mnt
        # tar cf - -C /mnt . | tar xf - -C /RHEL8
      4. Create the leapp repo file
        # cat > /etc/leapp/files/leapp_upgrade_repositories.repo << EOF
        [BaseOS]
        name=BaseOS
        baseurl=file:///RHEL8/BaseOS
        enabled=1
        gpgcheck=0
        
        [AppStream]
        name=AppStream
        baseurl=file:///RHEL8/AppStream
        enabled=1
        gpgcheck=0
        EOF
      5. Execute leapp upgrade --no-rhsm

      Expected results

      Works

      Actual results

      Fails not finding packages

              leapp-notifications leapp-notifications
              rhn-support-rmetrich Renaud Métrich
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: