Description of problem: In RHOSP16.2.4, the glance_api_cron container is created regardless of whether glance's Image cache is enabled or disabled.[1] In that case, tripleo_glance_api_cron_healthcheck.service will fail if the Image cache of the glance is not enabled.[2] It is assumed that this may be due to the fact that cron jobs are not created in the glance_api_cron container if the glance image cache is not enabled.[3] [1] ~~~ [root@controller-0 ~]# podman ps | grep glance a1203af1a1b0 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-glance-api:16.2_20221124.2 kolla_start 12 hours ago Up 12 hours ago glance_api 525dfd2e9e42 undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-glance-api:16.2_20221124.2 kolla_start 12 hours ago Up 12 hours ago glance_api_cron ~~~ /var/lib/config-data/puppet-generated/glance_api/etc/glance/glance-api.conf: ~~~ ... [paste_deploy] ... flavor=keystone ... ~~~ [2] ~~~ [root@controller-0 ~]# systemctl status tripleo_glance_api_cron_healthcheck.service ● tripleo_glance_api_cron_healthcheck.service - glance_api_cron healthcheck Loaded: loaded (/etc/systemd/system/tripleo_glance_api_cron_healthcheck.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2023-01-10 02:23:43 UTC; 1min 10s ago Process: 587513 ExecStart=/usr/bin/podman exec --user root glance_api_cron /usr/share/openstack-tripleo-common/healthcheck/cron glance (code=exited, status=1/FAILURE) Main PID: 587513 (code=exited, status=1/FAILURE) Jan 10 02:23:43 controller-0 systemd[1]: Starting glance_api_cron healthcheck... Jan 10 02:23:43 controller-0 podman[587513]: 2023-01-10 02:23:43.559562442 +0000 UTC m=+0.311770303 container exec 525dfd2e9e42626c12513404df445a190bf3a777e09bb3d8de18aed18bc1325c (image=undercloud-0.ctlplane.redhat.local:8787/rh> Jan 10 02:23:43 controller-0 systemd[1]: tripleo_glance_api_cron_healthcheck.service: Main process exited, code=exited, status=1/FAILURE Jan 10 02:23:43 controller-0 systemd[1]: tripleo_glance_api_cron_healthcheck.service: Failed with result 'exit-code'. Jan 10 02:23:43 controller-0 systemd[1]: Failed to start glance_api_cron healthcheck. ~~~ [3] ~~~ [root@controller-0 ~]# podman exec -it glance_api_cron crontab -l no crontab for root ~~~ ~~~ [root@controller-0 ~]# podman exec -it glance_api_cron cat /usr/share/openstack-tripleo-common/healthcheck/cron #!/bin/bash file="${1:-root}" if [ -f /var/spool/cron/${file} ]; then nb_lines=$(grep -cEv '^#' /var/spool/cron/${file}) if [ $nb_lines -ge 2 ]; then exit 0 fi fi exit 1 ~~~ Version-Release number of selected component (if applicable): python3-glanceclient-2.17.1-2.20220111011432.1aba8f2.el8ost.noarch puppet-glance-15.5.0-2.20220804175403.d54e942.el8ost.noarch How reproducible: This always happens when Image cache is disabled in RHOSP16.2.4. Actual results: tripleo_glance_api_cron_healthcheck.service fail Expected results: tripleo_glance_api_cron_healthcheck.service does not fail
Is this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2155987 ?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.2.5 (Train) bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:1763