From 699e534001710cfa71cd638514e57bf142b55951 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 11 Aug 2022 16:28:01 -0700 Subject: [PATCH] bodhi: when sending to greenwave, always use verbose This is a hack to work around bugs in bodhi and greewave. It happens if we send here with verbose, bodhi sends the right stuff and avoids the greenwave bug. This should be dropped as soon as upstream fixes land in bodhi or greenwave. See: https://pagure.io/greenwave/pull-request/666 and https://github.com/fedora-infra/bodhi/pull/4687 for the proper fix. Signed-off-by: Kevin Fenzi --- roles/openshift-apps/bodhi/templates/dockerfile-base | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/openshift-apps/bodhi/templates/dockerfile-base b/roles/openshift-apps/bodhi/templates/dockerfile-base index 21e2e37a4a..690309284c 100644 --- a/roles/openshift-apps/bodhi/templates/dockerfile-base +++ b/roles/openshift-apps/bodhi/templates/dockerfile-base @@ -11,9 +11,12 @@ RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraprojec {% if env == "staging" %} RUN dnf install -y bodhi-server python3-pyramid_sawing python3-gunicorn --refresh {% else %} -RUN dnf install -y bodhi-server-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn +RUN dnf install -y bodhi-server-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn sed {% endif %} +# HOTFIX for https://github.com/fedora-infra/bodhi/pull/4687 +sed -i -e 's|verbose=False|verbose=True|' /usr/lib/python3.10/site-packages/bodhi/server/models.py + # link the static files for a simpler httpd.conf RUN ln -s $(python3 -Ic "import sysconfig; print(sysconfig.get_path('purelib', 'rpm_prefix'))")/bodhi/server/static/ /srv/bodhi-static