-
Notifications
You must be signed in to change notification settings - Fork 40
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
kn init openstack creates empty directory #403
Comments
Hi! Thanks for reporting. I think Docker runs on a VM on windows, and perhaps creates the directory in the VM, and something there goes wrong... We don't support Windows officially, but @carmat88 and @andersla may manage to help you anyway. I'll be on vacation for three weeks from now. I'll give it a look when I'll be back! |
Howdy @michaelosthege ! Thanks for pointing this out. As @mcapuccini mentioned, honestly we haven't never supported and tested solutions on Windows workstations. Which in turn means : we are unsure why that happens. It's going to be a busy period now for colleagues are (or about to go) on leave and we have soon an important deadline. Which means that unfortunately we cannot prioritize this. But thanks a lot again for opening the issue! However, I can reckon that you may have some work to be run and tested. Therefore I was thinking: given that you seem to have an openstack installation (or provider) available, wouldn't be easier if you launch a Linux instance and use that as a VM to run our getting started scenario? (i.e. you ssh into such VM and just work as described in our guidelines). If you could, then I'd bet that dealing with the deploying procedure would be way easier. Furthermore, being supposedly both the VM and cluster on the same network, data transfer and connection should go smoothly. Would this temporarily workaround be feasible for you guys? Cheers. |
I like @carmat88 Idea about starting a "Deployer" instance in the OpenStack tenancy. I tried the "Docker in Docker" that you did on my Ubuntu machine and it failed the same way with an empty directory as you described. Although I probably won't have time to investigate further at the moment at least I can reproduce the error. On the roadmap is converting our kn-bash script to Windows Power Shell (but that is not due for months). Yet another alternative would be to launch the script from a Ubuntu machine in Windows VirtualBox. |
We found the problem with the directory: Even though we were running the We modified the kn script to mount the folder from the docker-host/Windows drive instead. Now both, our "deployer" container and the containers created by We have now run into the next problem: The |
Thanks for investigating the issue! I will try merge a deployer docker image with updated Terraform version hopefully within this or beginning of next week. |
Good that you managed to sort this out! If you feel like you could share with us your modifications to the |
Hi there,
My colleague @kossikater and I are trying to use KN to init a cluster on OpenStack.
Since we are running on Windows workstations (long story), we have created a container that has access to the hosts
docker
command:docker run -it -v /var/run/docker.sock:/var/run/docker.sock ubuntu:latest sh -c "apt-get update ; apt-get install docker.io -y ; bash"
Then we proceed with the Getting Started:
Here we did not yet understand what the
pull
is for, because from the instructions we understand that the subsequent commands are also run from the hosts terminal (the container in our case), but not from a container preconfigured by you.Without sudo because within the container we're root already:
At this point the
kn
command becomes available. So far so good.Next, we downloaded and sourced the OpenStack RC file from our tenacy.
The init command runs through without errors, notifying us about the creation of an SSH keypair, but the directory that is created remains empty!
From this point on, obviously we can not proceed.
Did we miss something? Are we supposed to be running all these steps from within a provisioning-container, for example?
The text was updated successfully, but these errors were encountered: