Bug 1945041

Summary: rpm-mpi-hooks: Parsing available modules fails in case of set default version
Product: [Fedora] Fedora Reporter: Peter Georg <peter.georg>
Component: rpm-mpi-hooksAssignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-mpi-hooks-8-1.fc34 rpm-mpi-hooks-8-1.fc32 rpm-mpi-hooks-8-1.fc33 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-05 00:17:15 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:
Attachments:
Description Flags
Possible patch removing "(default)" from module name none

Description Peter Georg 2021-03-31 09:42:58 UTC
Created attachment 1768013 [details]
Possible patch removing "(default)" from module name

Description of problem:
rpm-mpi-hooks checks for all available mpi modules and loads these to retrieve some environment variables. Hower the current logic fails if a module version in mpi/ is marked as default.


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


How reproducible:
Always.

Steps to Reproduce:
1. Set a module in mpi/ as default
2. Run any command using rpm.prov or rpm.req

Actual results:
Error: syntax error near unexpected token `('


Expected results:
No errors.

Additional info:
Possible patch attached.

Comment 1 Fedora Update System 2021-03-31 12:13:46 UTC
FEDORA-2021-d060db8813 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d060db8813

Comment 2 Fedora Update System 2021-03-31 12:13:46 UTC
FEDORA-2021-e685209fbc has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e685209fbc

Comment 3 Fedora Update System 2021-04-01 02:04:19 UTC
FEDORA-2021-e685209fbc has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e685209fbc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e685209fbc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-04-01 02:35:53 UTC
FEDORA-2021-d060db8813 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d060db8813`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d060db8813

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-04-01 02:36:52 UTC
FEDORA-2021-8f5d163f67 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8f5d163f67`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8f5d163f67

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-04-05 00:17:15 UTC
FEDORA-2021-e685209fbc has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2021-04-08 20:42:40 UTC
FEDORA-2021-8f5d163f67 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2021-04-08 20:56:59 UTC
FEDORA-2021-d060db8813 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.