Remove package if service stopped and disabled
authormarios <marios@redhat.com>
Mon, 3 Jul 2017 16:20:30 +0000 (19:20 +0300)
committerEmilien Macchi <emilien@redhat.com>
Mon, 9 Oct 2017 18:06:26 +0000 (11:06 -0700)
commit6d150b03cff457bf43e8c2b55ba03ace20d6c244
tree8489116731b0f053970c02af600e8f796152c2a9
parentc4bd0a3468af429abfbbcea634ee1023f95778c9
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
(cherry picked from commit ce0ef2fa207698c1ae61c1620fe3c5e8d1c7bfca)
33 files changed:
docker/services/aodh-api.yaml
docker/services/aodh-evaluator.yaml
docker/services/aodh-listener.yaml
docker/services/aodh-notifier.yaml
docker/services/barbican-api.yaml
docker/services/ceilometer-agent-central.yaml
docker/services/ceilometer-agent-compute.yaml
docker/services/ceilometer-agent-ipmi.yaml
docker/services/ceilometer-agent-notification.yaml
docker/services/cinder-api.yaml
docker/services/cinder-backup.yaml
docker/services/cinder-scheduler.yaml
docker/services/cinder-volume.yaml
docker/services/collectd.yaml
docker/services/congress.yaml
docker/services/glance-api.yaml
docker/services/neutron-api.yaml
docker/services/neutron-ovs-agent.yaml
docker/services/nova-api.yaml
docker/services/nova-compute.yaml
docker/services/nova-conductor.yaml
docker/services/nova-consoleauth.yaml
docker/services/nova-placement.yaml
docker/services/nova-scheduler.yaml
docker/services/nova-vnc-proxy.yaml
docker/services/octavia-health-manager.yaml
docker/services/sahara-api.yaml
docker/services/sahara-engine.yaml
docker/services/swift-proxy.yaml
docker/services/swift-storage.yaml
environments/major-upgrade-composable-steps-docker.yaml
environments/major-upgrade-composable-steps.yaml
releasenotes/notes/add-option-remove-unused-packages-on-upgrade-5a469428a6948148.yaml [new file with mode: 0644]