Remove redhat-release package from UBI8 image

Also install centos*release package when tcib_distro
is centos.

*release packages are protected by dnf, so used
rpm commands to remove.

Disable upgrades pipeline to get this fix in.

(cherry picked from commit 963c55bd44)
(cherry picked from commit 906265c433)

Closes-Bug: #1939674
Change-Id: I5467a5faa36aa1359ff9b8135a512566dff12a79
This commit is contained in:
Sagi Shnaidman 2021-08-12 13:53:28 +03:00 committed by Wesley Hayutin
parent b168349d14
commit a7513bc0b9
2 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,11 @@ tcib_actions:
- run: sed -ri '/^(passwd:|group:)/ s/systemd//g' /etc/nsswitch.conf
- run: dnf install -y {{ tcib_packages['common'] | join(' ') }}
- run: mkdir -p /openstack
- run: >-
if [ '{{ tcib_distro }}' == 'centos' ];then dnf download centos*release &&
rpm -ivh --nodeps --replacefiles *.rpm &&
rm -rf *.rpm &&
rpm -e --nodeps redhat-release; fi
- run: dnf update --excludepkgs redhat-release -y && dnf clean all && rm -rf /var/cache/dnf
tcib_cmd: kolla_start
tcib_entrypoint: dumb-init --single-child --

View File

@ -10,7 +10,7 @@
- tripleo-build-containers-jobs
- tripleo-buildimage-jobs
- tripleo-standalone-scenarios-pipeline
- tripleo-upgrades-victoria-pipeline
#- tripleo-upgrades-victoria-pipeline
vars:
ensure_global_symlinks: true
check: