Bug 1830769
Summary: | convert2rhel fails hard when GPG key is not imported | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Till Maas <opensource> |
Component: | convert2rhel | Assignee: | Michal Bocek <mbocek> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | epel7 | CC: | lkuprova, mbocek, opensource, till |
Target Milestone: | --- | ||
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: | 2020-07-28 14:50:25 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
Till Maas
2020-05-03 18:39:34 UTC
Additional info: After this error, they system was broken so that convert2rhel cannot be called anymore because it seems to have removed /etc/system-release at this point. Hi Till, thanks for the report and sorry for the troubles. We know about the issue and we're working on it. There are these three possible workarounds for now: - import the RHEL GPG key before running the conversion `rpm --import /<mnt_rhel repo baseurl path>/RPM-GPG-KEY-redhat-release` - add "gpgcheck=0" to the mnt_rhel repo definition - add "gpgkey=file:///<mnt_rhel repo baseurl path>/RPM-GPG-KEY-redhat-release" to the mnt_rhel repo definition (In reply to Michal Bocek from comment #2) > Hi Till, thanks for the report and sorry for the troubles. We know about the > issue and we're working on it. > > There are these three possible workarounds for now: > - import the RHEL GPG key before running the conversion > `rpm --import /<mnt_rhel repo baseurl path>/RPM-GPG-KEY-redhat-release` > - add "gpgcheck=0" to the mnt_rhel repo definition > - add "gpgkey=file:///<mnt_rhel repo baseurl > path>/RPM-GPG-KEY-redhat-release" to the mnt_rhel repo definition Thanks, it would be great if you would add this info to the documentation at: https://access.redhat.com/articles/2360841 Indeed. We're on it. We've added the following to the documentation: "Important: The convert2rhel utility currently does not import GPG keys automatically. To prevent a conversion failure, either import the RHEL GPG key (release key 2) before running convert2rhel, or ensure that yum skips the GPG key check by adding the gpgcheck=0 directive to the custom repository definitions." There's an upstream PR that should resolve the issue: https://github.com/oamg/convert2rhel/pull/31 FEDORA-EPEL-2020-d0a4bcf7f1 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-d0a4bcf7f1 FEDORA-EPEL-2020-baa69bfeef has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-baa69bfeef See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2020-d0a4bcf7f1 has been pushed to the Fedora EPEL 6 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-d0a4bcf7f1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2020-baa69bfeef has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2020-d0a4bcf7f1 has been pushed to the Fedora EPEL 6 stable repository. If problem still persists, please make note of it in this bug report. |