Comments (5)
Hello @nikosece and thanks for your patience.
We had some bugs around merging custom specs for volumes claims which we hopefully fixed with release 0.2.1, which is after your post. Can you please try again with the latest release and let me know if the issue persists?
Thanks
from mongodb-kubernetes-operator.
Hi @bznein
I just happened to give the operator a try today and observed the same behavior via the 0.2.0 operator version. I updated the operator to 0.2.1 and it appears to still exhibit the following event when creating the first pod
error while running "VolumeBinding" filter plugin for pod "example-openshift-mongodb-0": pod has unbound immediate PersistentVolumeClaims
I did add the following to the custom resource replica set and it appears it mapped the bound volume to the pod.
volumeClaimTemplates:
- metadata:
name: mongo-persistent-storage
spec:
storageClassName: "fast"
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 100Gi
Looking at the pod yaml, I can see the volume is properly specified that was created using the defined storage class above. Lastly, looking at the data-volume-example-openshift-mongodb-0
PVC, it does not have a PV for the PVC to operate on. It appears to want to mount a file system
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: data-volume-example-openshift-mongodb-0 # This is the troublesome PVC
- name: mongo-persistent-storage
persistentVolumeClaim:
claimName: mongo-persistent-storage-example-openshift-mongodb-0 # This PVC is created using my storage class
Edit: I made a mistake in the name of the troublesome PVC. Also, I could not find any meaningful logs related to this issue coming from the operator pod.
from mongodb-kubernetes-operator.
@chatton @bznein In order to work around the issue, we went ahead and assigned a storage class, but it still created the failing default PVC. Finally, we tried naming our storage class defined PVC the same name as the default to override the values and it appears to work.
It appears when a volume claim template is specified, it tries to merge the volume claim templates rather than replace with our defined values. So to confirm, you are not merging the values properly for storage.
It's probably not reliable long term.
from mongodb-kubernetes-operator.
This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.
from mongodb-kubernetes-operator.
This issue was closed because it became stale and did not receive further updates. If the issue is still affecting you, please re-open it, or file a fresh Issue with updated information.
from mongodb-kubernetes-operator.
Related Issues (20)
- [Feature Request] Enable Copying/Annotation of Generated Secrets to Additional Namespaces HOT 1
- Readiness probe failed: panic: open /var/log/mongodb-mms-automation/healthstatus/agent-health-status.json: no such file or directory HOT 19
- [HELP] Migrate data from bitnami MongoDB to community MongoDB. HOT 2
- Deploy a sharded cluster HOT 3
- Statefulset: volumeClaimTemplates doesn't match volumeName annotation HOT 2
- Operator fail to install Mongo 7.0.9 HOT 1
- Too many "Connection accepted" and "Connection ended" in the logs HOT 3
- mongo not working with external access HOT 2
- MongoDB Failed Status HOT 4
- Scaling beyond 7 replicas causes failure in MongoDB Kubernetes Cluster with Mongo Community Operator HOT 2
- failed to create containerd task: failed to create shim HOT 2
- Publish the MongoDB community operator under OperatorHub HOT 2
- node had volume node affinity conflict HOT 2
- Arguments order for AutomationAgentCommand is incorrect HOT 2
- agent image referenced by 0.10.0 release not available on quay.io HOT 1
- Can't create a connection string secret in a different namespace HOT 4
- Broken link in `latest` release notes HOT 2
- quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1 has wrong architecture of binaries HOT 3
- operator CrashLoopBackOff, no logs, is my k8s version is too high? HOT 2
- memberConfig not applying priority/tags/votes changes as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-kubernetes-operator.