How to integrate our own private cloud with rancher?

538 views
Skip to first unread message

Jason Huang

unread,
Jun 11, 2015, 10:57:09 AM6/11/15
to ranc...@googlegroups.com
On add host UI, rancher let user select some public cloud and custom linux host. 

We need add our private cloud support at this functions' UI for add host quickly. 

Is there any method to add the provision UI and process for our own private cloud without modifying the rancher server's code directly?

Will Chan

unread,
Jun 11, 2015, 12:41:02 PM6/11/15
to ranc...@googlegroups.com
Today, we support cloud drivers via Docker Machine (https://docs.docker.com/machine/).  Although, you do see only DigitalOcean, AWS, Packet, and Rackspace, we actually do support the rest of the drivers that's currently supported by Docker Machine minus GCE as it requires a bit more work to support.  It just does not appear in the UI quite just yet but our API does support it.  

What are you using to manage your private cloud?  If it's CloudStack or Openstack, and it works with Docker Machine, it will work with Rancher.  If you are using a custom private cloud solution that is not supported by Docker Machine, unfortunately, the only way to add hosts would be to use Rancher's way of running the container on each host/vm you want Rancher to manage -OR- submit a PR to Docker Machine to add your driver.  If it appears as a driver in Docker Machine, Rancher will automatically support that shortly after Docker officially releases it.

Will

Craig Reeves

unread,
Jun 14, 2015, 8:31:02 AM6/14/15
to ranc...@googlegroups.com
Hi Will,

I have had a bit of a look around the API and the documentation and there is nothing the stands out to me as a 'hey this is how you use a different docker machine driver'. Apologies if I have missed it, but do you have any documentation or guidance around using your api to utilise say, the vSphere driver?

Many thanks
Craig

Vincent Fiduccia

unread,
Jun 14, 2015, 5:31:26 PM6/14/15
to ranc...@googlegroups.com
You'll want to make sure you're running the very latest rancher as some of the drivers were recently added.  Go to the API & Keys screen in the UI (under the user circle in the top-right corner) and click on the API endpoint.  Then click on the "machines" link, and click the blue Create button.  This will show you the inputs for creating a machine.  There's a drivernameConfig input for each driver, vmwarevsphereConfig and vmwarevcloudairConfig should be two of them.

To create a machine you'll need to construct the config as JSON since the API UI doesn't support nested complex objects yet.  Clicking on the config's type will bring you to the schema which tells you about the fields it has (/v1/projects/1a5/schemas/vmwarevsphereConfig).  For example, vmwarevsphereConfig takes:

"boot2dockerUrl", "computeIp", "cpuCount", "datacenter", "datastore", "diskSize", "memorySize", "network", "password", "pool", "username", "vcenter"

which should correspond to the options you can pass into the docker-machine CLI.

-- 
Vincent

Craig Reeves

unread,
Jun 14, 2015, 6:15:14 PM6/14/15
to ranc...@googlegroups.com
Thanks Vincent, thats very helpful - I will give this a try.

Jason Huang

unread,
Jun 18, 2015, 3:18:22 AM6/18/15
to ranc...@googlegroups.com
Hi, Will, thanks for your answer. Another question, is there any method to add function page on rancher's Add Host's UI  to support the UI operation for specified docker machine driver? Do you have any plan to support OpenStack on Add Host function's UI?

在 2015年6月12日星期五 UTC+8上午12:41:02,Will Chan写道:

Will Chan

unread,
Jun 18, 2015, 12:23:25 PM6/18/15
to ranc...@googlegroups.com
We will be adding UI support for the rest of the docker machine drivers fairly soon.  


Will

Florian Blampey

unread,
Jun 19, 2015, 10:27:05 AM6/19/15
to ranc...@googlegroups.com
Hello,

I'm using OpenStack, my instance become available but Rancher try to SSH to the instance without any password, so it fails...
I use the RancherOS as OS.
How can I say to Rancher "this is the password for login" ?

Regards,

Florian

Florian Blampey

unread,
Jun 19, 2015, 11:26:05 AM6/19/15
to ranc...@googlegroups.com
or maybe push an SSH key to the instance ?

Regards,

Florian

wlan0

unread,
Jun 19, 2015, 1:45:09 PM6/19/15
to ranc...@googlegroups.com
Hello Florian,

Are you provisioning a host on OpenStack using the AddHost UI or the API UI? If that's the case, then RancherOS won't work. 

Currently, RancherOS can be provisioned only on virtualbox and aws using the UI.

Florian Blampey

unread,
Jun 19, 2015, 1:56:08 PM6/19/15
to ranc...@googlegroups.com
Hello,

I provisioned my instance with the API UI of Rancher and it works I can SSH to the instance with the default user/password, but I saw on the logs that Rancher try to SSH but fails.
If I use an other OS, do you think it will work? Does it will push an SSH key to the instance?

Thanks,

Florian
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages