-
Notifications
You must be signed in to change notification settings - Fork 536
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
rbd: do deep copy for dummyVol struct #2669
Conversation
@BenamarMk PTAL. |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
|
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.
Tested this patch and it works as intended.
Before the fix
After the fix
|
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
added DNM. QE is still testing this one looks like we need some more fix |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
Pull request has been modified.
@Mergifyio rebase |
✅ Branch has been successfully rebased |
474a342
to
e8792c1
Compare
looks like jenkins issue restarting the tests |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.21 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
@Madhu-1 if I heard right we are waiting for QE testing, isnt it ? |
yes, added DNM for the same reason. |
@agarwal-mudit could you share some of the test results please? Re-adding |
@@ -290,9 +290,9 @@ func createDummyImage(ctx context.Context, rbdVol *rbdVolume) error { | |||
if err != nil { | |||
return err | |||
} | |||
dummyVol := rbdVol | |||
dummyVol := *rbdVol |
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.
It probably helps to have a comment about this, as the implicit deep-copy is something that is really required here. Or create a DeepCopy()
function to make it very explicit?
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 can add a comment. if I make any code changes this should go through the testing again to cover all the cases to avoid regression.
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.
Do we have regression tests for this at all? If the e2e does not have a test-case, you can add the ci/skip/e2e
label?
The current change is very fragile, and breaking seems easy. If a follow-up is planned, can you share a link to the issue?
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.
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.
regression is a manual testing for now
It was decided not to wait for the test results. We can merge the fix and if it doesn't help QE can put it back to ON_QA. |
@nixpanic @humblec This is tested from @BenamarMk and Annette and its working fine as expected |
with shallow copy of rbdVol to dummyVol the image name update of the dummyVol is getting reflected on the rbdVol which we dont want. do deep copy to avoid this problem. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
currently we are fist operating on the dummy image to refresh the pool and then we are adding the scheduling. we think the scheduling should be added first and than we should refresh the pool. If we do this all the existing schedules will be considered from the scheduler. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
e8792c1
to
38105e7
Compare
with a shallow copy of rbdVol to dummyVol, the image name update of the dummyVol is getting reflected on the rbdVol which we don't want.
do a deep copy to avoid this problem.
fixes ##2656 (comment)
Signed-off-by: Madhu Rajanna madhupr007@gmail.com