Open hemna opened 4 years ago
The error says that "Image features are not supported" -- so what features are/are not enabled on that image?
I had no idea, the error message should have listed the features that were required, but not there in the pool/image.
https://github.com/ceph/ceph-iscsi/blob/master/ceph_iscsi_config/lun.py#L642-L645
The unsupported features list is empty.
FWIW, looking at the code, I was able to see that the required feature list is a single entry here: https://github.com/ceph/ceph-iscsi/blob/master/ceph_iscsi_config/lun.py#L43-L47
That says the image must contain the feature of exclusive lock. Nowhere in the docs is that stated as being required. So after creating the image, I then used the rbd command line to force that feature on the image, and then tried to create the disk on the host, and that worked.
so: 1) The documentation for ceph-iscsi needs to explicitly state that the exclusive-lock feature must exist on every image you plan on exporting 2) the error message that rbd-target-api needs to be fixed to show the missing feature flags on the image.
so:
1. The documentation for ceph-iscsi needs to explicitly state that the exclusive-lock feature must exist on every image you plan on exporting 2. the error message that rbd-target-api needs to be fixed to show the missing feature flags on the image.
This is an open-source project: please feel free to open a PR to improve the product.
/assign
The interest thing is that I can not reproduce this bug now :-)
I'm trying to export an already existing image with gwcli.
When I try and create the disk in gwcli I get an error of
And the rbd-target-api.log has a weird error
The /var/log/rbd-target-api.log