You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably applies to other versions of RHEL. The default createrepo flags in cobbler 2.4.0 as they appear in /etc/cobbler/settings are "-c cache -s sha".
When you import the distribution, createrepo runs and recreates repomd.xml, which removes this element from the original:
When the OS installs on the client, it checks the checksum from this element to the checksum of the productid.gz file. If they don't match then the installer cannot identify the OS, which results in the /etc/pki/product/69.pem not being created. 69.pem is just the productid file from the repo. This file is needed to successfully subscribe to the software channel at RHN.
The symptom that this has happened is that if you attempt to subscribe via subscription-manager, then you get "no installed products" type error messages. You can fix the client by manually copying the productid file to /etc/pki/product/69.pem.
To workaround this issue, I have set the following in /etc/cobbler/settings:
createrepo_flags: "-c cache -s sha --update -C"
before importing the distribution. Now createrepo won't update the perfectly good metadata from the DVD, leaving repomd.xml intact.
The text was updated successfully, but these errors were encountered:
I have a pull request addressing this - createrepo is needed only for the non-yum based RHEL releases (5.x and earlier, not 6.x or 7), nor for Fedora, and as noticed above does not even recreate what redhat put onto the installer so is destructive.
This probably applies to other versions of RHEL. The default createrepo flags in cobbler 2.4.0 as they appear in /etc/cobbler/settings are "-c cache -s sha".
When you import the distribution, createrepo runs and recreates repomd.xml, which removes this element from the original:
When the OS installs on the client, it checks the checksum from this element to the checksum of the productid.gz file. If they don't match then the installer cannot identify the OS, which results in the /etc/pki/product/69.pem not being created. 69.pem is just the productid file from the repo. This file is needed to successfully subscribe to the software channel at RHN.
The symptom that this has happened is that if you attempt to subscribe via subscription-manager, then you get "no installed products" type error messages. You can fix the client by manually copying the productid file to /etc/pki/product/69.pem.
To workaround this issue, I have set the following in /etc/cobbler/settings:
before importing the distribution. Now createrepo won't update the perfectly good metadata from the DVD, leaving repomd.xml intact.
The text was updated successfully, but these errors were encountered: