-
Notifications
You must be signed in to change notification settings - Fork 332
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
Custom PVC source specified in ExtraVolumes in the fluentd definition is not honoured #1616
Comments
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC.
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy<[email protected]>
@bbyreddy the purpose of
Does that help? |
I think I understand the original problem and I will try to phrase it, you can correct me if I'm wrong: You want to use an existing persistent volume in the statefulset as a destination for some of your logs, that is managed outside of the logging operator. I think we have never really tried to support this use case, so we have to think about how we would do that normally. Please feel free to join the project discord so that we can discuss further: https://discord.gg/JKGg2wDBp8 |
@pepov |
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…ails specified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC." This reverts commit 981d4b4.
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…ails specified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC." This reverts commit 981d4b4. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
…cified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are honoured, instead of always attempting to create a new PVC. Signed-off-by: Bhaskar Reddy Byreddy <[email protected]>
Thank you very much, @pepov , @OverOrion , @aslafy-z for your timely support. This issue is resolved and enabled us adopt the latest version of the logging operator. |
Hi @pepov , |
I've prepared it here: #1653 |
Thank you, @pepov |
4.5.3 is available with the fix |
Describe the bug:
Custom PVC source details specified in the fluentd.extraVolumes.volume.pvc.source.claimName of the fluentd definition are not honoured by the logging-operator. It always tries to create a new PVC and expects a non-empty fluentd.extraVolumes.volume.pvc.spec.
Operator Version: 4.4.3
I suppose the issue is with the following code snippet in the pkg.resources.fluentd.statefulset.go (line# 51 to 63). The else block will never be executed as the n.Volume.PersistentVolumeClaim will not ne null in both the cases (when user wants to provide pvc.spec or pvc.source).
Expected behaviour:
Expectation according to the documentation is to either provide a volume.pvc.spec or volume.pvc.source. If the volume.pvc.source is provided, then the same should be mounted instead of creating a new PVC.
Steps to reproduce the bug:
logging-fluentd statefulset fails to deploy with the following error
Warning FailedCreate 43s (x13 over 64s) statefulset-controller create Claim logging-edge-logs-logging-fluentd-0 for Pod logging-fluentd-0 in StatefulSet logging-fluentd failed error: PersistentVolumeClaim "logging-edge-logs-logging-fluentd-0" is invalid: [spec.accessModes: Required value: at least 1 access mode is required, spec.resources[storage]: Required value]
Additional context:
None
Environment details:
kind: bug
The text was updated successfully, but these errors were encountered: