Bug 1462373
| Summary: | module load fails with "module unknown" error when running under mock --new-chroot | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dominik 'Rathann' Mierzejewski <dominik> |
| Component: | mock | Assignee: | Clark Williams <williams> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jdisnard, mebrown, msimacek, msuchy, orion, praiskup, williams |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | mock-1.4.2-1.fc26 mock-1.4.2-1.fc25 mock-1.4.2-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-06-25 16:19:46 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: | |||
This is due to mock no longer starting a login shell. Apparently fixed in upstream mock git. mock-1.4.2-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60 mock-1.4.2-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5 mock-1.4.2-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-65be829503 mock-1.4.2-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-65be829503 mock-1.4.2-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-21b345dd60 mock-1.4.2-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3d88d9f8b5 mock-1.4.2-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. mock-1.4.2-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. mock-1.4.2-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: module load fails with an error when run inside mock --new-chroot. Version-Release number of selected component (if applicable): Lmod-7.4.20-1.fc27 Lmod-7.0-1.fc25 How reproducible: Always. Steps to Reproduce: 1. On Fedora 25, run: mock -r fedora-rawhide-x86_64 cp2k-4.1-1.src.rpm (or any other package that uses either %{_openmpi_load} macro or calls module load mpi/openmpi-x86_64 directly) Actual results: + module load mpi/openmpi-x86_64 ++ /usr/share/lmod/lmod/libexec/lmod bash load mpi/openmpi-x86_64 Lmod has detected the following error: The following module(s) are unknown: "mpi/openmpi-x86_64" Please check the spelling or version number. Also try "module spider ..." It is also possible your cache file is out-of-date try: module --ignore-cache load "mpi/openmpi-x86_64" Expected results: Successful execution. Additional info: Running under mock --old-chroot works. Same error and workaround occurs with other buildroots, e.g. fedora-25-x86_64, too.