Bug 1931980 - [gss][ceph-iscsigw] While enabling additional logging for ceph-iscsigw, getting the error "-bash: echo: write error: Invalid argument"
Summary: [gss][ceph-iscsigw] While enabling additional logging for ceph-iscsigw, getti...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Documentation
Version: 4.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 4.2z2
Assignee: Amrita
QA Contact: Gopi
URL:
Whiteboard:
Depends On:
Blocks: 1966533
TreeView+ depends on / blocked
 
Reported: 2021-02-23 17:19 UTC by Geo Jose
Modified: 2021-06-16 11:20 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-16 11:20:15 UTC
Embargoed:
gpatta: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5906461 0 None None None 2021-03-25 13:56:10 UTC

Description Geo Jose 2021-02-23 17:19:29 UTC
Description of problem:
 While enabling additional logging for ceph-iscsigw, getting the error "-bash: echo: write error: Invalid argument"

Version-Release number of selected component (if applicable):
 RHCS4

Steps to Reproduce:
1. Install RHCS 4 on RHEL 7/8.
2. Enable additional logging as per [a].

Reference
[a]. https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/troubleshooting_guide/index#checking-iscsi-login-failures-because-data-was-not-sent_diag

Actual results:
 Getting the error "-bash: echo: write error: Invalid argument"

Expected results:
 While following the documentation, it should enable additional debug.

Comment 1 Geo Jose 2021-02-23 17:24:45 UTC
Test result
===========

## Environment 
* RHCS 4
* Red Hat Enterprise Linux Server release 7.9 (Maipo) / Red Hat Enterprise Linux release 8.2 (Ootpa)
* kernel-3.10.0-1127.el7.x86_64 / kernel-4.18.0-193.el8.x86_64



## Issue/Error
[root@ansible ~]# echo "iscsi_target_mod +p" > /sys/kernel/debug/dynamic_debug/control
-bash: echo: write error: Invalid argument
[root@ansible ~]# echo "target_core_mod +p" > /sys/kernel/debug/dynamic_debug/control
-bash: echo: write error: Invalid argument
[root@ansible ~]# echo "iscsi_target_mod -p" > /sys/kernel/debug/dynamic_debug/control
-bash: echo: write error: Invalid argument
[root@ansible ~]# echo "target_core_mod -p" > /sys/kernel/debug/dynamic_debug/control
-bash: echo: write error: Invalid argument
[root@ansible ~]#


## Documentation Reference 
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/troubleshooting_guide/index#checking-iscsi-login-failures-because-data-was-not-sent_diag
Section: "7.3. Checking iSCSI login failures because data was not sent"


## Workaround 
[root@ansible ~]# echo "module iscsi_target_mod +p" > /sys/kernel/debug/dynamic_debug/control
[root@ansible ~]# echo "module target_core_mod +p" > /sys/kernel/debug/dynamic_debug/control
[root@ansible ~]# echo "module target_core_mod -p" > /sys/kernel/debug/dynamic_debug/control
[root@ansible ~]# echo "module iscsi_target_mod -p" > /sys/kernel/debug/dynamic_debug/control
[root@ansible ~]#
The above command is working fine for me.

Comment 6 Gopi 2021-06-07 03:57:30 UTC
Hi Anjana,

I have tested as per comment#1 and the workaround part is working fine.

As per doc:
-----------
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "iscsi_target_mod +p" > /sys/kernel/debug/dynamic_debug/control
bash: echo: write error: Invalid argument
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "target_core_mod +p" > /sys/kernel/debug/dynamic_debug/control
bash: echo: write error: Invalid argument
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "iscsi_target_mod -p" > /sys/kernel/debug/dynamic_debug/control
bash: echo: write error: Invalid argument
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "target_core_mod -p" > /sys/kernel/debug/dynamic_debug/control
bash: echo: write error: Invalid argument


As per workaround:
------------------
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "module iscsi_target_mod +p" > /sys/kernel/debug/dynamic_debug/control 
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "module target_core_mod +p" > /sys/kernel/debug/dynamic_debug/control
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "module target_core_mod -p" > /sys/kernel/debug/dynamic_debug/control
[root@ceph-gopi-1622725159152-node2-osd-mon-mgr ]# echo "module iscsi_target_mod -p" > /sys/kernel/debug/dynamic_debug/control


So, document needs to be changed as per workaround.

Comment 7 Gopi 2021-06-07 03:59:58 UTC
@asriram

Comment 9 Gopi 2021-06-07 10:55:32 UTC
Changes are there in document. Moving this bug to verified state.


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