Description
===========
This seems to be somewhat related to https://bugs.launchpad.net/tripleo/+bug/1981353, but I am seeing this today when doing a fresh standalone deployment from master. The error I get is:
ESC[0;31m2022-07-25 04:56:32.444144 | fa163e55-c1c2-0c35-d1a0-000000000239 | FATAL | Ensure packages are actually well installed | tripleo | error={"changed": true, "cmd": ["rpm", "-V", "lvm2", "jq", "openvswitch", "openstack-heat-agents", "openstack-selinux", "os-net-config", "python3-libselinux", "python3-pyyaml", "puppet-tripleo", "rsync", "tmpwatch", "sysstat"], "delta": "0:00:00.631653", "end": "2022-07-25 04:56:32.421745", "failed_when_result": true, "msg": "non-zero return code", "rc": 2, "start": "2022-07-25 04:56:31.790092", "stderr": "error: %verify(openstack-selinux-0.8.34-0.20220711202841.a241718.el9.noarch) scriptlet failed, exit status 1", "stderr_lines": ["error: %verify(openstack-selinux-0.8.34-0.20220711202841.a241718.el9.noarch) scriptlet failed, exit status 1"], "stdout": "package openvswitch is not installed\nMissing os-ovs!\nMissing os-swift!\nMissing os-nova!\nMissing os-neutron!\nMissing os-mysql!\nMissing os-glance!\nMissing os-rsync!\nMissing os-rabbitmq!\nMissing os-keepalived!\nMissing os-keystone!\nMissing os-haproxy!\nMissing os-mongodb!\nMissing os-ipxe!\nMissing os-redis!\nMissing os-cin
der!\nMissing os-httpd!\nMissing os-gnocchi!\nMissing os-collectd!\nMissing os-virt!\nMissing os-dnsmasq!\nMissing os-octavia!\nMissing os-podman!\nMissing os-rsyslog!\nMissing os-pbis!\nMis
sing os-barbican!\nMissing os-logrotate!\nMissing os-certmonger!\nMissing os-timemaster!\nFound 28 missing module(s).", "stdout_lines": ["package openvswitch is not installed", "Missing os-o
vs!", "Missing os-swift!", "Missing os-nova!", "Missing os-neutron!", "Missing os-mysql!", "Missing os-glance!", "Missing os-rsync!", "Missing os-rabbitmq!", "Missing os-keepalived!", "Missi
ng 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-collect
d!", "Missing os-virt!", "Missing os-dnsmasq!", "Missing os-octavia!", "Missing os-podman!", "Missing os-rsyslog!", "Missing os-pbis!", "Missing os-barbican!", "Missing os-logrotate!", "Miss
ing os-certmonger!", "Missing os-timemaster!", "Found 28 missing module(s)."]}ESC[0m
ESC[1;30m2022-07-25 04:56:32.445116 | fa163e55-c1c2-0c35-d1a0-000000000239 | TIMING | tripleo_bootstrap : Ensure packages are actually well installed | tripleo | 0:00:12.551346 | 0.81sES
ESC[0m
Steps to reproduce
==================
Run standalone deployment using master branch.
Expected result
===============
no errors.
Actual result
=============
Error. See above.
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
[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-2.11-...