paz-sh / paz

An open-source, in-house service platform with a PaaS-like workflow, built on Docker, CoreOS, Etcd and Fleet. This repository houses the documentation and installation scripts.
http://paz.sh
Other
1.08k stars 56 forks source link

Etcd Unavailable when bootstrapping with vagrant #43

Closed rosskukulinski closed 9 years ago

rosskukulinski commented 9 years ago

I ran into an issue when bootstrapping a vagrant coreos cluster with paz. Specifically, when running the script install-vagrant.sh, etcd was not available in time.

As a hack, I added a 5 second sleep right before launchAndWaitForUnits which "fixed" the issue on my machine.

lukebond commented 9 years ago

@rosskukulinski sorry for delay in responding!

I'm currently unable to repro the issue you have, on Linux or OSX. Are you still seeing it?

If I understand you correctly, you're saying that the install script was trying to do something before Etcd within the Vagrant cluster was ready, hence adding the delay fixed it? If so we should look into a test that waits until Etcd is ready before it proceeds.

lukebond commented 9 years ago

Going to call this fixed because the move to Etcd2 has changed a lot of things in this area. Startup is much more stable now.