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
start-kube-docker not working in Vagrant image #161
Comments
Couple things I noted; I don't see anything in the script starting the rethinkdb container so I've done that manually ( edit: sorry for the comment spam, but I did realize that 8080 is one of the kube ports and I was misreading the quickstart "to check if it worked" bit. |
Here is the output from running hyperkube manually. One problem with the container is that the volumes don't appear to be linking to the host properly.
|
Unfortunately I didn't really keep good track of everything I tried, but it does seem like Docker is the problem or at least the symptom of another problem. I've gotten kubernetes to start and pachctl to at least connect to it by dropping back to earlier versions of everything, but then the enhancements that seem to be needed by Pachyderm aren't there. I've gotten the "kubelet" container to start by committing the container created by the script and running /bin/bash and then running hyperkube manually, but that doesn't start up the pod. Not directly related, but the experimental Docker build also can't stop containers due to it complaining about permissions. Based on doc for Kubernetes, I added |
So I'm a little confused on the status of this issue. You have Kubernetes up and running but it's the wrong version? What happens when you try to start the correct version? Also could you try this without Vagrant? All you need is Docker and Golang which I think makes Vagrant sort of unneeded. I think we should consider just removing the Vagrant file. |
Sorry for the confusion. At one point Kubernetes would start when I referenced an earlier version. I probably wasn't using the Pachyderm master.json and Pachyderm didn't work correctly. I imagine that this would be expected. The correct version as referenced by the start kube script does not start correctly.
Vagrant makes it possible to blow away bad experiments and start over. Is Docker or any of the other technologies used known to not play well in a VM? I do understand if you don't want to maintain an official Vagrantfile. Thanks |
Ok, I do have to correct myself. I am able to get a Kubernetes cluster working by using the instructions on their site substituting the 1.1.2 version instead. But, that leaves me with this error-
In this setup the custom master.json doesn't get copied to the Kubernetes image, so presumably the configuration in it is a part of the problem? Also forgot to mention that I switched to a Phusion based image ( |
@brinman2002, Docker is very similar to Vagrant in it's functions in that it also manages the automated deployment of virtual machines. So why run a virtualization Inception? Try docker on its own! |
Much to my surprise, Docker doesn't work correctly in Vagrant (with VirtualBox as the backend anyway) but it is working (better) on bare metal. I can only assume it is doing lower level virtualization that isn't supported by VirtualBox. I'm still not completely working but I'm past all of the issues documented here. |
@brinman2002 what sorts of issues are you hitting with bare metal? |
I just tried to update and now make install doesn't work. The launch goal triggers install so it fails as well. When I made the previous comment, I was using the /etc/kube script as that was what was suggested on issue 160.
|
The previous error was from not having my machine set up correctly. I think I have it set up right now but get is still having issues:
|
Hmm, I don't fully understand |
Yeah I'm not sure what changed but make install is working now. Do you recommend make launch or etc/kube/start-kube-docker.sh to run Pachyderm? make launch still uses Docker Compose, which you said wasn't "a viable way to deploy". |
Running etc/kube/start-kube-docker.sh seems to be working now. Thanks! |
If you're on master I'm trying to get docker-compose ripped out soon, but our unit tests still use it. |
Not completely working after all. I can create repos with pachctl but it doesn't create commits.
Also, if you do the echo in the quickstart to demonstrate that you can't write to the data directory, it throws things into a bad state. The echo command never exits and the pachctl mount command continuously throws errors like these-
I've had to reboot to make to things work again. |
On the quickstart, is using "foo" just a documentation error?
|
According to the quickstart, this shouldn't work either since it hasn't committed yet.
I know you mentioned the doc is a little stale (and as a developer, I know how that happens :D ), but I thought I'd point this out because it seems like it could be an issue in the code as well. |
Another hang
|
Thanks so much for reporting, just updated the quickstart to not reference foo anymore. Regarding issue with the hang. I've created #162 to track that. The issue with files being returned from unfinished commits is tracked in #159. I think these are both fairly simple issues so I'll try to get them fixed soon. |
Great, thanks. Is there an IRC/Slack chat/mailing list for more informal questions? |
Hi, I'm running a default vagrant cluster with 3 k8s nodes to simulate a production cluster. Cluster started with:
|
Hi @teodor-pripoae, sorry you ran into this. What do you get when you do |
Trying to run Pachyderm in Vagrant using the Vagrantfile/init.sh in the Github documentation QUICKSTART.md.
gcr.io/google_containers/hyperkube:v1.1.2
container does not start.Steps to reproduce:
Console log: kubeNotStarting.txt
The text was updated successfully, but these errors were encountered: