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

Support for etcd migration #30500

Merged
merged 2 commits into from
Aug 19, 2016
Merged

Conversation

wojtek-t
Copy link
Member

@wojtek-t wojtek-t commented Aug 12, 2016

@wojtek-t wojtek-t added do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. release-note-none Denotes a PR that doesn't merit a release note. labels Aug 12, 2016
@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 12, 2016
@@ -27,7 +27,7 @@
"containers":[
{
"name": "etcd-container",
"image": "gcr.io/google_containers/etcd:3.0.3",
"image": "gcr.io/groovy-sentry-504/etcd:3.0.4",
Copy link
Member Author

Choose a reason for hiding this comment

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

@lavalamp - this is the result of calling "make push" on etcd images directory after changes from this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess that the way to proceed with this PR would be:

  • first it needs to be LGTMed
  • the from this PR I will build a new image and push to gcr
  • then we will merge this PR

Or am I missing something?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think that's the process.

@wojtek-t
Copy link
Member Author

@lavalamp - the third commit is not yet fully tested.

@wojtek-t
Copy link
Member Author

@lavalamp - the third commit is not yet fully tested.

To be clear - it's not yet tested on container VM.

Also, there are still some issues with the "migrate-if-needed.sh" script, but this will result in some more local changes, to the overall idea shouldn't change.

@wojtek-t
Copy link
Member Author

OK - I checked that ConvtainerVM also works (modulo some problems with the migrate-if-needed script that I will fix on Monday).

@wojtek-t
Copy link
Member Author

@lavalamp - actually, I think I fixed the problem with "migrate-if-needed" script too.

So this is basically ready for review.

@wojtek-t wojtek-t changed the title [WIP] Support for etcd migration Support for etcd migration Aug 12, 2016
@@ -36,7 +36,7 @@ KUBE_APISERVER_REQUEST_TIMEOUT=300
PREEMPTIBLE_NODE=${PREEMPTIBLE_NODE:-false}
PREEMPTIBLE_MASTER=${PREEMPTIBLE_MASTER:-false}

MASTER_OS_DISTRIBUTION=${KUBE_MASTER_OS_DISTRIBUTION:-${KUBE_OS_DISTRIBUTION:-gci}}
MASTER_OS_DISTRIBUTION=${KUBE_MASTER_OS_DISTRIBUTION:-${KUBE_OS_DISTRIBUTION:-debian}}
Copy link
Member

Choose a reason for hiding this comment

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

revert?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2016
@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 16, 2016
@wojtek-t wojtek-t force-pushed the etcd_migration branch 2 times, most recently from e30691c to f32be7d Compare August 16, 2016 13:21
@wojtek-t
Copy link
Member Author

@lavalamp - PTAL

  • GCE and GKE failures are because lack of image and they are expected (it works for me locally)
  • integration tests are failing due to "out of memory" which is unrelated problem and seems like infrastructural one

@lavalamp
Copy link
Member

lgtm, just nits.


Review status: 0 of 9 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed.


cluster/gce/gci/configure-helper.sh, line 546 [r4] (raw file):

  sed -i -e "s@{{ *hostname *}}@$host_name@g" "${temp_file}"
  sed -i -e "s@{{ *etcd_cluster *}}@$etcd_cluster@g" "${temp_file}"
  sed -i -e "s@{{ *storage_backend *}}@${STORAGE_BACKEND:-}@g" "${temp_file}"

To what file will this change apply? I can't find the thing that it will be running against in this PR.


cluster/images/etcd/Makefile, line 22 [r4] (raw file):

TAG?=3.0.4
ARCH?=amd64
REGISTRY?=gcr.io/groovy-sentry-504

revert?


cluster/saltbase/salt/etcd/etcd.manifest, line 30 [r1] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

Yeah I think that's the process.

revert this line :)

cluster/saltbase/salt/etcd/etcd.manifest, line 40 [r3] (raw file):

Previously, wojtek-t (Wojciech Tyczynski) wrote…

Moved parameters to env vars

I meant package the entire command up as a script. But this is at least better.

hack/test-update-storage-objects.sh, line 162 [r4] (raw file):

TARGET_STORAGE="etcd3" \
  DATA_DIRECTORY="${ETCD_DIR}" \
  ETCDCTL=$(which etcdctl) \

nit: tab/space


Comments from Reviewable

@wojtek-t
Copy link
Member Author

Review status: 0 of 9 files reviewed at latest revision, 8 unresolved discussions, some commit checks failed.


cluster/gce/gci/configure-helper.sh, line 546 [r4] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

To what file will this change apply? I can't find the thing that it will be running against in this PR.

All those sed`s here are modifying etcd.manifest file from salt (GCI doesn't work with pillars and is inventing its own templating language with sed`s - this is riduclous I know, but this is how it works).

cluster/images/etcd/Makefile, line 22 [r4] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

revert?

Done

cluster/saltbase/salt/etcd/etcd.manifest, line 30 [r1] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

revert this line :)

Done

cluster/saltbase/salt/etcd/etcd.manifest, line 40 [r3] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

I meant package the entire command up as a script. But this is at least better.

Ahh I see. But that's way more invasive change so I would prefer not do to it now.

hack/test-update-storage-objects.sh, line 162 [r4] (raw file):

Previously, lavalamp (Daniel Smith) wrote…

nit: tab/space

Done

Comments from Reviewable

@wojtek-t
Copy link
Member Author

@lavalamp - comments applied

There is one more thing we need to solve, which is "under what tag push the new image". It probably shouldn't be 3.0.4, but probably also not 3.0.5. Maybe 3.0.4.1? Or sth like that?

@wojtek-t wojtek-t force-pushed the etcd_migration branch 2 times, most recently from c2a9753 to 7a029dc Compare August 17, 2016 11:03
@lavalamp
Copy link
Member

I can see arguments for any of:

  • 3.1.0-beta.1
  • 3.0.5-beta.1
  • 3.0.4-migration.1

@wojtek-t
Copy link
Member Author

OK - so I pushed the image "3.0.4-migration.1" to gcr. But in head we are still leaving the main image. This is just to enable more tests.

@wojtek-t
Copy link
Member Author

Self-applying lgtm based on above comments.

@wojtek-t wojtek-t added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. labels Aug 18, 2016
@k8s-bot
Copy link

k8s-bot commented Aug 18, 2016

GCE e2e build/test passed for commit f3c3267.

@wojtek-t wojtek-t added this to the v1.4 milestone Aug 18, 2016
@wojtek-t wojtek-t added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Aug 19, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Aug 19, 2016

GCE e2e build/test passed for commit f3c3267.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 1e09eb7 into kubernetes:master Aug 19, 2016
@wojtek-t wojtek-t deleted the etcd_migration branch September 6, 2016 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants