Implement a yum version lock type of protections against upgrades
Breaking out part of the RFE from
Specifically, that there should be a version lock so that a customer can not upgrade the satellite exception through approved tools like foreman maintain.
Fixes #26216 - Lock package versions to protect against upgrades
Adds ability to lock versions of packages of
Foreman/Katello/Satellite and its dependences to prevent it
from partial upgrade during common system update.
The locking consists of three parts:
- make sure the tooling is installed and configured properly
- collect list of packages to lock
- do the actual locking
New commands were added to foreman_maintain:
$ foreman-maintian packages lock
$ foreman-maintian packages unlock
New feature :package_manager is introduced. It serves as a proxy
for package manipulation commands and dispatches the calls to
the PackageManager implementation that match what is installed.
In the initial version only yum is supported. Apt is in progress though
and will be added soon. The system helpers were redirected to
the package manager which should allow seamless support for
debian once the apt manager is added.
The version locking itself is implemented in the package manager
and should match what system supports The same pays for checks
and instalation of the related tooling.
#6 Updated by Martin Bacovsky 10 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|331cfe50ac7a144a486f62926a27350243b45b7f.