When repository files are present, but the ctlplane is not on a
routed network. (I.e the node cannot connect to repositories.)
The ansible built in `package` will fail despite the fact that
the packages is already installed.
This change adds a task to check that the packages required are
isntalled using `rpm --query --whatprovides <PGK_LIST>`.
`--whatprovides` is used to find out if a wrapper rpm for OVS with
custom versioning scheme is installed. If a wrapper is installed
'openvswitch' is appended to the list of installed packages.
Reviewed: https:/ /review. opendev. org/c/openstack /tripleo- ansible/ +/829170 /opendev. org/openstack/ tripleo- ansible/ commit/ 7b002dec7dd3232 2023487f78cf794 4aee7b1c46
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 7b002dec7dd3232 2023487f78cf794 4aee7b1c46
Author: Harald Jensås <email address hidden>
Date: Wed Feb 2 02:07:07 2022 +0100
tripleo- bootstrap - check packeges fact befor install
When repository files are present, but the ctlplane is not on a
routed network. (I.e the node cannot connect to repositories.)
The ansible built in `package` will fail despite the fact that
the packages is already installed.
This change adds a task to check that the packages required are whatprovides` is used to find out if a wrapper rpm for OVS with
isntalled using `rpm --query --whatprovides <PGK_LIST>`.
`--
custom versioning scheme is installed. If a wrapper is installed
'openvswitch' is appended to the list of installed packages.
Related: RHBZ#2048134 c3ae357fae32f3a 47406101f25 39326bdaaefa5a1 04b6ef264c)
Closes-Bug: #1959731
Change-Id: Ie448e8f795325c
(cherry picked from commit 37fac649388e0bf