Skip to content

Commit

Permalink
Add missing unit attention ack and retry
Browse files Browse the repository at this point in the history
Before reading registrations.
Without this ack, some systems report systematically this error on stop:

	E | Persistent reservation in:
	E | Fixed format, current; Sense key: Unit Attention
	E | Additional sense: Reservations preempted
	E | PR in (Read keys): Unit attention
	E | sg_persist failed: Unit attention
  • Loading branch information
cvaroqui committed Jun 27, 2023
1 parent 35969d0 commit 327481a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opensvc/drivers/resource/disk/scsireserv/sg.py
Expand Up @@ -124,6 +124,7 @@ def read_registrations(self):
n_registered += out.count(self.hostid)
else:
for path in paths:
self.ack_unit_attention(path)
ret, out, err = self.read_path_registrations(path)
if ret != 0:
continue
Expand Down

0 comments on commit 327481a

Please sign in to comment.