Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1540433

Summary: wsmancli.spec uses `%{dist}` syntax (vs. rel-eng policy)
Product: Red Hat Enterprise Linux 7 Reporter: Alois Mahdal <amahdal>
Component: wsmancliAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Maryna Nalbandian <mnalband>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: djez, smoroney, vcrhonek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: wsmancli-2.6.0-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 11:26:43 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:

Description Alois Mahdal 2018-01-31 04:33:37 UTC
Description of problem
======================

wsmancli.spec uses `%{dist}`, which according to TPS test, is against
release engineering policy, one should use `%{?dist}`.

Test output:

    begin at 01/29/2018 16:01:41 on sheep-21.lab.eng.brq.redhat.com
    DIST CHECK: %{dist} found instead of %{?dist} in: wsmancli-2.6.0-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.
     end test at Mon Jan 29 16:01:41 CET 2018 on sheep-21.lab.eng.brq.redhat.com



Version-Release number of selected component
============================================

wsmancli-2.6.0-1.el7


How reproducible
================

Always


Steps to Reproduce
==================

Run TPS tests (via EWA or via TPS tab in Errata Tool).


Actual results
==============

TPS test fails in 'srpmtest' phase,  DIST sub-test, as above.


Expected results
================

TPS fails at later point (or passes, then congratulations!)


Additional info
===============

This is not a regression from the recent rebase; the only distgit commit in 7.5 really just resets the Release number from 4 to 1.  The reason it was not found earlier seems to be that TPS was not ran at all (wsmancli was released to 7.0 w/o advisory).

(I'm not sure how severe this is, but I'm filing it, if only for reference.)

Comment 2 Vitezslav Crhonek 2018-01-31 08:58:53 UTC
(In reply to Alois Mahdal from comment #0)
> Description of problem
> ======================
> 
> wsmancli.spec uses `%{dist}`, which according to TPS test, is against
> release engineering policy, one should use `%{?dist}`.
> 

...

> 
> Additional info
> ===============
> 
> This is not a regression from the recent rebase; the only distgit commit in
> 7.5 really just resets the Release number from 4 to 1.  The reason it was
> not found earlier seems to be that TPS was not ran at all (wsmancli was
> released to 7.0 w/o advisory).
> 
> (I'm not sure how severe this is, but I'm filing it, if only for reference.)

This was pulled into RHEL 7 from Fedora, where it was overlooked for ages (I noticed and fixed it on Wed Oct 18 2017 in Rawhide).

It's not severe and builds are named correctly. Definitely no exception/blocker, but we can fix it in future if there is any update of wsmancli due more serious issues.

Comment 3 Alois Mahdal 2018-02-27 20:20:24 UTC
+1 for qa_ack:

As mentioned in comment 0, this is easy to reproduce (in fact, given normal workflow, it's hard not to reproduce).

Comment 8 errata-xmlrpc 2018-10-30 11:26:43 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, 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-2018:3233