Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1656466

Summary: restraint-package install is not working properly with module
Product: [Retired] Restraint Reporter: Martin Styk <mastyk>
Component: generalAssignee: Martin Styk <mastyk>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.1.36CC: asavkov, bpeck, breilly, cbeer
Target Milestone: 0.1.37   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-07 14:56:45 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 Martin Styk 2018-12-05 15:15:41 UTC
Description of problem:
restraint-package install @module ends up with return code 1 instead of 0 even if the installation of a module was successful.

Version-Release number of selected component (if applicable):
0.1.36

How reproducible:


Steps to Reproduce:
1. Install RHEL8 with restraint
2. run command ``rstrnt-package install @python27``

Actual results:
The result contains ``no package provides @python27`` and RC=1.

Expected results:
No message ``no package provides @python27`` and RC=0

Additional info:

Comment 1 Martin Styk 2018-12-05 15:25:40 UTC
The problem seems to be with rpm -q --whatprovides $package. This will not work for a module.

Comment 2 Bill Peck 2018-12-05 17:38:13 UTC
This has caused problems with provides/aliases as well.  I think this logic is here to try and determine if it should try yum or go direct to brew/koji.

Comment 3 Bill Peck 2018-12-06 15:47:03 UTC
ignore my last comment, I was thinking of the pkginstall task in beaker which falls back to trying to install from koji/brew

Comment 4 Martin Styk 2018-12-07 09:29:31 UTC
Dnf is used for RHEL8+ instead of yum. RHEL8 is using internally dnf-3 anyway.

Comment 5 Martin Styk 2019-01-28 10:10:09 UTC
Restraint 0.1.37 has been released.