Project

General

Profile

Feature #26409

Lock package versions after installation

Added by Martin Bacovsky 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
foreman-installer script
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

In foreman-maintain there will be feature for version locking of Foreman packages to protect against unwanted upgrades of Foreman during system update.

Foreman-installer should be able to lock the packages automatically immediately after the installation to minimize manual steps during installation.
Foreman-installer should be able to check if the packages are locked and warn the user eventually offer to run unlock on its own.


Related issues

Blocked by Foreman Maintain - Feature #26216: Implement a yum version lock type of protections against upgradesClosed

Associated revisions

Revision 32d2dd76 (diff)
Added by Martin Bacovsky 5 months ago

Fixes #26409 - Locking packages after installation

This patch add a new option --[no-]lock-packages-versions.
The option enables/disables version locking of installed packages.
Once used the choice is stored in the scenario "custom" hash and
is reused in the following installer runs.

If the packages are locked when the installer starts
unlock is performed before installer proceed with the installation.

Revision baf2adef (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - fixed typo and changed exitstatus

Revision 6b1bf089 (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - installation renamed to packages

Revision 5481897b (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - error catching, output tuning

Revision 56f78b57 (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - fixed f-m command detection errors

Revision 2fc3450e (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - Readability improvements

Revision 9f196499 (diff)
Added by Martin Bacovsky 5 months ago

Refs #26409 - Suppress error out on lock test

History

#1 Updated by Martin Bacovsky 6 months ago

  • Blocked by Feature #26216: Implement a yum version lock type of protections against upgrades added

#2 Updated by The Foreman Bot 6 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-installer/pull/336 added

#3 Updated by Martin Bacovsky 5 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Triaged changed from No to Yes
  • Target version set to 1.22.0
  • Fixed in Releases 1.22.0 added

Also available in: Atom PDF