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

iscsi service is not started after system reboot

    • None
    • None
    • rhel-sst-storage-io
    • ssg_filesystems_storage_and_HA
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

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

      After rebooting a machine with RHEL9.4 system, iscsi service is inactive and SCSI disks are not attached.

      Please provide the package NVR for which bug is seen:

      iscsi-initiator-utils-6.2.1.9-1.gita65a472.el9.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1. SCSI disks are attached and iscsi service is running

      [root@virt-260 ~]# lsblk
      NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
      sda                       8:0    0    1G  0 disk 
      sdb                       8:16   0    1G  0 disk 
      sdc                       8:32   0    1G  0 disk 
      vda                     252:0    0    8G  0 disk 
      ├─vda1                  252:1    0    1G  0 part /boot
      └─vda2                  252:2    0    7G  0 part 
        ├─rhel_virt--260-root 253:0    0  6.2G  0 lvm  /
        └─rhel_virt--260-swap 253:1    0  820M  0 lvm  [SWAP]
      [root@virt-260 ~]# systemctl status iscsi
      ● iscsi.service - Login and scanning of iSCSI devices
           Loaded: loaded (/usr/lib/systemd/system/iscsi.service; indirect; preset: enabled)
           Active: active (exited) since Tue 2024-01-16 15:05:00 CET; 2s ago
             Docs: man:iscsiadm(8)
                   man:iscsid(8)
          Process: 5536 ExecStart=/usr/sbin/iscsiadm -m node --loginall=automatic -W (code=exited, status=0/SUCCESS)
         Main PID: 5536 (code=exited, status=0/SUCCESS)
              CPU: 22msJan 16 15:05:00 virt-260.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Starting Login and scanning of iSCSI devices...
      Jan 16 15:05:00 virt-260.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Finished Login and scanning of iSCSI devices.

      2. rebooting the machine

      [root@virt-260 ~]# reboot
      [root@virt-260 ~]# Connection to virt-260.cluster-qe.lab.eng.brq.redhat.com closed by remote host.
      Connection to virt-260.cluster-qe.lab.eng.brq.redhat.com closed.

      3. after reboot, SCSI disks are not attached and the service is inactive

      [root@virt-260 ~]# lsblk
      NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
      vda                     252:0    0    8G  0 disk 
      ├─vda1                  252:1    0    1G  0 part /boot
      └─vda2                  252:2    0    7G  0 part 
        ├─rhel_virt--260-root 253:0    0  6.2G  0 lvm  /
        └─rhel_virt--260-swap 253:1    0  820M  0 lvm  [SWAP]
      [root@virt-260 ~]# systemctl status iscsi
      ○ iscsi.service - Login and scanning of iSCSI devices
           Loaded: loaded (/usr/lib/systemd/system/iscsi.service; indirect; preset: enabled)
           Active: inactive (dead)
             Docs: man:iscsiadm(8)
                   man:iscsid(8)Jan 16 15:07:45 virt-260.cluster-qe.lab.eng.brq.redhat.com systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
      Jan 16 15:07:45 virt-260.cluster-qe.lab.eng.brq.redhat.com systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
      Jan 16 15:07:46 virt-260.cluster-qe.lab.eng.brq.redhat.com systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
      

      Expected results

      The service is active after reboot and disks are attached

      Actual results

      iscsi service is inactive and needs to be manually restarted to attach the disks

      Additional info

      this seems like a regression in 9.4 build as this behavior is not happening on RHEL9.3 machines with build iscsi-initiator-utils-6.2.1.4-3.git2a8f9d8.el9:

      [root@virt-123 ~]# lsblk
      NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
      sda                       8:0    0    1G  0 disk 
      sdb                       8:16   0    1G  0 disk 
      sdc                       8:32   0    1G  0 disk 
      vda                     252:0    0    8G  0 disk 
      ├─vda1                  252:1    0    1G  0 part /boot
      └─vda2                  252:2    0    7G  0 part 
        ├─rhel_virt--123-root 253:0    0  6.2G  0 lvm  /
        └─rhel_virt--123-swap 253:1    0  820M  0 lvm  [SWAP]
      
      [root@virt-123 ~]# systemctl status iscsi
      ● iscsi.service - Login and scanning of iSCSI devices
           Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled; preset: enabled)
           Active: active (exited) since Tue 2024-01-16 14:08:35 CET; 1h 7min ago
             Docs: man:iscsiadm(8)
                   man:iscsid(8)
          Process: 934 ExecStart=/usr/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=0/SUCCESS)
          Process: 1212 ExecReload=/usr/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=0/SUCCESS)
         Main PID: 934 (code=exited, status=0/SUCCESS)
              CPU: 35msJan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[934]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-001-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[934]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-002-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[934]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-003-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Finished Login and scanning of iSCSI devices.
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloading Login and scanning of iSCSI devices...
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloaded Login and scanning of iSCSI devices.
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloading Login and scanning of iSCSI devices...
      Jan 16 14:08:35 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloaded Login and scanning of iSCSI devices.
      Jan 16 14:08:36 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloading Login and scanning of iSCSI devices...
      Jan 16 14:08:36 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloaded Login and scanning of iSCSI devices.
      
      [root@virt-123 ~]# reboot
      [root@virt-123 ~]# Connection to virt-123.cluster-qe.lab.eng.brq.redhat.com closed by remote host.
      Connection to virt-123.cluster-qe.lab.eng.brq.redhat.com closed.
      
      
      [root@virt-123 ~]# lsblk
      NAME                    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
      sda                       8:0    0    1G  0 disk 
      sdb                       8:16   0    1G  0 disk 
      sdc                       8:32   0    1G  0 disk 
      vda                     252:0    0    8G  0 disk 
      ├─vda1                  252:1    0    1G  0 part /boot
      └─vda2                  252:2    0    7G  0 part 
        ├─rhel_virt--123-root 253:0    0  6.2G  0 lvm  /
        └─rhel_virt--123-swap 253:1    0  820M  0 lvm  [SWAP]
      
      [root@virt-123 ~]# systemctl status iscsi
      ● iscsi.service - Login and scanning of iSCSI devices
           Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled; preset: enabled)
           Active: active (exited) since Tue 2024-01-16 15:17:12 CET; 1min 8s ago
             Docs: man:iscsiadm(8)
                   man:iscsid(8)
          Process: 939 ExecStart=/usr/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=0/SUCCESS)
          Process: 1192 ExecReload=/usr/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=0/SUCCESS)
         Main PID: 939 (code=exited, status=0/SUCCESS)
              CPU: 33msJan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[939]: Logging in to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-002-path-001, portal: 10.37.165.52,32>
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[939]: Logging in to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-003-path-001, portal: 10.37.165.52,32>
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[939]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-001-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[939]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-002-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com iscsiadm[939]: Login to [iface: default, target: iqn.2013-05.com.redhat.beaker.cluster-qe:cluster157106.disk-003-path-001, portal: 10.37.165.52,3260] s>
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Finished Login and scanning of iSCSI devices.
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloading Login and scanning of iSCSI devices...
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloaded Login and scanning of iSCSI devices.
      Jan 16 15:17:12 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloading Login and scanning of iSCSI devices...
      Jan 16 15:17:13 virt-123.cluster-qe.lab.eng.brq.redhat.com systemd[1]: Reloaded Login and scanning of iSCSI devices.

              cleech@redhat.com Chris Leech
              mmazoure Michal Mazourek
              Chris Leech Chris Leech
              Martin Hoyer Martin Hoyer (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: