Comments (6)
@jarrpa @nick yeah /var/lib/heketi will be present in all the gluster pod running nodes. That's where we persist the mount points for the bricks created for each volume. yeah abort can clean it up, will not cause any problem. ONLY when this hits we are safe to remove it.
from gluster-kubernetes.
Thank you for your participation! :) To address your suggestions:
- Good idea. I need to check the output of the heketi-cli commands for errors as well, so I'll do both those things at around the same time.
- I'm not sure what you mean by this one.
/var/lib/heketi
shouldn't exist on the kube nodes, the GlusterFS volume heketi uses for its database should be mounted to/var/lib/heketi
within the heketi container. At best I could delete the contents of the volume, but that would still leave the volume around, which would be a problem. - I don't think I want to be messing directly with extant VGs in the deployment script. I'd have to be very careful to make sure I'm not deleting anything I shouldn't be, and likely prompting confirmation, at which point it's not much different from telling the admin to delete the VGs themselves.
- Throwing in
systemctl
calls makes the script less agnostic to linux distro, which is something I'm aiming for (even if I'm currently only developing in RH-flavored distros) :)
I personally use the vagrant setup for my development and testing. There's a wonderful little plugin called 'sandbox' (vagrant plugin install sandbox
) that manages a simple snapshot-based workflow:
./up.sh -> vagrant sandbox on -> <do stuff, mess it up> -> vagrant sandbox rollback -> <restart docker service on all the nodes, or just restart the VMs> -> <do stuff again>
which makes things fairly easy to automate.
from gluster-kubernetes.
It seems that /var/lib/heketi on each node may be a leftover from the bootstrap heketi installation perhaps? Regardless, if I run --abort then I'll still have to manually rm -rf /var/lib/heketi on each node before running the script again.
from gluster-kubernetes.
I went looking and I see them in my setups too, but I've never had to rm the directories during my development. I can look into whether or not this is a good idea, depending on when the directories get made. After what point in the script's execution are you running the --abort
?
from gluster-kubernetes.
@MohamedAshiqrh That makes sense! :)
from gluster-kubernetes.
As all the original suggestions have been addressed or discussed, closing this issue.
from gluster-kubernetes.
Related Issues (20)
- Error: Failed to allocate new volume: No space HOT 2
- Unable to access db HOT 1
- missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec HOT 1
- Unable to deploy on Ubuntu 18.04 -> pods not found. HOT 6
- Request to structure the README to include more projects
- 401 with latest heketi:dev image HOT 1
- probe failed
- glusterFS pod deploy failing
- PVC in pending status-no other error HOT 2
- Mount failed:E [glusterfsd.c:795:gf_remember_backup_volfile_server] 0-glusterfs: failed to set volfile server: File exists HOT 5
- Pod devices for topology get stuck, if pods are restarted.
- vagrant - failed to install glusterfs-client
- is this project still ALIVE? HOT 9
- Which gluster node are my pods/pvc talking to?
- Error waiting for job 'heketi-storage-copy-job' to complete HOT 4
- Kubernetes DaemonSet extensions/v1beta1 deprecated
- speed up deploying gluster
- heketi deployment has CrashLoopBackOff state, I am using ./gk-deploy script
- glusterfs on kubernetes stock on Error waiting for job 'heketi-storage-copy-job' to complete. stage
- About GlusterFs containers support geographic replication
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 gluster-kubernetes.