You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
I have been working with the new CoreOS provisioner which is scheduled for 0.5 or perhaps earlier. The new provisioner does indeed work and launches a CoreOS droplet (testing on digitalocean) successfully. The problem has to do with etcd not being configured as the discovery token was not sent via cloud-init. This means native functionality to CoreOS is broken and etcd is returning 404's. I asked the CoreOS folks about possible workarounds but the general opinion was that these parameters need to be entered at provision time.
As a workaround I though I could create CoreOS via cloud-config myself and then attach the docker-machine generic driver. While CoreOS was working and etcd was functional as soon as I attached docker-machine it broke all etcd functionality. Below are the exact steps I followed.
After these steps CoreOS was launched and everything including etcd were configured properly. Now I attempted to link docker machine (recent dev version with coreos provisioner) to this existing droplet.
As soon as docker-machine was done its configuration and linked to the droplet etcd was disabled and its configuration lost. I'd welcome any ideas of how to solve this!
The text was updated successfully, but these errors were encountered:
We're doing some limited initialization of cloud-init (https://github.com/docker/machine/blob/master/libmachine/provision/coreos.go#L19) and it would make sense to me to set some sensible defaults (since e.g. I would expect service discovery on my CoreOS box to "just work"), so you're welcome to open a PR for that provisioner, but we're hesitant to expand the scope of provisioning in general without carefully considering the model we use first.
nathanleclaire
changed the title
CoreOS Provisioner breaks ETCD
CoreOS Provisioner does not properly bootstrap etcd
Oct 9, 2015
I have been working with the new CoreOS provisioner which is scheduled for 0.5 or perhaps earlier. The new provisioner does indeed work and launches a CoreOS droplet (testing on digitalocean) successfully. The problem has to do with etcd not being configured as the discovery token was not sent via cloud-init. This means native functionality to CoreOS is broken and etcd is returning 404's. I asked the CoreOS folks about possible workarounds but the general opinion was that these parameters need to be entered at provision time.
As a workaround I though I could create CoreOS via cloud-config myself and then attach the docker-machine generic driver. While CoreOS was working and etcd was functional as soon as I attached docker-machine it broke all etcd functionality. Below are the exact steps I followed.
Create CoreOS Droplet with Cloud Init
Curl
Cloud Config
After these steps CoreOS was launched and everything including etcd were configured properly. Now I attempted to link docker machine (recent dev version with coreos provisioner) to this existing droplet.
docker-machine create -d generic \ --generic-ssh-user core \ --generic-ssh-key ~/.ssh/xxx \ --generic-ip-address xxx.xxx.x.xx \ example
As soon as docker-machine was done its configuration and linked to the droplet etcd was disabled and its configuration lost. I'd welcome any ideas of how to solve this!
The text was updated successfully, but these errors were encountered: