Skip to content

Add upstream patches to fix Python exception when creating LUN with ACLs present

Fiona Ebner requested to merge phi/targetcli-fb:fix-1109887 into debian/master

When Node ACLs and pre-existing LUNs are present, then creation of a new LUN will lead to a Python exception: type object 'MappedLUN' has no attribute 'MAX_LUN' and non-zero exit status. This is because the MappedLUN.MAX_LUN symbol has been removed from rtslib. Creation of the LUN itself still works, but no mapped LUNs for the node ACLs are created.

While the patch "target: remove the reference to MAX_LUN" avoids the Python exception itself, it failed to restore the functionality of creating mapped LUNs correctly. For that, the follow-up patch "Fix mapping the new LUN to the node ACL" is required.

This closes #1109887.

Signed-off-by: Fiona Ebner f.ebner@proxmox.com

Merge request reports

Loading