Bug 1958973 - Leapp hangs during the reboot step with a partition having the _netdev option
Summary: Leapp hangs during the reboot step with a partition having the _netdev option
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp-repository
Version: 7.9
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Leapp Notifications Bot
QA Contact: upgrades-and-conversions
URL:
Whiteboard:
Depends On:
Blocks: 1818088
TreeView+ depends on / blocked
 
Reported: 2021-05-10 14:12 UTC by Christophe Besson
Modified: 2023-07-31 07:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OAMG-4903 0 None None None 2023-05-11 08:01:24 UTC

Description Christophe Besson 2021-05-10 14:12:43 UTC
Description of problem:
Customer reported they experienced a hang during the reboot after the leapp upgrade. They were able to reboot on the standard el7 kernel to fix the issue by commenting out both entries containing the _netdev mount option:

From fstab:
#/dev/mapper/sc_vol_mongo /var/lib/mongo xfs _netdev,discard 0 0
#/dev/mapper/sc_vol_backup /backup xfs _netdev,discard 0 0

From lsblk, we see 4 disks in multipath:
sdb                  8:16   0   10G  0 disk  
`-sc_vol_mongo     253:7    0   10G  0 mpath /var/lib/mongo
sdc                  8:32   0    5G  0 disk  
`-sc_vol_backup    253:6    0    5G  0 mpath /backup
sdd                  8:48   0   10G  0 disk  
`-sc_vol_mongo     253:7    0   10G  0 mpath /var/lib/mongo
sde                  8:64   0    5G  0 disk  
`-sc_vol_backup    253:6    0    5G  0 mpath /backup

From lsscsi, we see that disks are block devices shared by a storage array (Dell Compellent):
[33:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sde   36000d31000b6db0000000000000000b1
[34:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sdd   36000d31000b6db0000000000000000ae
[35:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sdc   36000d31000b6db0000000000000000b1
[36:0:0:1]   disk    COMPELNT Compellent Vol   0702  /dev/sdb   36000d31000b6db0000000000000000ae


Version-Release number of selected component (if applicable):
leapp-repository-0.13.0-2.el7_9

How reproducible:
100% for the customer, unable to reproduce internally without this HW

Actual results:
Hang during the reboot step.

Expected results:
An explicit warning in the leapp report about these block devices.

Additional info:
It is documented as a known limitation:
""" 
No network-based multipath and no kind of network storage mount can be used as a system partition (for example, iSCSI, or NFS). 
"""

But in this case, there is no "network" configuration for these devices.

Comment 5 Petr Stodulka 2023-05-31 10:11:31 UTC
From the man page:
~~~
      _netdev
          The filesystem resides on a device that requires network access
          (used to prevent the system from attempting to mount these
          filesystems until the network has been enabled on the system).
~~~

So if _netdev is specified anywhere, it will break upgrade as the network
is not running. So the network is required for them.


Note You need to log in before you can comment on or make changes to this bug.