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

Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS #6327

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

Miouge1
Copy link
Contributor

@Miouge1 Miouge1 commented Jun 25, 2020

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
In etcd 3.4 ETCDCTL_API defaults to 3 instead of 2, therefore adding explicit ETCDCTL_API: 3 should help until we upgrade.

Using ETCDCTL_ENDPOINTS instead of --endpoints to make it more consistent

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 25, 2020
@Miouge1 Miouge1 changed the title Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS [WIP] Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS Jun 25, 2020
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 25, 2020
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 25, 2020
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 25, 2020
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 25, 2020
Copy link
Contributor

@qvicksilver qvicksilver left a comment

Choose a reason for hiding this comment

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

lgtm

@Miouge1 Miouge1 changed the title [WIP] Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS Jun 26, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 26, 2020
@floryut
Copy link
Member

floryut commented Jun 26, 2020

/lgtm

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

floryut commented Jun 26, 2020

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2020
register: member_add_result
until: member_add_result.rc == 0
retries: "{{ etcd_retries }}"
delay: "{{ retry_stagger | random + 3 }}"
environment:
ETCDCTL_ENDPOINTS: "{{ etcd_events_access_addresses }}"
Copy link
Member

Choose a reason for hiding this comment

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

Why didn't you set ETCDCTL_API here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed it, adding that in latest commit.

register: etcd_events_member_in_cluster
changed_when: false
check_mode: no
tags:
- facts
environment:
ETCDCTL_ENDPOINTS: "{{ etcd_events_access_addresses }}"
Copy link
Member

Choose a reason for hiding this comment

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

Same for ETCDCTL_API here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed it, adding that in latest commit.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Miouge1

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

@floryut
Copy link
Member

floryut commented Jun 30, 2020

/lgtm

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

LuckySB commented Jun 30, 2020

@Miouge1 i have two question

  1. where you set etcd_version to 3.4.x ?

  2. i have some trouble with cluster-health and etcdctl v3.4.9 (or 3.4.3):

command

ETCDCTL_API=2 ./etcdctl --ca-file ca.crt --cert-file server.crt --key-file server.key --endpoints https://127.0.0.1:2379 cluster-health

return

cluster may be unhealthy: failed to list members
Error:  unexpected status code 404

Can you check also ?

PS: i trigger manual ci job https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/617098515 to check with
etcd_kubeadm_enabled: true when etcd installed by kubeadm

@Miouge1
Copy link
Contributor Author

Miouge1 commented Jun 30, 2020

@LuckySB I do not update the etcd version in this PR. I'm trying to split the work in several steps to make things easier.

@floryut
Copy link
Member

floryut commented Jul 1, 2020

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2020
@k8s-ci-robot k8s-ci-robot merged commit 00fe3d5 into kubernetes-sigs:master Jul 1, 2020
erulabs added a commit to kubesail/kubespray that referenced this pull request Jul 1, 2020
* 'master' of https://github.com/kubernetes-sigs/kubespray:
  Patch Calico for V3.14.0 missing CR and CRD (kubernetes-sigs#6276)
  Explicitly set ETCDCTL_API and use ETCDCTL_ENDPOINTS (kubernetes-sigs#6327)
  Add additional metadata configuration options to external Openstack CCM (kubernetes-sigs#6338) (kubernetes-sigs#6339)
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants