Description of problem: Installation medium of a host provisioned from Satellite should updated automatically when a base OS is upgraded. Version-Release number of selected component (if applicable): Satellite 6.2 How reproducible: Steps to Reproduce: 1. Build host on 6.6 from a hostgroup with 6.6 and 6.6 install media configured 2. Upgrade host to 6.8 3. Ensure that the host view in satellite shows 6.8 (Operating System RHEL Server 6.8) 4. Click build to rebuild host it will used the media attached earlier. Actual results: Installatoin medium is not getting updated when OS is updated. Expected results: When Base OS is updated Satellite should update the installation medium. Additional info: Customer is not using Puppet environment. Updating the installation medium will help customer on manually updating the medium, reduce update timing and also resolve medium validation error.
The update was caused by the subscription-manager facts upload. Anyway we should try to find a way to auto-assign installation media from previous OS to new OS that's auto-created.
Created redmine issue http://projects.theforeman.org/issues/19233 from this bug
This should not only apply to facts upload changing the OS, but to all changes of the OS, also through the API and UI. If implemented as general update-to-valid-kickstart-repo then it might also fix the https://bugzilla.redhat.com/show_bug.cgi?id=1446659 that is similair, but affects changing the CV thorugh the APi.
The problem is that the code is not consistent. E.g. the renderer_extensions has code to check if the is a kcikstart repo without checking for a valid kickstart_repo_id: From renderer_extensions.rb: ---- content_view = @host.try(:content_facet).try(:content_view) || @host.try(:content_view) if content_view && @host.operatingsystem.is_a?(Redhat) && @host.operatingsystem.kickstart_repos(@host).first.present? @mediapath ||= @host.operatingsystem.mediumpath(@host) end ---- This kind of checks prevent an invalid kickstart repo for the template rendering, but it does nto fix the API and UI feedback to the user.
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Rich Jerrido or Bryan Kearney or your account team. If we do not hear from you, we will close this bug out. Thank you.
With Sat6.4 updating the medium after an OS change is already improved. I think the new behaviour covers this BZ also
Peter, thank you for the update. I will keep this open until December and then let it close out then.
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Rich Jerrido or Bryan Kearney. Thank you.