targetcli/LIO needs tcm_vhost and xen-scsiback feature enabled OR option disabled

Bug #1891214 reported by Rafael David Tinoco
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
python-rtslib-fb (Ubuntu)
Fix Released
Undecided
Unassigned
qemu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

targetcli-fb was recently included in MAIN and rely on some features that aren't available currently in Ubuntu:

## TCM VHOST

/vhost> create
b'modprobe: FATAL: Module tcm_vhost not found in directory /lib/modules/...

not enabled in Ubuntu kernels.

QEMU virtio-scsi feature:

https://wiki.qemu.org/Features/VirtioSCSI/TCM_Overview

KERNEL option to be enabled:

https://cateee.net/lkddb/web-lkddb/TCM_VHOST.html

KERNEL TCM documentation:

https://www.kernel.org/doc/html/latest/target/tcmu-design.html

LIO (LinuxIO) VHOST feature explained:

http://linux-iscsi.org/wiki/VHost

## XEN PVSCSI

Same happens for XEN:

https://wiki.xenproject.org/wiki/Paravirtualized_SCSI

PS: this would I would go for a targetcli fabric module disablement instead of enabling the feature.

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

I have flagged this as affecting:

- targetcli-fb (vhost feature broken)

- QEMU (vhost scsi support enabled ?)

- kernel (would need TCM_VHOST feature enabled)

Changed in targetcli-fb (Ubuntu):
status: New → In Progress
assignee: nobody → Rafael David Tinoco (rafaeldtinoco)
no longer affects: targetcli-fb (Ubuntu)
Changed in python-rtslib-fb (Ubuntu):
status: New → In Progress
assignee: nobody → Rafael David Tinoco (rafaeldtinoco)
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Please other teams/people,

let me know your thoughts. I'm able to disable those existing fabric LIO modules, but... at least TCM VHOST might be worth to be kept (if we can explore/enable in QEMU).

Cheers

summary: - targetcli/LIO needs tcm_vhost feature enabled
+ targetcli/LIO needs tcm_vhost and xen-scsiback feature enabled OR option
+ disabled
description: updated
Changed in qemu (Ubuntu):
milestone: none → ubuntu-20.10-beta
Changed in python-rtslib-fb (Ubuntu):
milestone: none → ubuntu-20.10-beta
Changed in linux (Ubuntu):
milestone: none → ubuntu-20.10-beta
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1891214

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in python-rtslib-fb (Ubuntu):
status: In Progress → Confirmed
assignee: Rafael David Tinoco (rafaeldtinoco) → nobody
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Rafael,

on the qemu side I think we are ready,
we have
  CONFIG_VHOST_USER=y CONFIG_VHOST_KERNEL=y
already and also virtio-scsi already enabled.
  vhost-net support yes
  vhost-crypto support yes
  vhost-scsi support yes
  vhost-vsock support yes
  vhost-user support yes
  vhost-user-fs support yes

I think we are good with that as-is.

If you happen to find anything you need changed in qmeu let me know, but until then I'll keep this as incomplete.

Changed in qemu (Ubuntu):
status: New → Incomplete
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Okay, since TCM_VHOST is experimental in kernel, as we are in feature freeze for Groovy, I'm going to cap the missing features from targetcli so end user does not experience failures from the UI. This bug can serve as a future guidance in enabling those options (specially TCM_VHOST).

Changed in qemu (Ubuntu):
milestone: ubuntu-20.10-beta → none
Changed in python-rtslib-fb (Ubuntu):
milestone: ubuntu-20.10-beta → none
Changed in linux (Ubuntu):
milestone: ubuntu-20.10-beta → none
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Ooops TCM_VHOST is good for Groovy:

/> cd /vhost
/vhost> create
Created target naa.500140533cd76f07.
Created TPG 1.

/vhost> delete naa.500140533cd76f07
Deleted Target naa.500140533cd76f07.

/vhost> quit

Tagging linux as Fix Released.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

$ sudo modinfo tcm_vhost
filename: /lib/modules/5.8.0-18-generic/kernel/drivers/vhost/vhost_scsi.ko
license: GPL
alias: tcm_vhost
description: VHOST_SCSI series fabric driver
srcversion: 2AD428CAF926D0F5A58751D
depends: target_core_mod,vhost
retpoline: Y
intree: Y
name: vhost_scsi
vermagic: 5.8.0-18-generic SMP mod_unload
sig_id: PKCS#7
signer: Build time autogenerated kernel key
sig_key: 36:2A:15:BD:BF:65:C1:25:91:5F:A9:27:E5:4C:76:B8:C2:26:6B:1C
sig_hashalgo: sha512
signature: 65:8B:63:37:F0:CE:40:48:AF:56:65:DC:F3:6F:29:DB:E8:D9:A7:86:

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

/vhost> cd /xen-pvscsi
l/xen-pvscsi> ls
o- xen-pvscsi .......................................................................... [Targets: 0]
/xen-pvscsi> create
b"modprobe: ERROR: could not insert 'xen_scsiback': No such device\n"
/xen-pvscsi> quit

Will disable the XEN-PVSCSI then.

## XEN PVSCSI

Same happens for XEN:

https://wiki.xenproject.org/wiki/Paravirtualized_SCSI

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

With suggested fix:

[rafaeldtinoco@guestdevel ubuntu]$ sudo targetcli
targetcli shell version 2.1.53
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> ls /
o- / .......................................................................................... [...]
  o- backstores ............................................................................... [...]
  | o- block ................................................................... [Storage Objects: 0]
  | o- fileio .................................................................. [Storage Objects: 0]
  | o- pscsi ................................................................... [Storage Objects: 0]
  | o- ramdisk ................................................................. [Storage Objects: 0]
  o- iscsi ............................................................................. [Targets: 0]
  o- loopback .......................................................................... [Targets: 0]
  o- vhost ............................................................................. [Targets: 0]
/> cd /xen-pvscsi
No such path /xen-pvscsi

Changed in qemu (Ubuntu):
status: Incomplete → Fix Released
Changed in python-rtslib-fb (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-rtslib-fb - 2.1.73-1ubuntu4

---------------
python-rtslib-fb (2.1.73-1ubuntu4) groovy; urgency=medium

  * Disable xen-pvscsi due to unsup xen_scsiback module (LP: #1891214)

 -- Rafael David Tinoco <email address hidden> Tue, 08 Sep 2020 17:11:00 +0000

Changed in python-rtslib-fb (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.