API: added method for deleting unused links#427
Open
ekakhrom-orionsoft wants to merge 1 commit intooVirt:masterfrom
Open
API: added method for deleting unused links#427ekakhrom-orionsoft wants to merge 1 commit intooVirt:masterfrom
ekakhrom-orionsoft wants to merge 1 commit intooVirt:masterfrom
Conversation
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. 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. Signed-off-by: Ekaterina Khromova <ekhromova@orionsoft.ru>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Environment: 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