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

Consider options for persisting metadata #66

Closed
gman0 opened this issue Aug 9, 2018 · 11 comments
Closed

Consider options for persisting metadata #66

gman0 opened this issue Aug 9, 2018 · 11 comments

Comments

@gman0
Copy link
Contributor

gman0 commented Aug 9, 2018

Currently, both RBD and CephFS CSI plugins suffer from relying on metadata stored locally on nodes - this will cause problems if e.g. the node goes down and the plugin gets relocated, losing the persisted state. This issue is intended to open a discussion and weigh the options to solve this problem.

@clkao
Copy link
Contributor

clkao commented Aug 10, 2018

What are the current metadata stored that are supposed to be persistent and are not node-specific, for rbd and cephfs, respectively? from the linked PR the rbd snapshot info seems to be one of them.

@gman0
Copy link
Contributor Author

gman0 commented Aug 10, 2018

Yes, snapshot info and both rbd and cephfs CSI plugins store volume attributes.

@gman0
Copy link
Contributor Author

gman0 commented Aug 16, 2018

I'm playing around with having etcd as a metadata store. Is it ok to have it as a dependency @rootfs ?

@dillaman
Copy link

Note that RBD allows you to associate arbitrary key/value pairs to images via "rbd image-meta get/set".

@rootfs
Copy link
Member

rootfs commented Aug 16, 2018

@gman0 i would like a cli option to persist meta data in kubernetes api server (e.g. as a configmap). This option can disable meta data persist if the driver runs in mesos.

@dillaman thanks for help. this case is a bit tricky since we want to persist both rbd as well as ceph cluster meta data.

@kfox1111
Copy link
Contributor

Is this just for snapshotting, or are other uses also affected?

@pohly
Copy link
Contributor

pohly commented Oct 30, 2018

Also other uses.

@JrCs
Copy link

JrCs commented Nov 22, 2018

Also if snapshotter container is not start in the same node as provisionner container, trying to create a snapshot result in: Source Volume ID csi-xxx-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx cannot found cannot found

@mickymiek
Copy link

Made a PR to address this issue (still WIP), please give me your feedbacks :)

@mickymiek
Copy link

@gman0 I think this can be closed?

@gman0
Copy link
Contributor Author

gman0 commented Jan 16, 2019

Done, closing.

@gman0 gman0 closed this as completed Jan 16, 2019
Rakshith-R referenced this issue in Rakshith-R/ceph-csi May 26, 2022
Sync rhs/ceph-csi:devel with ceph/ceph-csi:devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants