-
Notifications
You must be signed in to change notification settings - Fork 591
rbd: fetch the volumeIds from VGRContent's status for omap data #5899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nixpanic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that when fetching the PV fails, a new reconcile is scheduled?
internal/controller/volumegroup/volumegroupreplicationcontent.go
Outdated
Show resolved
Hide resolved
Yes, it will trigger a new reconcile. |
ee9b0d3 to
59629e7
Compare
internal/controller/volumegroup/volumegroupreplicationcontent.go
Outdated
Show resolved
Hide resolved
59629e7 to
4189187
Compare
|
@Mergifyio rebase |
Currently, we fetch the volumeId's from VGRContent.Spec.Source which has all the volumes that should be part of the group. But, it might happen that the initial modify call might fail due to some reason like network/config issue. In that case, the volumegroup omap will already be updated with the volumeIds and subsequent ModifyVolumeGroup call will fail as the volumes before and after Modify operation is same. Therefore, we should fetch the volumeIds from the VGRContent status, which only gets updated post a succesfull modification. Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
✅ Branch has been successfully rebased |
4189187 to
d20b696
Compare
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyDetailsThe pull request has been merged automatically at e62e083 |
Merge Queue Status✅ The pull request has been merged at d20b696 This pull request spent 2 hours 45 minutes 27 seconds in the queue, including 2 hours 39 minutes 23 seconds running CI. Required conditions to merge
|
Describe what this PR does
Currently, we fetch the volumeId's from VGRContent.Spec.Source which has all the volumes that should be part of the group. But, it might happen that the initial modify call might fail due to some reason like network/config issue. In that case, the volumegroup omap will already be updated with the volumeIds and subsequent ModifyVolumeGroup call will fail as the volumes before and after Modify operation is same.
Therefore, we should fetch the volumeIds from the VGRContent status, which only gets updated post a succesfull modification.