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

Update flannel version to 0.22.1 #8055

Closed
manuelbuil opened this issue Jul 27, 2023 · 1 comment
Closed

Update flannel version to 0.22.1 #8055

manuelbuil opened this issue Jul 27, 2023 · 1 comment
Assignees
Milestone

Comments

@manuelbuil
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Update flannel version to 0.22.1 which has been just released. It is part of the bug fix for #8020

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@endawkins
Copy link

Validated on branch master with commit 9702f92 / version 1.27

Environment Details

Infrastructure

  • Cloud
  • Hosted

Node(s) CPU architecture, OS, and Version:

Linux ip-172-31-10-226 5.15.0-1026-aws #30-Ubuntu SMP Wed Nov 23 14:15:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Cluster Configuration:

2 servers
1 agent

Config.yaml:

write-kubeconfig-mode: "0644"
tls-san:
  - <serverIP>
server: https://<serverIP>:6443
token: "<token>"
node-external-ip: "<node-external-ip>"
cluster-init: true
protect-kernel-defaults: true
selinux: true
secrets-encryption: true
kube-apiserver-arg:
  - 'audit-log-path=/var/lib/rancher/k3s/server/logs/audit.log'
  - 'audit-policy-file=/var/lib/rancher/k3s/server/audit.yaml'
  - 'audit-log-maxage=30'
  - 'audit-log-maxbackup=10'
  - 'audit-log-maxsize=100'
  - 'request-timeout=300s'
  - 'service-account-lookup=true'
  - 'enable-admission-plugins=NodeRestriction,PodSecurity,NamespaceLifecycle,ServiceAccount'
  - 'admission-control-config-file=/var/lib/rancher/k3s/server/cluster-level-pss.yaml'
kube-controller-manager-arg:
  - 'terminated-pod-gc-threshold=10'
  - 'use-service-account-credentials=true'
kubelet-arg:
  - 'streaming-connection-idle-timeout=5m'
  - 'make-iptables-util-chains=true'

Additional files

Testing Steps

Using Automation

  1. Using automation framework with the k3s.tfvars file configured with the correct commit ID
  2. Run the following command:
go test -timeout=45m -v -tags=versionbump  ./entrypoint/versionbump/...  -cmd "/var/lib/rancher/k3s/data/current/bin/cni, /var/lib/rancher/k3s/data/current/bin/flannel"  \
  -expectedValue "v1.3.0, v0.22.1" \
  -expectedValueUpgrade "v1.3.0, v0.22.1"  \ -channel testing

Validation Results:

  • k3s version used for validation:
k3s -v
k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
Network Checks:

Commit ID: 9702f92345feb447a35cbebe0ae22a9129e09776

NAME                    STATUS   ROLES                       AGE   VERSION                INTERNAL-IP     EXTERNAL-IP      OS-IMAGE             KERNEL-VERSION    CONTAINER-RUNTIME
node/ip-172-31-15-101   Ready    control-plane,etcd,master   45m   v1.27.4+k3s-9702f923   172.31.15.101   18.189.185.106   Ubuntu 22.04.1 LTS   5.15.0-1026-aws   containerd://1.7.3-k3s1
node/ip-172-31-9-127    Ready    control-plane,etcd,master   47m   v1.27.4+k3s-9702f923   172.31.9.127    18.189.182.60    Ubuntu 22.04.1 LTS   5.15.0-1026-aws   containerd://1.7.3-k3s1
node/ip-172-31-9-68     Ready    <none>                      44m   v1.27.4+k3s-9702f923   172.31.9.68     3.17.159.107     Ubuntu 22.04.1 LTS   5.15.0-1026-aws   containerd://1.7.3-k3s1

NAMESPACE        NAME                                         READY   STATUS      RESTARTS   AGE    IP          NODE               NOMINATED NODE   READINESS GATES
kube-system      pod/coredns-77ccd57875-d49xl                 1/1     Running     0          46m    10.42.0.4   ip-172-31-9-127    <none>           <none>
kube-system      pod/helm-install-traefik-crd-h49vg           0/1     Completed   0          46m    10.42.0.5   ip-172-31-9-127    <none>           <none>
kube-system      pod/helm-install-traefik-dt988               0/1     Completed   1          46m    10.42.0.6   ip-172-31-9-127    <none>           <none>
kube-system      pod/local-path-provisioner-957fdf8bc-rskr6   1/1     Running     0          46m    10.42.0.2   ip-172-31-9-127    <none>           <none>
kube-system      pod/metrics-server-648b5df564-v4fjf          1/1     Running     0          46m    10.42.0.3   ip-172-31-9-127    <none>           <none>
kube-system      pod/svclb-traefik-285c7a61-kks5x             2/2     Running     0          45m    10.42.1.2   ip-172-31-15-101   <none>           <none>
kube-system      pod/svclb-traefik-285c7a61-phx2q             2/2     Running     0          44m    10.42.2.2   ip-172-31-9-68     <none>           <none>
kube-system      pod/svclb-traefik-285c7a61-vnkwx             2/2     Running     0          46m    10.42.0.7   ip-172-31-9-127    <none>           <none>
kube-system      pod/traefik-64f55bb67d-qc6gp                 1/1     Running     0          46m    10.42.0.8   ip-172-31-9-127    <none>           <none>
test-clusterip   pod/test-clusterip-64d4dcfdd4-v5nj8          1/1     Running     0          32m    10.42.1.3   ip-172-31-15-101   <none>           <none>
test-clusterip   pod/test-clusterip-64d4dcfdd4-xnwp9          1/1     Running     0          32m    10.42.2.3   ip-172-31-9-68     <none>           <none>
test-daemonset   pod/test-daemonset-gt565                     1/1     Running     0          32s    10.42.2.5   ip-172-31-9-68     <none>           <none>
test-daemonset   pod/test-daemonset-mg9qk                     1/1     Running     0          32s    10.42.1.5   ip-172-31-15-101   <none>           <none>
test-daemonset   pod/test-daemonset-v2vpx                     1/1     Running     0          32s    10.42.0.9   ip-172-31-9-127    <none>           <none>
test-nodeport    pod/test-nodeport-5b846cdb6d-ctblg           1/1     Running     0          115s   10.42.2.4   ip-172-31-9-68     <none>           <none>
test-nodeport    pod/test-nodeport-5b846cdb6d-l8p8p           1/1     Running     0          115s   10.42.1.4   ip-172-31-15-101   <none>           <none>

CNI Plugin & Flannel Validation:

PASSED! VersionTemplate Upgrade: Start Up with no issues
•
---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 18.189.182.60
Command Executed: /var/lib/rancher/k3s/data/current/bin/cni
Execution Location: Node
Expected Value: v1.3.0
---------------------

---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 18.189.182.60
Command Executed:  /var/lib/rancher/k3s/data/current/bin/flannel
Execution Location: Node
Expected Value:  v0.22.1
---------------------

---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 3.17.159.107
Command Executed:  /var/lib/rancher/k3s/data/current/bin/flannel
Execution Location: Node
Expected Value:  v0.22.1
---------------------

---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 18.189.185.106
Command Executed:  /var/lib/rancher/k3s/data/current/bin/flannel
Execution Location: Node
Expected Value:  v0.22.1
---------------------

---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 3.17.159.107
Command Executed: /var/lib/rancher/k3s/data/current/bin/cni
Execution Location: Node
Expected Value: v1.3.0
---------------------

---------------------
Version Checked: k3s version v1.27.4+k3s-9702f923 (9702f923)
go version go1.20.6
IP Address: 18.189.185.106
Command Executed: /var/lib/rancher/k3s/data/current/bin/cni
Execution Location: Node
Expected Value: v1.3.0
---------------------

---------------------
Command:
 /var/lib/rancher/k3s/data/current/bin/flannel

---------------------
Result:
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
 v0.22.1
Matched with: 
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Command:
/var/lib/rancher/k3s/data/current/bin/cni

---------------------
Result:
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
v1.3.0
Matched with: 
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Command:
/var/lib/rancher/k3s/data/current/bin/cni

---------------------
Result:
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
v1.3.0
Matched with: 
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Command:
 /var/lib/rancher/k3s/data/current/bin/flannel

---------------------
Result:
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
 v0.22.1
Matched with: 
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Command:
 /var/lib/rancher/k3s/data/current/bin/flannel

---------------------
Result:
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
 v0.22.1
Matched with: 
CNI Plugin flannel version v0.22.1 (linux/amd64) commit HEAD built on 2023-08-07T21:04:51ZCNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Command:
/var/lib/rancher/k3s/data/current/bin/cni

---------------------
Result:
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

---------------------
Assertion:
v1.3.0
Matched with: 
CNI plugins plugin v1.3.0-k3s1CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

PASSED! VersionTemplate Upgrade: Test Bump version

Additional context / logs:

N/A

@github-project-automation github-project-automation bot moved this from Networking to Closed in K3s Backlog Aug 8, 2023
@github-project-automation github-project-automation bot moved this from To Test to Done Issue in K3s Development Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Archived in project
Development

No branches or pull requests

2 participants