Bug 1819566

Summary: Remove perl deps from powerpc-utils and split package - coreos requirement
Product: Red Hat Enterprise Linux 8 Reporter: mkumatag
Component: powerpc-utilsAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact: Eirik Fuller <efuller>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.1CC: bugproxy, dhorak, hannsj_uhl, lmcfadde, ovasik, rvr, tbowling, than, toneata
Target Milestone: rc   
Target Release: 8.3   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: 1.3.6-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1844058 (view as bug list) Environment:
Last Closed: 2020-11-04 01:43:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1776265, 1819712, 1844058, 1844060    
Attachments:
Description Flags
Spec file diffs to create powerpc-utils-perl-scripts subpackage none

Description mkumatag 2020-04-01 04:38:53 UTC
This issue is forked from https://bugzilla.redhat.com/show_bug.cgi?id=1814335

Description of problem:

Rightnow we have a strict dependency on the Perl package for ppc64-diag. But FCOS doesn't ship any perl right now, and it'd be preferable to keep it that way if possible (for example, FCOS doesn't ship python either right now). Do we really need Perl though to support hotplugged devices? Is there a more minimal set of packages that we can install that will do what we want? Can we tweak packaging to make the Perl-requiring bits a separate subpackage?

While addressing the above requirement, we encountered that ppc64-diag requires powerpc-util package which does depend on the Perl, so this bug is to address the Perl deps for the powerpc-utils package. Please refer to the bug mentioned in the first line for any additional information.

Comment 2 lmcfadde 2020-04-14 20:54:48 UTC
Any update/progress on removing the Perl deps for the powerpc-utils package?

Comment 3 IBM Bug Proxy 2020-04-14 22:00:47 UTC
Created attachment 1678816 [details]
Spec file diffs to create powerpc-utils-perl-scripts subpackage

Comment 4 Than Ngo 2020-04-15 07:31:00 UTC
(In reply to lmcfadde from comment #2)
> Any update/progress on removing the Perl deps for the powerpc-utils package?

we have 2 options:

#1 : the 1. option is to move drmgr into subpackage powerpc-utils-core and CoreOS should install powerpc-utils-core instead powerpc-utils.

#2 : create powerpc-utils-perl-scripts subpackage (comment 3)

Comment 5 Than Ngo 2020-04-22 15:11:37 UTC
it's fixed in 1.3.6-6

Comment 8 Eirik Fuller 2020-04-26 20:59:05 UTC
The RHEL-8.3.0-20200425.n.0 recipe in https://beaker.engineering.redhat.com/jobs/4222981 (https://beaker.engineering.redhat.com/recipes/8181652#task109516715) verifies the presence of the drmgr and rtas_errd commands even in the absence of the perl-interpreter package, with powerpc-utils-core-1.3.6-6.el8 and ppc64-diag-rtas-2.7.6-2.el8, as seen in the following output.

- eval drmgr=$(type -p drmgr) && rtas_errd=$(type -p rtas_errd) && rpm -qf $drmgr && rpm -qf $rtas_errd && dnf -qy --noautoremove remove perl-interpreter && rpm -qf $drmgr && rpm -qf $rtas_errd
powerpc-utils-core-1.3.6-6.el8.ppc64le
ppc64-diag-rtas-2.7.6-2.el8.ppc64le
powerpc-utils-core-1.3.6-6.el8.ppc64le
ppc64-diag-rtas-2.7.6-2.el8.ppc64le
- pass: the command returns 0.

In the RHEL-8.3.0-20200423.n.0 recipe (with powerpc-utils-1.3.6-6.el8 and ppc64-diag-2.7.6-1.el8) drmgr exists in the absence of perl-interpreter but rtas_errd does not exist, as seen in the following output.

- eval drmgr=$(type -p drmgr) && rtas_errd=$(type -p rtas_errd) && rpm -qf $drmgr && rpm -qf $rtas_errd && dnf -qy --noautoremove remove perl-interpreter && rpm -qf $drmgr && rpm -qf $rtas_errd
powerpc-utils-core-1.3.6-6.el8.ppc64le
ppc64-diag-2.7.6-1.el8.ppc64le
powerpc-utils-core-1.3.6-6.el8.ppc64le
- fail: unexpected error code 1.

The dependence of rtas_errd on perl-interpreter in this recipe is a result of RHEL-8.3.0-20200423.n.0 not having the fix for bug 1814335.

In the RHEL-8.3.0-20200422.n.1 recipe (with powerpc-utils-1.3.6-5.el8 and ppc64-diag-2.7.6-1.el8) removing the perl-interpreter package removes drmgr, as seen in the following output.

- eval drmgr=$(type -p drmgr) && rtas_errd=$(type -p rtas_errd) && rpm -qf $drmgr && rpm -qf $rtas_errd && dnf -qy --noautoremove remove perl-interpreter && rpm -qf $drmgr && rpm -qf $rtas_errd
powerpc-utils-1.3.6-5.el8.ppc64le
ppc64-diag-2.7.6-1.el8.ppc64le
- fail: unexpected error code 1.

powerpc-utils-core-1.3.6-6.el8 does not include the patch in attachment 1678816 [details], contrary to what the summary of this bug might suggest, but the fix in powerpc-utils-core-1.3.6-6.el8 does provide a way to satisfy the apparent goals of bug 1814335, with a suitable choice of packages in CoreOS.

I'll move this to VERIFIED under the assumption that having powerpc-utils depend on perl-interpreter does not contradict the goal of this bug; rather, smaller packages (powerpc-utils-core and ppc64-diag-rtas) provide selected binaries with no perl dependency.

Comment 9 Than Ngo 2020-06-05 18:51:55 UTC
Request the fix for 8.1 and 8.2 zstream

Comment 10 Than Ngo 2020-06-06 08:14:45 UTC
we do not fix this in 8.1 at all because that's EUS and coreos is going to move off EUS soon!

Comment 17 errata-xmlrpc 2020-11-04 01:43:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (powerpc-utils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4475

Comment 18 Red Hat Bugzilla 2023-09-14 05:54:55 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days