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

leapp fails in reboot phase when a temporary user mount is statically defined in /etc/fstab

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Moderate
    • rhel-upgrades
    • 20
    • 3
    • False
    • 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 the admin configured explicitly the temporary runtime directory for a given user in /etc/fstab, leapp fails during reboot phase.

      Example:

      # grep /run/user/1000 /etc/fstab
      tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=10240k,mode=700,uid=1000 0 0 

      Result:

      [    2.142824] upgrade[593]: mount: mount point /run/user/1000 does not exist
      [   17.869752] upgrade[610]: ==> Processing phase `InitRamStart`
      [   17.870413] upgrade[610]: ====> * remove_upgrade_boot_entry
      [   17.870877] upgrade[610]:         Remove boot entry for Leapp provided initramfs.
      [   19.260653] upgrade[1097]: Process Process-216:
      [   19.261143] upgrade[1097]: Traceback (most recent call last):
      [   19.261643] upgrade[1097]:   File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
      [   19.262463] upgrade[1097]:     self.run()
      [   19.262803] upgrade[1097]:   File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
      [   19.263550] upgrade[1097]:     self._target(*self._args, **self._kwargs)
      [   19.264096] upgrade[1097]:   File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run
      [   19.265028] upgrade[1097]:     actor_instance.run(*args, **kwargs)
      [   19.265530] upgrade[1097]:   File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 289, in run
      [   19.266340] upgrade[1097]:     self.process(*args)
      [   19.266723] upgrade[1097]:   File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/removeupgradebootentry/actor.py", line 20, in process
      [   19.267893] upgrade[1097]:     remove_boot_entry()
      [   19.268332] upgrade[1097]:   File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/removeupgradebootentry/libraries/removeupgradebootentry.py", line 41, in remove_boot_entry
      [   19.269756] upgrade[1097]:     '/bin/mount', '-a'
      [   19.270171] upgrade[1097]:   File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 188, in run
      [   19.271070] upgrade[1097]:     result=result
      [   19.271432] upgrade[1097]: CalledProcessError: Command ['/bin/mount', '-a'] failed with exit code 32. 

      Please provide the package NVR for which bug is seen:

      leapp-upgrade-el7toel8-0.18.0-3.el7_9.noarch

      How reproducible:

      Always

      Steps to reproduce

      1. Create a user on the system
        # useradd user
      2. Statically defined its runtime directory in etc/fstab
        # echo "tmpfs /run/user/$(id -u user) tmpfs rw,nosuid,nodev,relatime,size=10240k,mode=700,uid=$(id -u user) 0 0" >> /etc/fstab
      3. Execute leapp upgrade and reboot

      Expected results

      Upgrade happens

      Actual results

      Upgrade fails

              Unassigned Unassigned
              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:
              9 Start watching this issue

                Created:
                Updated: