Bug 1463007
Summary: | [RFE] Provide a simple way to install Capsules using the same package versions as their Satellite | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pablo Hess <phess> |
Component: | Installation | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED NOTABUG | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | Unspecified | CC: | cdonnell, ddolguik, ehelms, jcallaha, risantam |
Target Milestone: | Unspecified | Keywords: | FutureFeature |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-11-27 16:22:26 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
Pablo Hess
2017-06-19 21:49:33 UTC
Thinking of approaches: yum-plugin-versionlock is definitely the way to go here. https://access.redhat.com/solutions/98873 First approach that comes to mind is: 1. Install and enable yum-plugin-versionlock on Capsule 2. Have Satellite run 'rpm -qa > /var/www/html/sat_pkg_versions' 3. Have Capsule download https://satellite.fqdn/sat_pkg_versions and place it under /etc/yum/pluginconf.d/versionlock.list Alternative: 1. Create new remote execution template named prep-capsule on Satellite to run rpm -qa and output the result to a file, then scp the resulting file to the Capsule, placing it under /etc/yum/pluginconf.d/versionlock.list, then install/enable yum-plugin-versionlock on the Capsule. 2. Have Satellite run the remote execution template against the Capsule system before the Capsule system runs its first yum update. I'll try both approaches and will be reporting any findings and shortcomings here. = Progress report = 1. Installed stock RHEL 7.3. Followed the Satellite install docs without running "yum update" at any point. Ran a minimal satellite-installer command as indicated on the docs. 2. After running satellite-installer, installed yum-plugin-versionlock and added current packages to the list: # yum -y install yum-plugin-versionlock # rpm -qa |xargs yum versionlock 3. Provisioned a new RHEL 7.3 VM on libvirt from this Satellite, disabled all repos, enabled only the ones necessary on a capsule (following the docs). 4. Installed yum-plugin-versionlock on the capsule and scp'd the Satellite's /etc/yum/pluginconf.d/versionlock.list over to the capsule. 5. Followed the documentation to install the capsule. satellite-installer --scenario capsule --all --the --usual --options worked perfectly. 6. End result: capsule installed with all satellite-related packages up to the same versions as they are on the Satellite. I have to check the effects of e.g. yum update on the capsule, and also the maintainability of the versionlock.list file on the satellite and all capsules. But this is very good news so far. |