Bug 1958973

Summary: Leapp hangs during the reboot step with a partition having the _netdev option
Product: Red Hat Enterprise Linux 7 Reporter: Christophe Besson <cbesson>
Component: leapp-repositoryAssignee: Leapp Notifications Bot <leapp-notifications-bot>
Status: NEW --- QA Contact: upgrades-and-conversions
Severity: low Docs Contact:
Priority: low    
Version: 7.9CC: fkrska, pstodulk
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1818088    

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.