Project

General

Profile

Actions

action #114457

closed

Run kubectl tests on SLES

Added by ph03nix almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2022-07-21
Due date:
% Done:

0%

Estimated time:

Description

After implementing the kubectl test in https://progress.opensuse.org/issues/112457 for Tumbleweed, this ticket is about implementing the same test run on all supported SLES versions.

First step is to determine, where kubectl is supported and then schedule a new test run on those version.


Related issues 1 (0 open1 closed)

Related to Containers - action #112457: [New test] Test coverage for kubernetes client (kubectl)Resolvedph03nix2022-06-15

Actions
Actions #1

Updated by ph03nix almost 2 years ago

  • Related to action #112457: [New test] Test coverage for kubernetes client (kubectl) added
Actions #2

Updated by ph03nix almost 2 years ago

I'd like to work on this issue after my vacation, unless it becomes urgent and someone else takes it.

Actions #3

Updated by jlausuch almost 2 years ago

ph03nix wrote:

First step is to determine, where kubectl is supported and then schedule a new test run on those version.

This is well described in the original ticket: https://progress.opensuse.org/issues/112457
15-SP1 and beyond.

Actions #4

Updated by pdostal almost 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to pdostal
Actions #7

Updated by jlausuch almost 2 years ago

@pdostal @ph03nix do you know why the test started to fail on SLES? https://openqa.suse.de/tests/9411098#step/kubectl/57

Actions #8

Updated by jlausuch almost 2 years ago

Actions #9

Updated by ph03nix almost 2 years ago

jlausuch wrote:

@pdostal @ph03nix do you know why the test started to fail on SLES? https://openqa.suse.de/tests/9411098#step/kubectl/57

Works on Tumbleweed:

curl -sfL https://get.k3s.io | sh -s - --disable=metrics-server
[INFO]  Finding release for channel stable
[INFO]  Using v1.24.4+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.24.4+k3s1/sha256sum-amd64.txt
[INFO]  Downloading binary https://github.com/k3s-io/k3s/releases/download/v1.24.4+k3s1/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Skipping installation of SELinux RPM
[INFO]  Creating /usr/local/bin/kubectl symlink to k3s
[INFO]  Creating /usr/local/bin/crictl symlink to k3s
[INFO]  Creating /usr/local/bin/ctr symlink to k3s
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s

Works also on SLES15-SP4:

sles15-sp4:~ # curl -sfL https://get.k3s.io | sh -s - --disable=metrics-server
[INFO]  Finding release for channel stable
[INFO]  Using v1.24.4+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.24.4+k3s1/sha256sum-amd64.txt
[INFO]  Downloading binary https://github.com/k3s-io/k3s/releases/download/v1.24.4+k3s1/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Skipping installation of SELinux RPM
[INFO]  Creating /usr/local/bin/kubectl symlink to k3s
[INFO]  Creating /usr/local/bin/crictl symlink to k3s
[INFO]  Creating /usr/local/bin/ctr symlink to k3s
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s

Transient issue that maybe got fixed in the meantime?

Actions #10

Updated by jlausuch almost 2 years ago

ph03nix wrote:

jlausuch wrote:

@pdostal @ph03nix do you know why the test started to fail on SLES? https://openqa.suse.de/tests/9411098#step/kubectl/57

Transient issue that maybe got fixed in the meantime?

I hope. There was another failure today in a different place https://openqa.suse.de/tests/9414591#step/kubectl/138 , but the restart is green. Let's see how it behaves in the next days.

Actions #11

Updated by pdostal almost 2 years ago

I just merged github.com/os-autoinst/os-autoinst-distri-opensuse!15429 so let's wait for tomorrow's build to verify.

Actions #12

Updated by pdostal almost 2 years ago

@pdostal @ph03nix do you know why the test started to fail on SLES? https://openqa.suse.de/tests/9411098#step/kubectl/57
Because of k3s-io/k3s!6052.

Actions #13

Updated by pdostal almost 2 years ago

  • Status changed from In Progress to Resolved

9427689 kubectl_tests@aarch64-virtio https://openqa.suse.de/tests/9427689 passed
9427690 kubectl_tests@aarch64-virtio https://openqa.suse.de/tests/9427690 passed
9427703 kubectl_tests@aarch64-virtio https://openqa.suse.de/tests/9427703 passed

I restarted today's aggregates and they all passed so resolving the ticket.

Actions #14

Updated by dimstar almost 2 years ago

pdostal wrote:

I just merged [github.com/os-autoinst/os-autoinst-distri-opensuse!15429] so let's wait for tomorrow's build to verify.

[github.com/os-autoinst/os-autoinst-distri-opensuse!15429]: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15429

Restuled in a fallout on helm_k3S - filed as https://progress.opensuse.org/issues/116161

Actions

Also available in: Atom PDF