scaleway / docker-machine-driver-scaleway

:whale: Scaleway driver for Docker Machine
MIT License
249 stars 34 forks source link

Compatibility with Rancher Server #21

Open jmatsushita opened 8 years ago

jmatsushita commented 8 years ago

I've submitted an issue on the rancher issue track as the release doesn't install: rancher/rancher#4486

Not sure if this driver has something to do with it. I was able to install the Vultr one.

moul commented 8 years ago

Thank you for reporting those issues,

We will wait a little bit for an answer from the @rancher team on their issue

jmatsushita commented 8 years ago

Taring with only the go static binary at the root (no folder) did the trick!

moul commented 8 years ago

Ok cool, I just added another upload here: https://github.com/scaleway/docker-machine-driver-scaleway/releases/download/v1.0.2/docker-machine-driver-scaleway.tar.gz, you should be able to use the url directly in rancher

moul commented 8 years ago

Oups, I gave you the bad link in the other issue, can you try with this link : https://github.com/scaleway/docker-machine-driver-scaleway/releases/download/v1.0.2/docker-machine-driver-scaleway.tar.gz (a tarball with only the go binary without folder)

jalberto commented 8 years ago

@moul that url is not working neither 1.2 relase

moul commented 8 years ago

@jalberto, yep I only succeed by putting the binary without tarball, we will probably release the binary for linux x86_64 then

@QuentinPerez, can you upload the binary please ?

jalberto commented 8 years ago

It works for me wit a zip file containing only the binary

On Tue, 10 May 2016 07:58 Manfred Touron, notifications@github.com wrote:

@jalberto https://github.com/jalberto, yep I only succeed by putting the binary without tarball, we will probably release the binary for linux x86_64 then

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/scaleway/docker-machine-driver-scaleway/issues/21#issuecomment-218074411

shouze commented 8 years ago

@moul @QuentinPerez @jalberto ok same issue for me, it only works within a zip (nor tgz) file... :(

Rancher also released as skel project for custom machine drivers: https://github.com/rancher/ui-driver-skel

Would be cool to provide some skel for scaleway ;)

shouze commented 8 years ago

@jalberto don't work when zipping it. Which version of rancher do you use? (I'm using 1.0.1 ATM).

jalberto commented 8 years ago

It did work for me on 1.1.0 inside the zip file you only need the binary

Anyway this driver is yet quite limited, I found faster just to use scaleway UI

shouze commented 8 years ago

@jalberto ok thx I will try with 1.1.0 ;)

I already use the driver with docker-machine & it fits all my needs. I will just provide a skel following https://github.com/rancher/ui-driver-skel spec.

jalberto commented 8 years ago

great :)

On Thu, 19 May 2016 at 12:19 Sébastien HOUZÉ notifications@github.com wrote:

@jalberto https://github.com/jalberto ok thx I will try with 1.1.0 ;)

I already use the driver with docker-machine & it fits all my needs. I will just provide a skel following https://github.com/rancher/ui-driver-skel spec.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/scaleway/docker-machine-driver-scaleway/issues/21#issuecomment-220296238

pascalandy commented 8 years ago

I'm super pumped about Rancher too. I tried it but it's not supporting compose v2 at the moment. I decided to wait and go with Docker stuff only, compose v2, machine & swarm.

Anyways, cool hear about another folks using scaleway with the docker eco-system!

Cheers! beer-alcohol-toast-3o85xjSETVG3OpPyx2

shouze commented 8 years ago

@pascalandy yes, I will stuck with docker stuff only till rancher-compose support docker-compose v2 format https://github.com/rancher/rancher/issues/3973 (because libcompose itself still not ready for v2 format https://github.com/docker/libcompose/issues/147).

clescot commented 7 years ago

Hi, FYI, rancher/rancher#3973 (in 1.2 pre-2 release) and docker/libcompose#147 (in libcompose 0.3.0 ) issues have been fixed. Charles.

shouze commented 7 years ago

@clescot yes that's great but volumes & networks have some issues opened https://github.com/rancher/rancher/issues/5714 & https://github.com/rancher/rancher/issues/5715. BTW, close to the goal ;)

roynasser commented 7 years ago

Hi, just wanted to know if this is working? and if so what URL are you using in rancher to download the machine driver?

thanks!

EDIT: got it to install using the latest tar.gz, for some reason it didnt work at first...anyways, if anyone has developed a skel it would be cool to share :)

robeastham commented 7 years ago

@RVN-BR If I'm following you correctly you have managed to get Rancher OS v0.6.1 running on a Scaleway instance? That's great if so. I've been trying to build a custom Rancher OS image for use on Scaleway VC1 or C2's with this:

I already have Rancher hosts running off Ubuntu derived images on Scaleway, but I'm keen to use Rancher OS as the base image for my hosts instead. I'm hoping that it'll use a lot less memory than the Scaleway default Docker image.

I did try this:

https://github.com/rancher/os-installer

But I've had no luck and just get a kernel panic on boot, think this is because Scaleway ignores vmlinuz and initrd and uses it's own instead.

If you have managed to get Rancher OS working on Scaleway would you be willing to share the steps required and perhaps and example of your docker-machine line? Thanks :-)

roynasser commented 7 years ago

Hi @robeastham in fact I didnt get that far :(

I actually wasnt even able to get the docker-machine driver working... (although I think its a question of looking at the scaleway API and filling in the options correctly). I'll probably look into this a bit later as I havent had a lot of time...

I was going to have it start an ubuntu image, at least initially... hadnt thought of giving rancher os another try... I had some troubles with it and then ended up not using it anymore... Have you been using ROS in production? thanks!

robeastham commented 7 years ago

@RVN-BR no not using in production yet. But hope to soon with my setup.

I have a Rancher Server running on an EC2 instance, that is running Rancher OS. But I plan to use Scaleway as much as possible for hosts as they are much better value when compared to EC2 instances.

I've just settled with the default Ubuntu based Docker image for now for my hosts on scaleway. VC1L seem like the best value. So my Rancher Hosts on Scaleway just work with my EC2 Rancher Server when I pick this image. I tried the Scaleway Alpine images too, but had problems with K8S containers communicating and starting despite picking the Docker boot scripts.

It would be great to get Rancher OS as an official OS image supported by Scaleway as I think it will cut down on the memory requirements for hosts. Perhaps @moul could comment on whether we are likely to see this? I think Scaleway would sell more instance hours if they supported Rancher OS out of the gate. It wouldn't take long for word to get around the Rancher community and for others running Docker containers.

roynasser commented 7 years ago

Got it @robeastham ... I am having a bit of trouble with getting hosts to connect to a rancher server on a scaleway instance... I need to create a different set of security group rules I think.... I tried using the internal scaleway IP (rancher agent and rancher server on scaleway) but it didnt work... I keep getting http://10.x.x.x:8080/v1 is inaccessible errors on the rancher log... (ping works, etc), anyways, thats a diferent issue... I wanted to use Rancher on scaleway mostly for test loads, unfortunately most of our traffic is in South America and the lag to Scaleway is significant... But for testing loads I find the scaleway pricing pretty fantastic 👍

I'm going to give RancherOS another spin soon... I havent really touched it in a while... I think a rrancheros image would indeed help a lot for european customers at least... And the Rancher Community seems pretty active so I guess unless its something very difficult it would be wise for them... CoreOS is also notably not on their list... Previously I was tesing mostly on coreos...will have to give ros another shot.

meteormanaged commented 7 years ago

Two questions here:

  1. Can someone provide a sample config used within Rancher for provisioning a host? I'm getting failures with a plain old exit code 1.

  2. Can this repo be updated to add the custom UI options that rancher supports? Might make the provisioning go a little smoother/require less guess work for what's truly needed or not.

http://docs.rancher.com/rancher/v1.2/en/configuration/machine-drivers/

https://github.com/rancher/ui-driver-skel

marcbachmann commented 7 years ago

Can someone provide a sample config used within Rancher for provisioning a host? I'm getting failures with a plain old exit code 1.

For rancher 1.2 I've used https://github.com/scaleway/docker-machine-driver-scaleway/releases/download/v1.2.1/docker-machine-driver-scaleway_1.2.1_linux_amd64.tar.gz

There's no ui for that (not sure whether the new ui is working)

For rancher 1.6 there's also a working ui: download url: https://github.com/scaleway/docker-machine-driver-scaleway/releases/download/v1.3/docker-machine-driver-scaleway_1.3_linux_amd64.tar.gz

ui url: https://mitcdh.github.io/ui-driver-scaleway/dist/component.js

Here's the full configuration: image

davidoster commented 7 years ago

Well just a follow up not in terms of RancherOS but general use of Rancher. It appears that the Scaleway machine driver isn't available anymore at least on version 1.6.2 But to be honest this is not a problem!

I am running a simple Rancher cluster as we speak out of VC1S machines with docker instances. I tried to install on an Ubuntu Xenial image the RancherOS but couldn't make it! So the master runs of a VC1S image.

Then I added via a custom machine driver a node and it is working as a charm, even though that the Rancher UI says incompatible!!! http://prntscr.com/fpvikp

davidoster commented 7 years ago

Continuing previous comments, Got it working by simply installing on a VC1S the docker image from imagehub and then after I ssh'ed to the server I executed curl https://releases.rancher.com/install-docker/1.12.sh | sh. That last command updated docker to 1.12.6! Happy hunting!