Bug #29002
closedforeman-maintain should check for epel repo first
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.
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/316 added
Updated by Kavita Gaikwad about 4 years ago
- Related to Bug #29560: foreman-maintain's message about EPEL repository presence is misleading, when you're an idiot added
Updated by Kavita Gaikwad almost 4 years ago
- Related to Bug #29617: [RFE] EPEL repository check should be renamed to non-Red Hat repository check added
Updated by Kavita Gaikwad almost 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|fd989d3cefa1cd3abfea7e471508bb4f9dd28e22.