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

host mode does not support option --stats

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • iscsi-initiator-utils
    • None
    • No
    • Moderate
    • rhel-sst-storage-io
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

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

      1. man iscsiadm        

      -s, --stats               Display session statistics.  This option when used with host mode, displays host statistics.

      Actually it works with session mode, but does not work with host mode, so might need to update this message here.

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      1. rpm -q kernel iscsi-initiator-utils
        kernel-6.12.0-31.el10.x86_64
        iscsi-initiator-utils-6.2.1.9-22.gita65a472.el10.x86_64

        How reproducible is this bug?:

        Steps to reproduce

       

      # man iscsiadm
             -s, --stats
                    Display session statistics.  This option when used with host mode, displays host statistics.
      
      # iscsiadm -m host
      be2iscsi: [0] <empty>,[00:90:fa:d6:bc:e5],<empty> iqn.1994-05.com.redhat:storageqe-84-boot
      be2iscsi: [1] <empty>,[00:90:fa:d6:bc:ed],<empty> iqn.1994-05.com.redhat:storageqe-84
      
      
      # iscsiadm -m host -s -d8
      iscsiadm: host mode: option '-s' is not allowed/supported
      
      # iscsiadm -m host -H 00:90:fa:d6:bc:ed -s -d8
      iscsiadm: host mode: option '-s' is not allowed/supported
      
      It works in session mode,
      
      # iscsiadm -m session -r 14 -s
      Stats for session [sid: 14, target: iqn.2002-03.com.compellent:5000d31005728037, portal: 172.16.1.10,3260]
      iSCSI SNMP:
          txdata_octets: 0
          rxdata_octets: 2954074
          noptx_pdus: 0
          scsicmd_pdus: 110
          tmfcmd_pdus: 0
          login_pdus: 0
          text_pdus: 0
          dataout_pdus: 0
          logout_pdus: 0
          snack_pdus: 0
          noprx_pdus: 0
          scsirsp_pdus: 0
          tmfrsp_pdus: 0
          textrsp_pdus: 0
          datain_pdus: 0
          logoutrsp_pdus: 0
          r2t_pdus: 0
          async_pdus: 0
          rjt_pdus: 0
          digest_err: 0
          timeout_err: 0
      iSCSI Extended:
        

       

      Expected results

      Actual results

       

              cleech@redhat.com Chris Leech
              rhn-support-zguo Zhaojuan Guo
              Chris Leech Chris Leech
              Zhaojuan Guo Zhaojuan Guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: