ceph / ceph-iscsi-cli

NOTICE: moved to https://github.com/ceph/ceph-iscsi
GNU General Public License v3.0
25 stars 25 forks source link

rollback of snapshot:LUN deactivate failure - in-use #149

Open hustMaxwell opened 5 years ago

hustMaxwell commented 5 years ago

I have a question about the rollback of snapshot. Here is the current situation, a failed message called 'LUN deactivate failure - in-use ' returned when I try to send a rollback request to the iscsi-gw .and a successful message returned only if I logout all the hosts under the current iscsi-target. Since there is no need to logout all the hosts under the current iscsi-target, we should be able to rollback the snapshot when we have logout the host to which the image that needs rollback belongs. Here is my solution . your opinions are greatly welcomed.

rbd-target-api.py.txt

dillaman commented 5 years ago

Can you open a PR if you have a proposed patch?