Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Etcd snapshot dep. failed do download because it moved folders #152

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

xistoso
Copy link
Contributor

@xistoso xistoso commented Feb 10, 2020

Fixes #191 snapshot dependency changed to clientv3

In de following commit etcd moved files to clientv3 folder. So snapshot dependency should be this one.

Thanks for @neolit123 for pointing out the right path on comment

Created a new cluster successfuly with a snapshot of a running kubernetes

imagem

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 10, 2020
@k8s-ci-robot
Copy link
Contributor

Welcome @xistoso!

It looks like this is your first PR to kubernetes-sigs/etcdadm 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/etcdadm has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

Hi @xistoso. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 10, 2020
@neolit123
Copy link
Contributor

neolit123 commented Feb 10, 2020

thanks @xistoso

cla/linuxfoundation — commit missing GitHub user

please note that this commit e228b5b

needs to be authored by people who have signed the CLA.

you also have the option to refactor the commit to be authored by a single github user that have signed the CLA and give credit to other people in the commit message.

@xistoso
Copy link
Contributor Author

xistoso commented Feb 10, 2020

Yeah @neolit123 i noticed that. I don't khow how to remove the root authoring. I updated the commit locally and force pushed. But it got 2 authors now.

@xistoso
Copy link
Contributor Author

xistoso commented Feb 10, 2020

I signed it

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 10, 2020
@neolit123
Copy link
Contributor

cla/linuxfoundation — xistoso authorized

seems good.

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 10, 2020
@neolit123
Copy link
Contributor

/assign @dlipovetsky

@dlipovetsky
Copy link
Contributor

dlipovetsky commented Feb 11, 2020

@xistoso Thanks for reporting this issue and filing the PR.

@neolit123 Thanks for reviewing. Do you think this the right fix? I see that go get -u sigs.k8s.io/etcdadm pulls the latest minor version of etcd (v3.4.x as of now). If an etcd minor versions can move package that etcdadm depends on, should etcdadm pin a specific minor version of etcd?

@neolit123
Copy link
Contributor

neolit123 commented Feb 11, 2020

@xistoso
please see the minor gofmt error:

https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_etcdadm/152/pull-etcdadm-verify/1227017063466274820

 
 	"github.com/coreos/etcd/clientv3"
+	"github.com/coreos/etcd/clientv3/snapshot"
 	"github.com/coreos/etcd/etcdserver/etcdserverpb"
 	"github.com/coreos/etcd/pkg/transport"
-	"github.com/coreos/etcd/clientv3/snapshot"

@dlipovetsky

should etcdadm pin a specific minor version of etcd?

the following repository technically no longer exists:

	github.com/coreos/etcd v3.3.13+incompatible

and it now redirects to:
https://github.com/etcd-io/etcd

k/k is pinning using a SHA pointing at go.etcd.io/etcd:
https://github.com/kubernetes/kubernetes/blob/master/go.mod#L487
due to:
kubernetes/kubernetes#87613 (comment)
and etcdadm should do the same IMO.

@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 12, 2020
@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Feb 12, 2020
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Feb 12, 2020
@neolit123
Copy link
Contributor

@xistoso just try to fix the https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_etcdadm/152/pull-etcdadm-verify/1227601105404301313 error.
we can work on the etcd location switch later.

@neolit123
Copy link
Contributor

also please keep the commits squashed to 1 (using e.g. git push -f)

@dlipovetsky
Copy link
Contributor

k/k is pinning using a SHA pointing at go.etcd.io/etcd:
https://github.com/kubernetes/kubernetes/blob/master/go.mod#L487
due to:
kubernetes/kubernetes#87613 (comment)
and etcdadm should do the same IMO.

Agreed. Thanks for setting me straight 😃

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 12, 2020
@neolit123
Copy link
Contributor

this LGTM. we can change the import location in a separate PR if someone wants to take this.

@dlipovetsky
Copy link
Contributor

Thanks @xistoso for the PR and @neolit123 for the review.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 26, 2020
@dlipovetsky
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dlipovetsky, xistoso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 26, 2020
@k8s-ci-robot k8s-ci-robot merged commit 6938f5f into kubernetes-retired:master Feb 26, 2020
xistoso added a commit to xistoso/etcdadm that referenced this pull request Mar 19, 2020
justinsb pushed a commit to justinsb/etcdadm that referenced this pull request Aug 28, 2020
Etcd snapshot dep. failed do download because it moved folders
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

4 participants