Project

General

Profile

Actions

Bug #43758

open

"Cannot find a valid baseurl for repo: epel" on RHEL8.1 install

Added by Brad Hubbard over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

FAILED! => {"changed": true, "cmd": "rm -rf /var/cache/yum/*; yum clean all; yum makecache", "delta": "0:00:02.812968", "end": "2020-01
-22 22:11:21.427976", "msg": "non-zero return code", "rc": 1, "start": "2020-01-22 22:11:18.615008", "stderr": "Cannot find a valid baseurl for repo: epel\nError: Cannot find a valid baseurl for repo: epel", "stderr_lines": ["Cannot find
 a valid baseurl for repo: epel", "Error: Cannot find a valid baseurl for repo: epel"], "stdout": "Updating Subscription Management repositories.\n82 files removed\nUpdating Subscription Management repositories.", "stdout_lines": ["Updat
ing Subscription Management repositories.", "82 files removed", "Updating Subscription Management repositories."]}
Actions #1

Updated by Brad Hubbard over 4 years ago

This is happening here, https://github.com/ceph/ceph-cm-ansible/blob/master/roles/common/tasks/epel.yml#L30-L47

The behaviour in 8.1 changed so that the makecache command actually fails rather than just generates a warning.

8.0 behaviour.

[ubuntu@smithi080 ~]$ yum makecache
Not root, Subscription Management repositories not updated
Cannot find a valid baseurl for repo: epel, ignoring this repo.
Metadata cache created.
[ubuntu@smithi080 ~]$ echo $?
0

8.1 behaviour.

[ubuntu@smithi080 ~]$ yum makecache
Not root, Subscription Management repositories not updated
Cannot find a valid baseurl for repo: epel
Error: Cannot find a valid baseurl for repo: epel
[ubuntu@smithi080 ~]$ echo $?
1
Actions

Also available in: Atom PDF