mrlesmithjr/ansible-manage-lvm

rescan-scsi-bus.sh fails on NVMe only hosts

mnasiadka opened this issue · 0 comments

Describe the bug
rescan-scsi-bus.sh fails on NVMe only hosts (no SCSI devices)

Log:
fatal: [node]: FAILED! => {"changed": false, "cmd": ["/usr/bin/rescan-scsi-bus.sh"], "delta": "0:00:00.012365", "end": "2021-11-22 16:31:58.033021", "msg": "non-zero return code", "rc": 1, "start": "2021-11-22 16:31:58.020656", "stderr": "cat: /sys/class/scsi_host/host/proc_name: No such file or directory", "stderr_lines": ["cat: /sys/class/scsi_host/host/proc_name: No such file or directory"], "stdout": "No SCSI host adapters found in sysfs", "stdout_lines": ["No SCSI host adapters found in sysfs"]}

To Reproduce
Steps to reproduce the behavior:

  1. Run the role on NVMe only host
  2. See error

Expected behavior
Works properly