diff --git a/ansible/seed-vm-provision.yml b/ansible/seed-vm-provision.yml index cbe19308b..4263feb59 100644 --- a/ansible/seed-vm-provision.yml +++ b/ansible/seed-vm-provision.yml @@ -11,6 +11,17 @@ currently {{ groups['seed'] | length }}. when: groups['seed'] | length != 1 + # NOTE(priteau): On seed hypervisors running CentOS 8, the configdrive role + # will fail to install coreutils if coreutils-single is already present. + # Until the role handles it, install it using the --allowerasing option + # which will remove coreutils-single. + - name: Ensure coreutils package is installed + command: "dnf install coreutils -y --allowerasing" + become: True + when: + - ansible_os_family == 'RedHat' + - ansible_distribution_major_version | int >= 8 + - name: Ensure the image cache directory exists file: path: "{{ image_cache_path }}" diff --git a/releasenotes/notes/fix-coreutils-single-conflict-208036c66b9f7e59.yaml b/releasenotes/notes/fix-coreutils-single-conflict-208036c66b9f7e59.yaml new file mode 100644 index 000000000..8ecc880df --- /dev/null +++ b/releasenotes/notes/fix-coreutils-single-conflict-208036c66b9f7e59.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes a package conflict while provisioning a seed VM on a CentOS 8 seed + hypervisor with ``coreutils-single`` already installed. See `story 2007612 + `__ for details.