Commit a6b7d86
committed
fix(contrib/ec2): prepare etcd before starting etcd
coreos-cloudinit processes units as they are listed in the cloud-config
file, so even though `prepare-etcd-data-directory.service` asks to be
started before etcd with `Before=etcd.service`, etcd has already
been started by the time this unit is encountered.
This commit prepends the Docker volume and etcd data volme preparation
to the main unit list, so they are started before etcd/fleet.
TESTING: Provision an EC2 cluster. You should notice that
`/media/ephemeral/etcd` has `log` and `conf` files, as well as a
`snapshots` directory. The lack of a snapshots directory is what
resulted in a panic when etcd tried to write a snapshot to disk.1 parent 18cf1a9 commit a6b7d86
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
0 commit comments