-
Notifications
You must be signed in to change notification settings - Fork 7
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 to support volume groups in controller #29
Comments
Sounds like a valid improvement, however what should be done if this variable gets changed over time ? |
My opinion that we can use multiple controllers for every volume group if we need this by providing ENV variable with volume group name, the same can be done for provisioner also. If sounds like a good idea I think I can try to propose a PR. |
OK, but then you have to somehow guarantee that modifying the volumegroup of a existing controller is not possible |
If user will change this variable there will be a new controller that will manage another volume group.Yes,I agree that can break smth but if I create provisioner and controller for some volume group and specify device patterns for this volume group I see what I do. If for some reason |
The problem is that you must store in some way, dont know where, which controller is responsible for which volumegroup initially. Because changing would mean all PVs are lost. |
So I've added the env variable with lvm volume group for controller and tried to reproduce the issue that you mentioned above.
Please suggest which else cases I can test ? |
Fine, but what happen if you have one controller, with ENV variable set to |
I did the same in step 2 only env variable name was another and this new controller did nothing with existing pvc and pv. Will try with env variable csi-lvm but I think nothing will change. |
You are talking from a different scenario then i did. |
4.Turned back to my initial setup and tried to edit my controller deployment with kubectl edit deployment and changed the volume group variable from test-vg to new-test-vg, old pod controller was terminated, new pod controller was started, nothing changed from PVC,PV, volume groups or logical volume side, data was in place |
Impossible, but if you dont mind to send a PR to make the vg configurable for the controller as well, i will check |
Please check my PR #30, maybe I did smth wrong when I tested it. Let's discuss and find where I was wrong. |
@majst01 did you have time to check ? |
already merged. |
I mean the case if we edit vg name in controller deployment and controller should remove pv, did you check this ? if yes, can you share the results please. |
Hi, as I can see here https://github.com/metal-stack/csi-lvm/blob/master/cmd/controller/controller.go#L229 provisioner pod always try to create logical volume in csi-lvm volume group, I think make sense to add ENV variable with volume group in controller and give the ability to create logical volumes in this volume group.
The text was updated successfully, but these errors were encountered: