Bug 1743569

Summary: missing stestr only stestr-3 available
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: python-stestrAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: ltoscano
Target Milestone: betaKeywords: Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-stestr-2.3.1-5.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 14:41:56 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 Attila Fazekas 2019-08-20 08:50:06 UTC
Description of problem:
/bin/stestr-3 was installed , but no sign for the version-less version 'stestr'.

py2 does not exists, so there is no reason to not have
unconditionally an stestr in the path pointing to the python3 version. 

Version-Release number of selected component (if applicable):
python3-stestr-2.1.0-3.el8ost.noarch


$ stestr run minim
bash: stestr: command not found


Additional info:

Make sure  the /usr/bin/python point to python3 before the stestr usage.

The scripts called by stestr RIGTFULLY expects an existing /usr/bin/python .
The called scripts expected to work with all python >=2.7 .

https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Languages/LSB-Languages/pylocation.html


$ stestr-3 run minim
/bin/sh: python: command not found

$ alternatives --set  python /usr/bin/python3
$ stestr-3 run minim # working ..

# not working, but expected to be working:
$ stestr run minim

Comment 6 Martin Kopec 2019-10-24 12:12:48 UTC
The issue is fixed in the 'Fixed in version'.

[stack@undercloud-0 ~]$ rpm -qa | grep stestr
python3-stestr-2.3.1-5.el8ost.noarch
[stack@undercloud-0 ~]$ stestr --version
stestr 2.3.1
[stack@undercloud-0 ~]$ stestr-3 --version
stestr-3 2.3.1

Comment 9 Martin Kopec 2019-12-09 15:07:26 UTC
The mentioned issues are fixed in python-stestr-2.3.1-5.el8ost package, moving to VERIFIED.

Comment 11 errata-xmlrpc 2020-02-06 14:41:56 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/RHEA-2020:0283