fence_scsi and fence_mpath configuration issues (e.g. /var/run/cluster/fence_scsi.key)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fence-agents (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Bionic |
Invalid
|
Medium
|
Unassigned | ||
Eoan |
Invalid
|
Medium
|
Unassigned | ||
Focal |
Invalid
|
Medium
|
Unassigned |
Bug Description
This bug's intent is to check if fence_scsi and fence_mpath agents are working in all supported Ubuntu versions. This is needed because both agents are very prone to errors and, depending the way they are configured, a vast set of errors can occur.
# fence-agents:
Both agents, fence_scsi and fence_mpath, are prone to errors
## fence_scsi:
You may find the following cluster resource manager errors:
Failed Actions:
* fence_bionic_
And the logs show:
Feb 24 03:20:31 clubionic02 fence_scsi[14072]: Failed: Cannot open file "/var/run/
Feb 24 03:20:31 clubionic02 fence_scsi[14072]: Please use '-h' for usage
The fence_scsi agent is responsible for creating those files on the fly and this error might be related to how the fence agent was configured in pacemaker.
## fence-mpath
You may find very difficult to configure fence_mpath to work flawless, try to follow comments from this bug.
Changed in fence-agents (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
Changed in fence-agents (Ubuntu Xenial): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
Changed in fence-agents (Ubuntu): | |
status: | Confirmed → New |
importance: | High → Undecided |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
no longer affects: | fence-agents (Ubuntu Xenial) |
summary: |
- [bionic] fence_scsi cannot open /var/run/cluster/fence_scsi.key (does - not exist) + fence_scsi cannot open /var/run/cluster/fence_scsi.key (does not exist) + after nodes are rebooted |
Changed in fence-agents (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in fence-agents (Ubuntu Eoan): | |
status: | New → Confirmed |
Changed in fence-agents (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in fence-agents (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in fence-agents (Ubuntu Eoan): | |
importance: | Undecided → High |
Changed in fence-agents (Ubuntu Focal): | |
importance: | Undecided → High |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
Changed in fence-agents (Ubuntu Focal): | |
status: | Confirmed → Fix Released |
Changed in fence-agents (Ubuntu Focal): | |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
Changed in fence-agents (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in fence-agents (Ubuntu Focal): | |
status: | Fix Released → Confirmed |
Changed in fence-agents (Ubuntu Bionic): | |
importance: | High → Medium |
Changed in fence-agents (Ubuntu Focal): | |
importance: | High → Medium |
Changed in fence-agents (Ubuntu Eoan): | |
importance: | High → Medium |
Changed in fence-agents (Ubuntu): | |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
importance: | High → Medium |
Changed in fence-agents (Ubuntu): | |
status: | Confirmed → Fix Released |
description: | updated |
Changed in fence-agents (Ubuntu): | |
status: | Fix Released → In Progress |
# WORKAROUND:
A way to workaround this issue is the following... in a 3 node cluster you can do this:
# node01
create a file /etc/fence_scsi.key containing: 62ed0000
# node02
create a file /etc/fence_scsi.key containing: 62ed0001
# node03
create a file /etc/fence_scsi.key containing: 62ed0002
In all 3 nodes create a file /etc/tmpfiles. d/fence_ scsi.conf containing:
L /var/run/ cluster/ fence_scsi. key - - - - /etc/fence_scsi.key
This will make systemd to create a symlink /var/run/ cluster/ fence_scsi. key pointing to your /etc/fence_scsi.key file and will allow fence_scsi agent to use that file to do its SCSI persistent reservations.
After creating those files reboot all the nodes and check if the file got created after boot:
rafaeldtinoco@ clubionic01: ~$ ls /var/run/ cluster/ fence_scsi. key cluster/ fence_scsi. key
/var/run/
rafaeldtinoco@ clubionic01: ~$ cat /var/run/ cluster/ fence_scsi. key
62ed0000