os-brick/os_brick/tests
Gorka Eguileor 7da3d82773 NVMe-oF: Fix generation of hostnqn file
In some old nvme-cli versions the NVMe-oF create_hostnqn method fails.

This happens specifically on versions between not having the
show-hostnqn command and having it always return a value. On those
version the command only returns the value present in the file and never
tries to return an idempotent or random value.

This patch adds for that specific case, which is identified by the
stderr message:

   hostnqn is not available -- use nvme gen-hostnqn

Closes-Bug: #2035606
Change-Id: Ic57d0fd85daf358e2b23326022fc471f034b0a2f
2023-09-14 18:21:18 +02:00
..
caches Fix import order of libraries 2021-03-03 16:27:19 -05:00
encryptors LUKS: Support extending host attached volumes 2022-07-19 12:36:53 +02:00
initiator Merge "Check paths before extending device" 2023-08-25 16:32:11 +00:00
local_dev LVM: Retry lv calls on segfault due to lvs failure 2021-07-26 15:19:16 +00:00
privileged NVMe-oF: Fix generation of hostnqn file 2023-09-14 18:21:18 +02:00
remotefs Remove six 2021-03-03 14:41:22 +08:00
windows Merge "Fix import order of libraries" 2021-03-04 15:15:32 +00:00
__init__.py renamed the project to os-brick 2015-02-05 23:58:37 +00:00
base.py Fix Unit Test failures due to host's ANA support 2022-06-10 15:57:39 +02:00
test_brick.py Removes unnecessary utf-8 encoding 2016-12-22 10:24:40 +07:00
test_exception.py Remove six 2021-03-03 14:41:22 +08:00
test_executor.py Merge "Dropping explicit unicode literal" 2021-03-12 23:36:22 +00:00
test_utils.py Check paths before extending device 2023-08-24 11:40:32 +00:00