Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
WIP - Working multi-snap cluster #77
Conversation
| @@ -1,5 +1,5 @@ | ||
| # This file is rendered by Juju, manual edits will not be persisted | ||
| -ETCD_DATA_DIR=/var/lib/etcd/default | ||
| +ETCD_DATA_DIR={{ etcd_data_dir }}/{{ unit_name }}.etcd |
chuckbutler
Feb 19, 2017
Collaborator
This now matches what the snap is doing. I'm not 100% positive we want to keep this nomenclature but I'm for keeping it in lockstep with the snap so it stays consistent.
| + else: | ||
| + subject = "peer" | ||
| + | ||
| + status_message = "{0} with {1} known {2}.".format(unit_health, peers, |
marcoceppi
Feb 20, 2017
Owner
Could we do this instead?
status_message = '{0} with {1} known peer{2}'.format(unit_health, peers, 's' if peers != 1 else '')
chuckbutler
Feb 20, 2017
Collaborator
We could, I don't know what it buys us other than collapsing four lines into one, but at the sake of readability. I don't feel strongly either way however.
| + else | ||
| + # Install from the resource location, and check for correct snap. | ||
| + MANUAL_SNAP=$(resource-get etcd) | ||
| + snap install ${ETCD_MANUAL_SNAP} --classic |
| + snap refresh etcd --channel=${CONFIGURED_CHANNEL} --classic | ||
| +else | ||
| + MANUAL_SNAP=$(resource-get etcd) | ||
| + snap refresh ${MANUAL_SNAP} |
chuckbutler
referenced this pull request
in juju-solutions/bundle-canonical-kubernetes
Feb 22, 2017
Closed
Migration to k8s v1.6 and etcd v3 #208
chuckbutler
added some commits
Feb 24, 2017
|
Closing for a formal PR |
chuckbutler
closed this
Mar 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chuckbutler commentedFeb 19, 2017
•
Edited 1 time
-
chuckbutler
Feb 21, 2017
DO NOT MERGE!
This is an open thread to track the progress and discuss the approach to the refactoring of the etcd layer to migrate from apt delivery => snaps.
This has implications on:
Initial deployment + upgrade code. Functional X node cluster. Does not survive leader termination.