Bug 1738199
| Summary: | yum versionlock prevents to install additional satellite packages | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | Satellite Maintain | Assignee: | Martin Bacovsky <mbacovsk> |
| Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.6.0 | CC: | apatel, inecas, kgaikwad, mbacovsk, mvanderw, nitthoma, spetrosi, vgrosu |
| Target Milestone: | 6.6.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | foreman-maintain-0.4.8 | Doc Type: | Enhancement |
| Doc Text: |
Previously, using yum to update or install packages on the Satellite base operating system might have also updated the packages related to Satellite and resulted in system inconsistency. With this release, Satellite prevents users from installing and updating packages with `yum`. Instead, you must use `foreman-maintain packages install` and `foreman-maintain packages update` commands. Note that `foreman-maintain` runs the `satellite-installer --upgrade` script after installing packages and therefore some services are restarted. You can disable this feature and control the stability of the system yourself if you want. This feature is not enabled on Capsule Server.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-10-22 19:48:29 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
Lukas Pramuk
2019-08-06 13:27:47 UTC
You can use the following steps as a workaround to unblock your installation. Proper fix will follow soon. $ foreman-maintain packages unlock $ yum install foreman-discovery-image $ foreman-maintain packages lock In BZ#1739416, I am adding the workaround Martin shared in comment#3 to our docs everywhere `yum install` is issued. This is the list of packages that we tell users to run `yum install` with to either install or to ensure that the package is installed, in our documentation: ipa-client foreman-proxy ipa-admintools rh-mongodb34 rh-mongodb34-syspaths postgresql-server rhel-system-roles ipa-client tfm-rubygem-foreman* gssproxy nfs-utils sssd adcli realmd ipa-python-compat krb5-workstation tfm-rubygem-foreman_templates python-pulp-manifest nfs-utils bind-utils foreman-discovery-image rubygem-smart_proxy_discovery tfm-rubygem-net-ssh-krb foreman-telemetry pcp-mmvstatsd pcp-webapi pcp-webapp-grafana pcp-webapp-vector pcp-pmda-apache pcp-pmda-postgresql pcp-system-tools pcp-webjs livecd-tools libvirt-client rubygem-smart_proxy_discovery satellite-clone rubygem-foreman_maintain virt-who Created redmine issue https://projects.theforeman.org/issues/27686 from this bug Upstream bug assigned to mbacovsk Upstream bug assigned to mbacovsk Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27686 has been resolved. *** Bug 1753605 has been marked as a duplicate of this bug. *** VERIFIED. @Satellite 6.6.0 Snap22 rubygem-foreman_maintain-0.4.9-1.el7sat.noarch User has now two options how to install additional rpms on Satellite machine: 1) Supported way includes running installer with --upgrade flag and takes longer (~3min) # foreman-maintain packages install -y foreman-discovery-image 2) Unsupported? way skips running installer so is much faster (~20sec) # foreman-maintain packages unlock # yum -y install foreman-discovery-image # foreman-maintain packages lock With new locking mechanism everything is locked (not only Sat but also OS) To upgrade all packages there is command: # foreman-maintain packages update \\* Implicit default all packages is not possible: # foreman-maintain packages update ERROR: parameter 'PACKAGES ...': no value provided Yet worse explicit all packages (*) has to be escaped twice \\* (one would expect only once \* like with yum) Going to file a BZ for this as it's not obvious and documented Filed https://bugzilla.redhat.com/show_bug.cgi?id=1759588 - foreman-maintain packages update fails to update all packages Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3172 |