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 install docker by "rancher/install-docker" on Rocky Linux/OpenSUSE/RHEL/SLES #34615

Closed
rishabhmsra opened this issue Sep 2, 2021 · 11 comments
Assignees
Labels
feature/node-drivers release-note Note this issue in the milestone's release notes team/hostbusters The team that is responsible for provisioning/managing downstream clusters + K8s version support team/infracloud
Milestone

Comments

@rishabhmsra
Copy link
Contributor

rishabhmsra commented Sep 2, 2021

While testing the docker installtion script on Rocky Linux-8.4, OpenSUSE-15SP3, SLES-15SP3 and RHEL-8.4 as per the support matrix of Rancher 2.6.0 it's failing.

What kind of request is this (question/bug/enhancement/feature request):
bug

Steps to reproduce:

  1. Create a Rocky Linux-8.4 / OpenSUSE-15sp3/RHEL8.4/SLES15SP3 VM
  2. Run "curl https://raw.githubusercontent.com/rayandas/install-docker/feature/20.10.8/dist/20.10.8.sh | sh". This is the docker script with support of docker 20.10.8 installation and it's NOT merged yet.

Result:

  1. On OpenSUSE-15SP3
cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.3"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
...
# Executing docker install script, commit: 0e685c6ac0bddd7b2ba7bcaaeb519746ad249a29

ERROR: Unsupported distribution 'opensuse-leap'
  1. On Rocky Linux8.4
cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.4 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel fedora"
...
# Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737

ERROR: Unsupported distribution 'rocky'
  1. On SLES-15-SP3
cat /etc/os-release 
NAME="SLES"
VERSION="15-SP3 PublicRC"
VERSION_ID="15.3"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP3 (PublicRC)"
ID="sles"
ID_LIKE="suse"
...
# Executing docker install script, commit: 0e685c6ac0bddd7b2ba7bcaaeb519746ad249a29
Packages for SLES are currently only available for s390x
  1. On RHEL 8.4
cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
...
# Executing docker install script, commit: 0e685c6ac0bddd7b2ba7bcaaeb519746ad249a29
Packages for RHEL are currently only available for s390x.
@pennyscissors pennyscissors added this to the v2.6.1 milestone Sep 2, 2021
@snasovich
Copy link
Collaborator

@deniseschannon , does it need to be in v2.6.1 (I saw your conversation with @cloudnautique and I don't see a conclusion there).

@deniseschannon
Copy link

Let's use this issue to track the work with trying to update install docker so that if there is no package available when running 20.10.sh, it checks from the latest 20.10.x version to the oldest to see/try to find a version that will install.

@rayandas
Copy link
Contributor

Fix: rancher/install-docker#83

@deniseschannon deniseschannon added feature/node-drivers team/hostbusters The team that is responsible for provisioning/managing downstream clusters + K8s version support labels Nov 23, 2021
@deniseschannon deniseschannon modified the milestones: v2.6.4, v2.6.4 - Split by Teams Nov 23, 2021
@rayandas
Copy link
Contributor

Hello @jonathon2nd we're introducing Rocky Linux support from >=20.10.8 Docker versions.
The PR is up rancher/install-docker#91

@rayandas
Copy link
Contributor

rayandas commented Mar 3, 2022

Validation steps:

Create AWS infrastructure provider with 3 nodes, 1 role each.

Create DO infrastructure provider with 3 nodes, 1 role each.

Create a custom cluster, 1 node all roles.

Note: OpenSUSE support is not there as there's no support for this from upstream.

@rishabhmsra
Copy link
Contributor Author

rishabhmsra commented Mar 3, 2022

Validated this on v2.6-head(39befda).

The docker installation script is failing on CentOS 8.3, while provisioning ec2 node driver, 1.22.6-rancher1-2 k8s cluster (single node)

Rancher server logs :

2022/03/03 13:42:17 [INFO] [node-controller-rancher-machine] (rishabh-centos1) Settings tags for instance
2022/03/03 13:42:20 [INFO] [node-controller-rancher-machine] Waiting for machine to be running, this may take a few minutes...
2022/03/03 13:42:24 [INFO] [node-controller-rancher-machine] Detecting operating system of created instance...
2022/03/03 13:42:24 [INFO] [node-controller-rancher-machine] Waiting for SSH to be available...
2022/03/03 13:43:23 [INFO] [node-controller-rancher-machine] Detecting the provisioner...
2022/03/03 13:43:27 [INFO] [node-controller-rancher-machine] Provisioning with centos...
2022/03/03 13:43:55 [INFO] [node-controller-rancher-machine] The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
2022/03/03 13:43:55 [INFO] [node-controller-rancher-machine] 
2022/03/03 13:43:55 [INFO] Generating and uploading node config rishabh-centos1
2022/03/03 13:43:55 [ERROR] error syncing 'c-nqrn2/m-5qxmb': handler node-controller: Error creating machine: RHEL ssh command error: command: sudo -E yum install -y curl erCentOS Linux 8 - AppStream                      128  B/s |  38  B     00:00    , requeuing     --:-- ETA

Note : I'm getting the same error when i tried to provision the cluster using released version of script as well.

@vivek-shilimkar
Copy link
Member

Validated the latest docker install script for RHEL on v2.6-head(39befda).

Docker install script fails on RHEL 8.4 with following error.
ERROR] error syncing 'c-vxp4z/m-hkskr': handler node-controller: Error creating machine: Error installing Docker: , requeuing

@rishabhmsra
Copy link
Contributor Author

rishabhmsra commented Mar 11, 2022

Validated this on rancher v2.6-head(bab14a3)

Provisioned node driver clusters using docker versions 20.10.7, 20.10.8, 20.10.9, 20.10.10, 20.10.11 on below OSes :

  • Ubuntu : Clusters provisioned successfully using all the docker versions.
  • RHEL : Cluster provisioned successfully using 20.10.7 (version >= 20.10.8 are not supported)
  • Rocky : Clusters provisioned successfully using all the docker versions >= 20.10.8.

Custom clusters :

  • Ubuntu : Clusters provisioned successfully using all the docker versions.
  • RHEL : Cluster provisioned successfully using 20.10.7 (version >= 20.10.8 are not supported)
  • Rocky : Clusters provisioned successfully using all the docker versions >= 20.10.8.
  • CentOS : Clusters provisioned successfully using all the docker versions.

@rayandas on SLES 15-sp3, docker 20.10.9-ce was pre-installed and on running the script I'm getting below errors:

  • using release version of script :
curl https://releases.rancher.com/install-docker/20.10.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17683  100 17683    0     0  62045      0 --:--:-- --:--:-- --:--:-- 62045
# Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20

ERROR: Unsupported distribution 'sles'
  • using script with latest changes :
curl https://raw.githubusercontent.com/rancher/install-docker/master/dist/20.10.10.sh|sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21946  100 21946    0     0   159k      0 --:--:-- --:--:-- --:--:--  159k
# Executing docker install script, commit: 93d2499759296ac1f9c510605fef85052a2c32be
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
Packages for SLES are currently only available for s390x

@rayandas
Copy link
Contributor

The SLES support came from upstream (from >=20.10.8), we didn't add anything. SLES-15-sp3 isn't s390x so that's why this error is coming. It's same as RHEL when we try to install docker >=20.10.8 then it'll throw the same error as Packages for RHEL are currently only available for s390x.
Also Docker comes pre installed on all the SLES OSes, I don't thing this will be a problem.
/cc: @kinarashah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/node-drivers release-note Note this issue in the milestone's release notes team/hostbusters The team that is responsible for provisioning/managing downstream clusters + K8s version support team/infracloud
Projects
None yet
Development

No branches or pull requests