Incorrect Docker URL for RedHat

Bug #1952150 reported by Aaron Hicks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

When using Kolla-Ansible with RedHat it incorrectly uses a Docker repository URL based on the distribution name `redhat` when the Docker site used `rhel`.

https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/baremetal/defaults/main.yml#L13

This sets the base URL to: https://download.docker.com/linux/redhat
The correct base URL should be: https://download.docker.com/linux/rhel

This results in the error:

```
TASK [baremetal : Install docker rpm gpg key] ****************************************************************************************
fatal: [hpcwseed01.hpcf.nesi.org.nz]: FAILED! => {"changed": false, "msg": "failed to fetch key at https://download.docker.com/linux/redhat/gpg , error was: HTTP Error 404: Not Found"}
```

Revision history for this message
Aaron Hicks (aethylred) wrote :

Workaround is to specify the docker URL as a host/group/extra variable:

```
docker_yum_url: "https://download.docker.com/linux/rhel"

```

Revision history for this message
Aaron Hicks (aethylred) wrote :

In addition, the broken repo file with the incorrect URL needs to be deleted, as it may cause dnf/yum to fail.

Revision history for this message
Aaron Hicks (aethylred) wrote :

I think a better correct setting is:

```
docker_yum_url: "https://download.docker.com/linux/{{ 'centos' if ansible_facts.distribution | lower == 'redhat' else ansible_facts.distribution | lower }}"
```

However, this may not be suitable for release. Also, the podman and buildah packages have to be removed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.