[Bug 259152] [iscsi] OCI oracle iscsi block device problems

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Oct 2021 11:36:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259152

Dave Cottlehuber <dch@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[iscsi] ExpDataSN mismatch  |[iscsi] OCI oracle iscsi
                   |in SCSI Response (unable to |block device problems
                   |connect or authenticate to  |
                   |OCI oracle iscsi block      |
                   |devices)                    |

--- Comment #9 from Dave Cottlehuber <dch@freebsd.org> ---
thanks John!

permit_expdatasn_0.patch gets us further - we can successfully attach a volume
now, and partition the device:


# iscsictl -A -p 169.254.2.2:3260 -t
iqn.2015-12.com.oracleiaas:f896d637-0a99-4fc7-9aed-ecfc8c2166f2
# iscsictl -Lv
Session ID:               1
Initiator name:           iqn.1994-09.org.freebsd:hobbes.skunkwerks.at
Initiator portal:         
Initiator alias:          
Target name:             
iqn.2015-12.com.oracleiaas:f896d637-0a99-4fc7-9aed-ecfc8c2166f2
Target portal:            169.254.2.2:3260
Target alias:             
User:                     
Secret:                   
Mutual user:              
Mutual secret:            
Session type:             Normal
Enable:                   Yes
Session state:            Connected
Failure reason:           
Header digest:            None
Data digest:              None
MaxRecvDataSegmentLength: 8192
MaxSendDataSegmentLength: 8192
MaxBurstLen:              262144
FirstBurstLen:            65536
ImmediateData:            Yes
iSER (RDMA):              No
Offload driver:           None
Device nodes:             da1 


next, we run into:

# tcpdump -nns 0 -C 32 -w /var/tmp/iscsi/iscsi.pcap port 3260 &
# time dd if=/dev/random of=/dev/da1 count=1 bs=1g

Password:WARNING: icl_conn_receive_pdu: received data segment length 16384 is
larger than negotiated; dropping connection

WARNING: 169.254.2.2:3260
(iqn.2015-12.com.oracleiaas:f896d637-0a99-4fc7-9aed-ecfc8c2166f2): connection
error; reconnecting
panic: isc->receive_pdu != NULL
cpuid = 1
time = 1634815845
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x184
panic() at panic+0x44
icl_receive_thread() at icl_receive_thread+0x734
fork_exit() at fork_exit+0x74
fork_trampoline() at fork_trampoline+0x14
KDB: enter: panic
[ thread pid 0 tid 100279 ]
Stopped at      kdb_enter+0x44: undefined       f901811f
db>

-- 
You are receiving this mail because:
You are the assignee for the bug.