From Dan Kenigsberg danken@redhat.com:
Dan Kenigsberg has submitted this change and it was merged.
Change subject: lease: Implement lease.Device.is_attached_to ......................................................................
lease: Implement lease.Device.is_attached_to
When hot-unplugging a lease, we need to wait until the device is removed, so we must implement is_attached_to method.
Implemented using the lease id and the domain id, which define the lease identity. Not clear if we should check also the lease path and offset, and how (impossible) mismatch should be handled.
Change-Id: I733e33dd98b6e847b306186591fefd4a7ddbfbf2 Bug-Url: https://bugzilla.redhat.com/1408825 Signed-off-by: Nir Soffer nsoffer@redhat.com --- M lib/vdsm/virt/vmdevices/lease.py M tests/virttests/vmlease_test.py 2 files changed, 64 insertions(+), 0 deletions(-)
Approvals: Nir Soffer: Verified Jenkins CI: Passed CI tests Dan Kenigsberg: Looks good to me, approved
vdsm-patches@lists.fedorahosted.org