Description of problem: When rebuild RHEL8 again after the first build , it fails to install redhat-lsb-core and wget packages. Version-Release number of selected component (if applicable): Satellite 6.5 How reproducible: 100% Steps to Reproduce: 1. Add the following repositories to the used content-view for provisioning and publish/promote it Red Hat Enterprise Linux 8 for x86_64 - AppStream Kickstart x86_64 8 Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs x86_64 8 Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs x86_64 8 Red Hat Satellite Tools 6.5 for RHEL 8 x86_64 RPMs x86_64 2.Build the RHEL8 machine. This will add the following line to the provisioning template: repo --name Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_Kickstart_x86_64_8 --baseurl http://[SAT-NAME]/pulp/repos/Dorganization/Library/RHEL8-Provisioning/content/dist/rhel8/8/x86_64/appstream/kickstart/ 3. After the rebuild is finished, try to rebuild the machine again. Actual results: 1. The following line is now added to the provisioning template : repo --name Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_Kickstart_x86_64_8 --baseurl http://[SAT-NAME]/pulp/repos/Dorganization/Library/RHEL8-Provisioning/content/dist/rhel8/8/x86_64/appstream/kickstart/ 2. Fails on redhat-lsb-core and wget packages installation Expected results: Not to fail Additional info: Workaround has been applied by the customer by cloning the original template and hard-coded the missing line on it and use it instead of the original template.
@Ahmed: What was the missing line you've mentioned in the workaround - it's not clear for me after reading the description
@Ivan , I mean after rebuilding the machine again the appstream kickstart repository will not be included on the provisioning template and this will stop the provisioning because some packages will not be available like wget . So in the first try , when preview the provisioning templates , you can find the following : url --url http://aeladawy-sat65.sysmgmt.lan/pulp/repos/Dorganization/Library/RHEL8-Provisioning/content/dist/rhel8/8/x86_64/baseos/kickstart/ repo --name Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_Kickstart_x86_64_8 --baseurl http://aeladawy-sat65.sysmgmt.lan/pulp/repos/Dorganization/Library/RHEL8-Provisioning/content/dist/rhel8/8/x86_64/appstream/kickstart/ but when rebuild the machine again after the first try , only the following line is on the provisioning template : url --url http://aeladawy-sat65.sysmgmt.lan/pulp/repos/Dorganization/Library/RHEL8-Provisioning/content/dist/rhel8/8/x86_64/baseos/kickstart/
Created redmine issue https://projects.theforeman.org/issues/27570 from this bug
The additional repo is added from Katello - see https://github.com/Katello/katello/commit/a090aae2b582b84b8038ec562dec1186dae5d744
After the build is finished successfully , if you try to build the machine again , the AppStream kickstart repository will not be created by the provisioning template . So, the additional media is not available anymore after finishing the provisioning the first time. <% @additional_media.each do |medium| -%> repo --name <%= medium[:name] %> --baseurl <%= medium[:url] %> <%= medium[:install] ? ' --install' : '' %>
Created attachment 1606105 [details] Missing_packages
I think it is worth issuing warning in these cases: https://bugzilla.redhat.com/show_bug.cgi?id=1748232