RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1803841 - Failed "Specfile dist Usage Test" for subscription-manager-migration-data-2.0.50-1.el7
Summary: Failed "Specfile dist Usage Test" for subscription-manager-migration-data-2.0...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager-migration-data
Version: 7.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: 1744146
TreeView+ depends on / blocked
 
Reported: 2020-02-17 15:00 UTC by John Sefler
Modified: 2020-09-29 19:23 UTC (History)
6 users (show)

Fixed In Version: subscription-manager-migration-data-2.0.53-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:23:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:23:45 UTC

Description John Sefler 2020-02-17 15:00:56 UTC
Description of problem:
As part of the release steps for subscription-manager-migration-data, we execute the TPS suite of tests that are integrated with the errata tool.

The following is a failing tps-srpmtest that is likely caused by a change in the spec file...


=== Specfile dist Usage Test =====================
DIST CHECK: %{dist} found instead of %{?dist} in: subscription-manager-migration-data-2.0.50-1.el7.src.rpm.spec
  Release string was: 1%{dist}
TPSHINT: Release engineering policy is to use %{?dist}.  This is a bug in the package being tested, and should be fixed before release.
TPSRESULT: Specfile dist Usage Test Returning: FAIL



Version-Release number of selected component (if applicable):
subscription-manager-migration-data-2.0.50-1.el7

How reproducible:


Steps to Reproduce:
Run the TPS test suite from the errata tool for advisory...
https://errata.devel.redhat.com/tps/errata_results/40222

Comment 4 Chris Snyder 2020-02-17 15:43:27 UTC
The workaround for this issue is to create a dist macro definition (as the only reason this would be an issue is if your system is missing one).

To do this create a file /etc/rpm/macros.dist_custom with the following contents (for RHEL 7, less the triple quotes):
"""
# dist macros.

%rhel 7
%dist .el7
%el7 1
"""

Comment 11 John Sefler 2020-04-13 18:31:00 UTC
Verifying version...
[root@hpe-dl380pgen8-02-vm-4 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.9 Beta (Maipo)
[root@hpe-dl380pgen8-02-vm-4 ~]# rpm -q subscription-manager-migration-data
subscription-manager-migration-data-2.0.53-1.el7.noarch
[root@hpe-dl380pgen8-02-vm-4 ~]# rpm -q subscription-manager-migration-data --changelog | grep 1803841
- 1803841: Correct spec release value syntax (wpoteat)
- 1803841: Correct spec release value syntax (wpoteat)


The original failing TPS test suite from comment 0 is currently passing in the errata tool for the RHEL-7.9.0 advisory...
https://errata.devel.redhat.com/tps/errata_results/43925

For each row of variant/arch, open the TPS results and you will find Passing results for tps-srpmtest / Specfile dist Usage Test...

=== Specfile dist Usage Test =====================
begin at 04/06/2020 18:33:41 on x86-64-7c-v1.ss.eng.bos.redhat.com
end test at Mon Apr  6 18:33:41 EDT 2020 on x86-64-7c-v1.ss.eng.bos.redhat.com
TPSRESULT: Specfile dist Usage Test Returning: PASS

moving to VERIFIED

Comment 13 errata-xmlrpc 2020-09-29 19:23:08 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 (subscription-manager bug fix 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:3866


Note You need to log in before you can comment on or make changes to this bug.