Project

General

Profile

Bug #29002

foreman-maintain should check for epel repo first

Added by Kavita Gaikwad about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1733287

Description of problem:

Procedures::Packages::Install should be after epel repo check

If you have epel repo enabled and run foreman-maintain its possible it will fail when it tries to get packages for the speed test.

Version-Release number of selected component (if applicable):

[root@dell-r330-12 ~]# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.4.5-1.el7sat.noarch

How reproducible:
depends on packages versions for libpmem at the time

Steps to Reproduce:
1. enable epel repo (yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm)
2. foreman-maintain upgrade run --target-version 6.6.z --whitelist="disk-performance,repositories-validate,repositories-setup"
3.

Actual results:

~]# foreman-maintain upgrade run --target-version 6.6.z
Running preparation steps required to run the next scenarios ================================================================================
Procedures::Packages::Install: Error: Package: libpmem-devel-1.1-1.el7.x86_64 (epel)
Requires: libpmem = 1.1-1.el7
Available: libpmem-1.1-1.el7.x86_64 (epel)
libpmem = 1.1-1.el7
Available: libpmem-1.1-4.el7.x86_64 (rhel-7-server-rpms)
libpmem = 1.1-4.el7
Available: libpmem-1.2.1-4.el7.x86_64 (rhel-7-server-rpms)
libpmem = 1.2.1-4.el7
Available: libpmem-1.3-3.el7.x86_64 (rhel-7-server-rpms)
libpmem = 1.3-3.el7
Installing: libpmem-1.4-3.el7.x86_64 (rhel-7-server-rpms)
libpmem = 1.4-3.el7

Expected results:

Check if EPEL repository enabled on system: | Checking for presence of EPEL repository

Additional info:

foreman-maintain should not attempt to install packages for speed check if you use --whitelist="disk-performance" command option.


Related issues

Related to Foreman Maintain - Bug #29560: foreman-maintain's message about EPEL repository presence is misleading, when you're an idiotClosed
Related to Foreman Maintain - Bug #29617: [RFE] EPEL repository check should be renamed to non-Red Hat repository checkClosed

Associated revisions

Revision fd989d3c (diff)
Added by Kavita Gaikwad 11 months ago

Fixes #29002 - epel check before package install preparation step

Revision f441fa7e (diff)
Added by Kavita Gaikwad 11 months ago

Refs #29002 - add EPEL repository check in case of downstream

History

#1 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/316 added

#2 Updated by Kavita Gaikwad 12 months ago

  • Related to Bug #29560: foreman-maintain's message about EPEL repository presence is misleading, when you're an idiot added

#3 Updated by Kavita Gaikwad 12 months ago

  • Related to Bug #29617: [RFE] EPEL repository check should be renamed to non-Red Hat repository check added

#4 Updated by Kavita Gaikwad 11 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF