tripleo-heat-templates/releasenotes/notes/add-option-remove-unused-packages-on-upgrade-5a469428a6948148.yaml
marios ce0ef2fa20 Remove package if service stopped and disabled
Adds a UpgradeRemoveUnusedPackages param to use
in the ansible when conditional for the removal

Adds package removal to step2 right after a service
is stopped and disabled on step2. Package updates
happen in step3 so ideally remove before that.

The package removal task has ignore_errors true
so dependencies or other issue removing packages will
not fail the upgrade workflow.

Also adds this to the upgrade environment files
for visibility and defaulting false

Change-Id: Ie4e4a2d41f7752c5a13507a7c15c6f68e203cfca
Related-Bug: 1701501
2017-10-05 11:50:58 +00:00

13 lines
663 B
YAML

---
upgrade:
- Adds a new UpgradeRemoveUnusedPackages parameter (default False) and some
service upgrade_tasks that use this parameter to remove any unused
packages. "Unused" is those services that are being stopped and disabled
from starting on boot (because they are being containerized). Note that
ignore_errors is set on all the package removal ansible tasks so any
issues removing a given package will not fail the upgrade workflow.
For clarity, setting UpgradeRemoveUnusedPackages to True in your deployment
environment file(s) will result in the REMOVAL of packages for stopped
and disabled services, during the upgrade.