API: added method for deleting unused links #427
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
When creating a disk on a block storage domain (for example, FibreChannel), links to the disk are created on all active hosts that belong to the StoragePool of the disk being created. Further, when deleting a created disk, links to the disk are deleted only on the host with the SPM role, while incorrect links to the deleted disk remain on the other hosts.
Playback:
Environ 8000 ment: SA oVirt Engine, 2 hosts (Host 1 with the SPM role), a FibreChannel storage domain.
Actions:
Solution:
Added an API method on VDSM to remove unused links. When deleting a disk, the command to delete unused links is invoked for all active hosts that are associated with the StoragePool of the disk being deleted.
Playback (after solved issue):
Environment: SA oVirt Engine, 2 hosts (Host 1 with the SPM role), a FibreChannel storage domain.
Actions:
Attention!
This PR should be applied only after applying PR on the VDSM:
oVirt/ovirt-engine#1009
Are you the owner of the code you are sending in, or do you have permission of the owner?
Yes