Skip to content
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: check volume details from original volumeID #2931

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Mar 10, 2022

Checking volume details for the existing volumeID first. if details like OMAP, RBD Image, Pool does not exist try to use clusterIDMapping to look for the correct pieces of information.

fixes: #2929

Signed-off-by: Madhu Rajanna madhupr007@gmail.com

Facing some CI issue and looks like its due to the rbd issue https://tracker.ceph.com/issues/54593

@mergify mergify bot added the component/rbd Issues related to RBD label Mar 10, 2022
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 11, 2022

/retest all

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 11, 2022

/retest all

something wrong with CI restarting all tests

Rakshith-R
Rakshith-R previously approved these changes Mar 11, 2022
@Rakshith-R Rakshith-R requested review from a team March 11, 2022 10:50
@humblec
Copy link
Collaborator

humblec commented Mar 14, 2022

hmmm.. just wondering how it react to migrated volume handle.

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 14, 2022

hmmm.. just wondering how it react to migrated volume handle.

@humblec what is the concern here?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 14, 2022

/test all

@humblec
Copy link
Collaborator

humblec commented Mar 15, 2022

hmmm.. just wondering how it react to migrated volume handle.

@humblec what is the concern here?

looking some more into this, ideally we should be good, that said the static volume ID is untouched and should folow the code path as before, for new volume Handles only the change in effect . @Madhu-1 can you please double confirm ?

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

hmmm.. just wondering how it react to migrated volume handle.

@humblec what is the concern here?

looking some more into this, ideally we should be good, that said the static volume ID is untouched and should folow the code path as before, for new volume Handles only the change in effect . @Madhu-1 can you please double confirm ?

Yes this is not for static volume its for dynamic volume already getting called in DeleteVolume Code

rbdVol, err := GenVolFromVolID(ctx, volumeID, cr, req.GetSecrets())
defer rbdVol.Destroy()
if err != nil {
return cs.checkErrAndUndoReserve(ctx, err, volumeID, rbdVol, cr)
}

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

/retest ci/centos/mini-e2e-helm/k8s-1.21

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

/retest ci/centos/mini-e2e-helm/k8s-1.23

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

/retest ci/centos/mini-e2e/k8s-1.21

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

/retest ci/centos/mini-e2e/k8s-1.23

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 15, 2022

`Mar 14 13:27:18.892: backend images not matching kubernetes resource count,image count 22 kubernetes resource count 21

backend image Info:

 [csi-vol-61a6638c-a39a-11ec-b84e-46359091d2ce csi-vol-637f4854-a39a-11ec-b84e-46359091d2ce csi-vol-637f4854-a39a-11ec-b84e-46359091d2ce-temp csi-vol-63bdd485-a39a-11ec-b84e-46359091d2ce-temp csi-vol-63db0526-a39a-11ec-b84e-46359091d2ce csi-vol-63db0526-a39a-11ec-b84e-46359091d2ce-temp csi-vol-63f96934-a39a-11ec-b84e-46359091d2ce csi-vol-63f96934-a39a-11ec-b84e-46359091d2ce-temp csi-vol-643f9696-a39a-11ec-b84e-46359091d2ce csi-vol-643f9696-a39a-11ec-b84e-46359091d2ce-temp csi-vol-6457b69e-a39a-11ec-b84e-46359091d2ce csi-vol-6457b69e-a39a-11ec-b84e-46359091d2ce-temp csi-vol-6475acf7-a39a-11ec-b84e-46359091d2ce csi-vol-6475acf7-a39a-11ec-b84e-46359091d2ce-temp csi-vol-6488cc64-a39a-11ec-b84e-46359091d2ce csi-vol-6488cc64-a39a-11ec-b84e-46359091d2ce-temp csi-vol-64c087be-a39a-11ec-b84e-46359091d2ce csi-vol-64c087be-a39a-11ec-b84e-46359091d2ce-temp csi-vol-681b9d97-a39a-11ec-b84e-46359091d2ce csi-vol-681b9d97-a39a-11ec-b84e-46359091d2ce-temp csi-vol-6876ee6d-a39a-11ec-b84e-46359091d2ce csi-vol-6876ee6d-a39a-11ec-b84e-46359091d2ce-temp

`
Failed due to known errors.

humblec
humblec previously approved these changes Mar 15, 2022
@Rakshith-R
Copy link
Contributor

@Mergifyio rebase

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 16, 2022

/test ci/centos/mini-e2e/k8s-1.21

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 16, 2022

/retest ci/centos/mini-e2e-helm/k8s-1.21

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 16, 2022

/retest ci/centos/mini-e2e/k8s-1.21

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Mar 17, 2022

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Mar 17, 2022

rebase

✅ Branch has been successfully rebased

@nixpanic
Copy link
Member

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Mar 20, 2022

rebase

✅ Branch has been successfully rebased

@mergify
Copy link
Contributor

mergify bot commented Mar 21, 2022

This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Nov 2, 2022

/retest ci/centos/mini-e2e/k8s-1.25

nixpanic
nixpanic previously approved these changes Nov 2, 2022
return nil, status.Error(codes.Internal, err.Error())
}

rv := &rbdVolume{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This works, but creating an empty object before overwriting it is a little ugly.

I prefer to use this instead:

var rv *rbdVolume

var vi util.CSIIdentifier
var imageAttributes *journal.ImageAttributes
err = vi.DecomposeCSIID(volID)
rv, err = GenVolFromVolID(ctx, volID, cr, req.GetSecrets())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@nixpanic nixpanic requested a review from a team November 2, 2022 13:42
@nixpanic
Copy link
Member

nixpanic commented Nov 3, 2022

@Mergifyio rebase

Checking volume details for the existing volumeID
first. if details like OMAP, RBD Image, Pool doesnot
exists try to use clusterIDMapping to look for the
correct informations.

fixes: ceph#2929

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@mergify
Copy link
Contributor

mergify bot commented Nov 3, 2022

rebase

✅ Branch has been successfully rebased

@nixpanic nixpanic added the ok-to-test Label to trigger E2E tests label Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/k8s-e2e-external-storage/1.23

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/k8s-e2e-external-storage/1.24

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/k8s-e2e-external-storage/1.25

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e-helm/k8s-1.23

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e-helm/k8s-1.24

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e-helm/k8s-1.25

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e/k8s-1.23

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e/k8s-1.24

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/mini-e2e/k8s-1.25

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/upgrade-tests-cephfs

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

/test ci/centos/upgrade-tests-rbd

@mergify mergify bot merged commit 07e9ded into ceph:devel Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD dependency/ceph depends on core Ceph functionality keepalive This label can be used to disable stale bot activiity in the repo ok-to-test Label to trigger E2E tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volume mounts for Pods failing with RBD mirroring enabled
5 participants