Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move hack/travis/install-etcd.sh to hack/, and update etcd version to 2.0.12 #15336

Merged
merged 3 commits into from
Oct 15, 2015

Conversation

ixdy
Copy link
Member

@ixdy ixdy commented Oct 8, 2015

First part is a cleanup from #13951 (comment), since both Jenkins + Shippable are using this script (and not just Travis).

Second part is catching up our local testing to match what we really use in clusters as of June (ec1e308).

@kubernetes/goog-testing

@ixdy ixdy force-pushed the install-etcd branch 2 times, most recently from b45ab64 to 42838fd Compare October 8, 2015 23:12
@@ -35,11 +35,12 @@ RUN rm -rf /var/lib/apt/lists/
RUN apt-get -o Acquire::Check-Valid-Until=false update && apt-get install -y rsync

# Download and symlink etcd. We need this for our integration tests.
ENV ETCD_VERSION v2.0.12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important to keep this in sync with what we install in our default cluster builds. How are the two kept in sync?

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 8, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/S


ETCD_VERSION=${ETCD_VERSION:-v2.0.0}
ETCD_VERSION=${ETCD_VERSION:-v2.0.12}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another instance of this literal. I know it's going to be a bit messy to implement, but can we not specify it canonically somewhere?

@k8s-bot
Copy link

k8s-bot commented Oct 8, 2015

GCE e2e test build/test passed for commit 76e1f284fdae3c7ea5200ccb8ba65fdd0943bfa9.

@ghost
Copy link

ghost commented Oct 8, 2015

Some nits, which I'm happy to defer to a later PR if necessary. Other than those, LGTM.

@ghost ghost assigned ghost and unassigned zmerlynn Oct 8, 2015
@k8s-bot
Copy link

k8s-bot commented Oct 8, 2015

GCE e2e test build/test passed for commit b45ab643ed5f686bb65ba508eabaacaee6e5c859.

@k8s-bot
Copy link

k8s-bot commented Oct 8, 2015

GCE e2e test build/test passed for commit 42838fdf8c043cd554d7b4a6f2470743d2c8e8e1.

@ixdy
Copy link
Member Author

ixdy commented Oct 9, 2015

As you've noted, keeping all of these versions in sync right now is a complete mess.

Just looking for the "current" version (2.0.12), this is explicitly referenced in many files:

$ grep "2\.0\.12" -l -r *
build/build-image/Dockerfile
cluster/mesos/docker/docker-compose.yml
cluster/ubuntu/build.sh
cluster/images/etcd/Makefile
cluster/saltbase/salt/etcd/etcd.manifest
cluster/centos/config-build.sh
docs/getting-started-guides/scratch.md
docs/getting-started-guides/docker.md
docs/getting-started-guides/mesos.md
docs/getting-started-guides/ubuntu.md
docs/getting-started-guides/docker-multinode/master.md
docs/getting-started-guides/docker-multinode/master.sh
docs/devel/development.md
docs/admin/etcd.md
hack/install-etcd.sh
test/kubemark/start-kubemark-master.sh

It's unclear how many other scripts are specifying a different version.

The source of truth is in cluster/saltbase/salt/etcd/etcd.manifest:

    "image": "gcr.io/google_containers/etcd:2.0.12",

but besides parsing that file (and then downloading and extracting the binaries from that docker image) I'm not sure how we can easily combine all of these references. It'd be a good idea to fix this, but it seems like a harder problem.

@k8s-bot
Copy link

k8s-bot commented Oct 9, 2015

GCE e2e test build/test passed for commit 840a9158c2d9077e734645c7cc9f822b989772c7.

@k8s-bot
Copy link

k8s-bot commented Oct 9, 2015

GCE e2e test build/test passed for commit eeb745dc1e04dfb39d97dffe38cf8e8c01d44c55.

@karlkfi
Copy link
Contributor

karlkfi commented Oct 10, 2015

FWIW, there's another whole install-etcd.sh here: https://github.com/kubernetes/kubernetes/blob/master/cluster/mesos/docker/test/bin/install-etcd.sh

Ideally it'd use hack/install-etcd.sh, but being in the "hack" dir doesn't inspire confidence, and would require even more copying of files into a temp dir before doing a docker build.

@ixdy
Copy link
Member Author

ixdy commented Oct 12, 2015

@karlkfi yeah, I saw that one as well at some point, though it missed my recent grep. It specifies etcd version 2.0.11 - should I update it to 2.0.12 as well?

@k8s-bot
Copy link

k8s-bot commented Oct 12, 2015

GCE e2e test build/test passed for commit e5842c5dea98cd8b65cca0e8c0a177d7b15252a4.

@karlkfi
Copy link
Contributor

karlkfi commented Oct 13, 2015

Sure, go ahead, if you're changing all the rest.

@ixdy
Copy link
Member Author

ixdy commented Oct 13, 2015

Also updated cluster/mesos/docker/test/bin/install-etcd.sh.

@ixdy ixdy changed the title Move hack/travis/install-etcd.sh to hack/, and update etcd version Move hack/travis/install-etcd.sh to hack/, and update etcd version to 2.0.12 Oct 13, 2015
@k8s-bot
Copy link

k8s-bot commented Oct 13, 2015

GCE e2e test build/test passed for commit 1c5f252.

@ghost ghost added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 14, 2015
@ghost
Copy link

ghost commented Oct 14, 2015

LGTM

gmarek pushed a commit that referenced this pull request Oct 15, 2015
Move hack/travis/install-etcd.sh to hack/, and update etcd version to 2.0.12
@gmarek gmarek merged commit 8a5f748 into kubernetes:master Oct 15, 2015
@ixdy ixdy deleted the install-etcd branch December 1, 2015 01:22
xingzhou pushed a commit to xingzhou/kubernetes that referenced this pull request Dec 15, 2016
Move hack/travis/install-etcd.sh to hack/, and update etcd version to 2.0.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test-infra lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants