Adjust iscsi package removal on Red Hat hosts.

The host libvirt package should only be removed when the nova-libvirt
container is enabled. But, removal of iscsi-initiator-utils also causes
libvirt to be uninstalled because of its dependency on
libvirt-daemon-driver-storage-iscsi.

This modification prevents iscsi-initiator-utils from being removed
when nova-libvirt is disabled.

Change-Id: Ie7025342ff0c1a052ccbd449e278bc5d3424a0bf
This commit is contained in:
Tim Shearer 2022-04-19 11:18:12 -04:00
parent d737980c07
commit cefaf5df13

View File

@ -85,7 +85,7 @@ ubuntu_pkg_removals:
redhat_pkg_removals:
- "{% if enable_nova_libvirt_container | bool %}libvirt{% endif %}"
- "{% if enable_nova_libvirt_container | bool %}libvirt-daemon{% endif %}"
- iscsi-initiator-utils
- "{% if enable_nova_libvirt_container | bool %}iscsi-initiator-utils{% endif %}"
# From group_vars/all.yml:
docker_log_max_file: "5"