tgt should support Persistent Reserve Out (5Fh) PREEMPT AND ABORT (05h) service

Bug #1863688 reported by Rafael David Tinoco
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fence-agents (Ubuntu)
Won't Fix
Wishlist
Unassigned
tgt (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

When using TGT to serve iSCSI targets/luns to a corosync/pacemaker cluster, if one wants to use "fence_scsi" to fence the shared disk for a particular node it won't be able to as tgt does not implement the PREEMPT AND ABORT (05h) service.

A error like this will occur:

$ sudo fence_scsi --verbose -n clufocal03 --action=off -d /dev/disk/by-path/ip-10.250.1.199\:3260-iscsi-iqn.2020-01.cluster.focal\:target01-lun-1

...
2020-02-17 20:08:40,470 DEBUG: 5 PR out (Preempt and abort): bad field in cdb or parameter list (perhaps unsupported service action)
sg_persist failed: Illegal request
...

This is particularly bad as pacemaker configured with fence_scsi will fail to fence the other node with abstract error message.

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

I'm also setting this bug to affect fence-agents as it could provide some workaround for Persistent Reserve Out (5Fh) without the preempt and abort support (also as a whishlist, and for documentation purposes).

Changed in tgt (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Changed in fence-agents (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

I'm setting this as won't fix as we already have a MIR for targetcli-fb:

https://bugs.launchpad.net/ubuntu/+source/targetcli-fb/+bug/1854362

So we can use LIO "by default" and in [main], replacing tgt.

That might hopefully happen in 20.10.

Changed in fence-agents (Ubuntu):
status: Confirmed → Won't Fix
Changed in tgt (Ubuntu):
status: Confirmed → Won't Fix
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.