[5]
[stack@standalone zed]$ sudo rpm -V openvswitch
package openvswitch is not installed
[stack@standalone zed]$ sudo dnf install openvswitch
Repository baseos is listed more than once in the configuration
Repository appstream is listed more than once in the configuration
Last metadata expiration check: 1:52:30 ago on Mon 25 Jul 2022 03:09:15 PM EDT.
Package rdo-openvswitch-2:2.17-2.el9s.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[stack@standalone zed]$
Introduced by [1] and an attempt to fix was made by [2].
However, my standalone deploys no longer works as I hit this bug.
You can modify the command [3] to make the rpm command not return an error code [4]. The modifications are:
A. switch openvswitch for rdo-openvswitch because of [5]
B. use 'rpm -q' instead of 'rpm -V' for openstack-selinux because of [6]
The following works [7] for my env:
sudo rpm -q lvm2 jq rdo-openvswitch openstack- heat-agents os-net-config python3-libselinux python3-pyyaml puppet-tripleo rsync tmpwatch sysstat openstack-selinux
and seems to achieve the desired effect; i.e. if the above returned a non-zero exit code we could stop the playbook. I'll submit a patch for review.
[1] https:/ /github. com/openstack/ tripleo- ansible/ commit/ 2f29bfb7e01d94e 42e5e6fcc9305f3 39d8d5efe4
[2] https:/ /github. com/openstack/ tripleo- ansible/ commit/ a89edcd010c321d 4e05aa068a8fb31 cb8cded344
[3] https:/ /github. com/openstack/ tripleo- ansible/ blob/master/ tripleo_ ansible/ roles/tripleo_ bootstrap/ tasks/packages. yml#L65
[4] heat-agents os-net-config python3-libselinux python3-pyyaml puppet-tripleo rsync tmpwatch sysstat
[stack@standalone zed]$ sudo rpm -V lvm2 jq rdo-openvswitch openstack-
[stack@standalone zed]$ echo $?
0
[stack@standalone zed]$
[5] -2:2.17- 2.el9s. noarch is already installed.
[stack@standalone zed]$ sudo rpm -V openvswitch
package openvswitch is not installed
[stack@standalone zed]$ sudo dnf install openvswitch
Repository baseos is listed more than once in the configuration
Repository appstream is listed more than once in the configuration
Last metadata expiration check: 1:52:30 ago on Mon 25 Jul 2022 03:09:15 PM EDT.
Package rdo-openvswitch
Dependencies resolved.
Nothing to do.
Complete!
[stack@standalone zed]$
[6] openstack- selinux- 0.8.34- 0.2022071120284 1.a241718. el9.noarch) scriptlet failed, exit status 1 selinux- 0.8.34- 0.2022071120284 1.a241718. el9.noarch
[stack@standalone zed]$ sudo rpm -V openstack-selinux
Missing os-ovs!
Missing os-swift!
Missing os-nova!
Missing os-neutron!
Missing os-mysql!
Missing os-glance!
Missing os-rsync!
Missing os-rabbitmq!
Missing os-keepalived!
Missing os-keystone!
Missing os-haproxy!
Missing os-mongodb!
Missing os-ipxe!
Missing os-redis!
Missing os-cinder!
Missing os-httpd!
Missing os-gnocchi!
Missing os-collectd!
Missing os-virt!
Missing os-dnsmasq!
Missing os-octavia!
Missing os-podman!
Missing os-rsyslog!
Missing os-pbis!
Missing os-barbican!
Missing os-logrotate!
Missing os-certmonger!
Missing os-timemaster!
Found 28 missing module(s).
error: %verify(
[stack@standalone zed]$ rpm -q openstack-selinux
openstack-
[stack@standalone zed]$
[7] heat-agents os-net-config python3-libselinux python3-pyyaml puppet-tripleo rsync tmpwatch sysstat openstack-selinux 03.16-1. el9.x86_ 64 -2.17-2. el9s.noarch heat-agents- 4.1.0-0. 20220708025946. deaefdd. el9.noarch config- 15.2.1- 0.2022062911440 4.6505f24. el9.noarch libselinux- 3.4-2.el9. x86_64 pyyaml- 5.4.1-6. el9.x86_ 64 tripleo- 16.1.1- 0.2022072119290 4.1d53e71. el9.noarch 2.3-11. el9.x86_ 64 2.11-20. el9.x86_ 64 12.5.4- 3.el9.x86_ 64 selinux- 0.8.34- 0.2022071120284 1.a241718. el9.noarch
[stack@standalone zed]$ sudo rpm -q lvm2 jq rdo-openvswitch openstack-
lvm2-2.
jq-1.6-9.el9.x86_64
rdo-openvswitch
openstack-
os-net-
python3-
python3-
puppet-
rsync-3.
tmpwatch-
sysstat-
openstack-
[stack@standalone zed]$ echo $?
0
[stack@standalone zed]$