Encryption broken for the nvmeof connector
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Medium
|
Gorka Eguileor |
Bug Description
For non LUKS v1 encryptions the os-brick nvmeof connector is broken.
The attach and detach process works, but after we have detached the device we will no longer be able to attach another nvme device on the same host, seeing errors like this in the node (in this case is compute, but same thing would happen on controllers):
Mar 09 17:03:12 localhost.
Mar 09 17:03:12 localhost.
Mar 09 17:03:12 localhost.
Mar 09 17:03:12 localhost.
Mar 09 17:03:12 localhost.
Mar 09 17:03:12 localhost.
The reason is that the connector returns a real path instead of a symlink, in the very same way as the iSCSI one did before (https:/
The problem is that the os-brick encryptor needs to replace the device with a symlink, resulting in the device being a symlink which nobody cleans up on detach, so the next attach won't be able to use that device.
After the disconnect we can see this:
$ ls -l /dev/nvme*
crw-------. 1 root root 10, 61 Mar 1 16:57 /dev/nvme-fabrics
crw-------. 1 root root 244, 0 Mar 9 17:03 /dev/nvme0
lrwxrwxrwx. 1 root root 25 Mar 9 16:54 /dev/nvme0n1 -> /dev/mapper/
Changed in os-brick: | |
importance: | Undecided → Medium |
Changed in os-brick: | |
status: | New → Triaged |
Fix proposed to branch: master /review. opendev. org/c/openstack /os-brick/ +/836061
Review: https:/