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

iSCSI systems get "_netdev" on every mount, causing ordering cycles to occur and services or mounts to not start

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • rhel-8.8.0, rhel-9.2.0
    • python-blivet
    • None
    • None
    • Important
    • rhel-sst-storage-management
    • ssg_filesystems_storage_and_HA
    • 2
    • False
    • Hide

      None

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

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

      Installing a system with a iSCSI disk as root disk, I can see _netdev mount option is set on all mount points, causing ordering cycles during the boot, and systemd to break the cycles by not starting some mounts or some services:

      # cat /etc/fstab 
      [...]
      /dev/mapper/rhel-root   /                       xfs     defaults,_netdev 0 0
      UUID=2177a7fc-bc41-43e4-bdc1-d231a5eb4680 /boot                   xfs     defaults,_netdev 0 0
      /dev/mapper/rhel-tmp    /tmp                    xfs     defaults,_netdev 0 0
      /dev/mapper/rhel-var    /var                    xfs     defaults,_netdev,x-initrd.mount 0 0
      /dev/mapper/rhel-var_log /var/log                xfs     defaults,_netdev 0 0
      /dev/mapper/rhel-var_tmp /var/tmp                xfs     defaults,_netdev 0 0
      
      # journalctl -b | grep deleted
      Oct 13 08:15:35 vm-isci8 systemd[1]: basic.target: Job tmp.mount/start deleted to break ordering cycle starting with basic.target/start
      Oct 13 08:15:35 vm-isci8 systemd[1]: network.target: Job network-pre.target/start deleted to break ordering cycle starting with network.target/start
      Oct 13 08:15:35 vm-isci8 systemd[1]: NetworkManager.service: Job dbus.socket/start deleted to break ordering cycle starting with NetworkManager.service/start
      
      # mount | grep " /tmp "
      --> not mounted
      
      # systemctl status dbus.socket
      ● dbus.socket - D-Bus System Message Bus Socket
         Loaded: loaded (/usr/lib/systemd/system/dbus.socket; static; vendor preset: enabled)
         Active: inactive (dead)
      --> not started 

      The solution is to remove these _netdev options from /etc/fstab.

      IMHO there should be no {}{_}netdev set at all because the network is already up as soon as the system boots.

      Please provide the package NVR for which bug is seen:

      RHEL8 installer

      How reproducible:

      Always

      Steps to reproduce

      1. Configure a iSCSI server
        # mkdir /root/iscsi
        # targetcli
        > backstores/fileio create file_or_dev=/root/iscsi/volume1.img size=20G name=volume1
        > iscsi/ create iqn.2019-07.com.p1:tgt0
        > iscsi/iqn.2019-07.com.p1:tgt0/tpg1/acls create iqn.1994-05.com.redhat:5634dd137c53
        > iscsi/iqn.2019-07.com.p1:tgt0/tpg1/luns create /backstores/fileio/volume1
        > saveconfig
        > exit
      2. Install the iSCSI client and create multiple mount points
        Because of some bug in the installer, I had to use a kickstart to specify "bootloader --location=none" to avoid a crash of the installer. Kickstart "iscsi8.ks" attached for convenience. Note as well that there is another bug on "iscsiname" not being taken into account (Jira to be filed).
      3. Create TFTP server configuration
        # cd /var/lib/tftpboot
        # mkdir iscsi8
        # scp <iscsiclient>:/boot/initramfs-4* iscsi8/
        # scp <iscsiclient>:/boot/vmlinuz-4* iscsi8/ 
        # chmod 644 iscsi8/initramfs*
        
        # cat pxelinux.cfg/iscsi8
        DEFAULT network
        label network
             kernel iscsi8/vmlinuz-4.18.0-477.10.1.el8_8.x86_64
             append initrd=iscsi8/initramfs-4.18.0-477.10.1.el8_8.x86_64.img vconsole.keymap=fr console=tty0 console=ttyS0,115200n8 netroot=iscsi:@192.168.122.1::3260::iqn.2019-07.com.p1:tgt0 rd.iscsi.initiator=iqn.1994-05.com.redhat:5634dd137c53 rd.lvm.vg=rhel root=/dev/mapper/rhel-root ip=dhcp 
      4. Boot the iSCSI client on the network

      Expected results

      Boots fine, all file system mounts, all services started

      Actual results

      Ordering cycles breaking the boot

              blivet-maint-list blivet-maint-list
              rhn-support-rmetrich Renaud Métrich
              blivet-maint-list blivet-maint-list
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: