Kolla-ansible generating wrong wsgi apache template for AODH on Debian

Bug #1953059 reported by Michal Arbet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Michal Arbet

Bug Description

Hi,

Kolla ansible generates wrong wsgi apache configuration file for AODH service, see below:

root@controller1:/home/michalarbet# tail /var/log/kolla/aodh/aodh_wsgi_error.log
[Thu Dec 02 17:13:16.568533 2021] [authz_core:error] [pid 26:tid 140541698225920] [client 192.168.84.37:56014] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:13:46.712489 2021] [authz_core:error] [pid 26:tid 140541715011328] [client 192.168.84.37:58700] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:14:16.830209 2021] [authz_core:error] [pid 26:tid 140541681440512] [client 192.168.84.37:33120] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:14:46.946850 2021] [authz_core:error] [pid 25:tid 140540716771072] [client 192.168.84.37:35774] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:15:17.071572 2021] [authz_core:error] [pid 25:tid 140540699985664] [client 192.168.84.37:38418] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:15:47.209364 2021] [authz_core:error] [pid 25:tid 140540683200256] [client 192.168.84.37:41110] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:16:17.324376 2021] [authz_core:error] [pid 26:tid 140541438183168] [client 192.168.84.37:43736] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:16:47.436702 2021] [authz_core:error] [pid 25:tid 140542105544448] [client 192.168.84.37:46576] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:17:17.556679 2021] [authz_core:error] [pid 26:tid 140541421397760] [client 192.168.84.37:49328] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api
[Thu Dec 02 17:17:47.666063 2021] [authz_core:error] [pid 25:tid 140542088759040] [client 192.168.84.37:52142] AH01630: client denied by server configuration: /usr/bin/python3-aodh-api

Debian and ubuntu packages has /usr/bin/aodh-api as it is in source version, there is no reason to
have if conditional for source and binary in apache's wsgi configuration file.

Ubuntu package:

michalarbet@pixla:/tmp$ wget http://cz.archive.ubuntu.com/ubuntu/pool/main/a/aodh/python3-aodh_10.0.0~b3~git2020041012.6ae7f90a-0ubuntu1_all.deb 2>/dev/null ; dpkg -c python3-aodh_10.0.0~b3~git2020041012.6ae7f90a-0ubuntu1_all.deb | grep 'usr/bin' | grep 'aodh-api'
-rwxr-xr-x root/root 1807 2020-04-10 18:51 ./usr/bin/aodh-api

Debian:

michalarbet@pixla:/tmp$ wget http://ftp.de.debian.org/debian/pool/main/a/aodh/aodh-common_13.0.0-1_all.deb 2>/dev/null ; dpkg -c aodh-common_13.0.0-1_all.deb | grep 'usr/bin' | grep 'aodh-api'
-rwxr-xr-x root/root 1807 2021-10-06 16:58 ./usr/bin/aodh-api

Changed in kolla-ansible:
assignee: nobody → Michal Arbet (michalarbet)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/820218
Committed: https://opendev.org/openstack/kolla-ansible/commit/f6d591917ba602cf5cbd16f20365fed3b461c36d
Submitter: "Zuul (22348)"
Branch: master

commit f6d591917ba602cf5cbd16f20365fed3b461c36d
Author: Michal Arbet <email address hidden>
Date: Thu Dec 2 18:28:08 2021 +0100

    Fix aodh wsgi config file in Debuntu binary

    This patch is fixing file path for WSGIScriptAlias
    as debian/ubuntu binary packages installs /usr/bin/aodh-api
    as it is in source images also. For details please check
    LP bug report.

    Closes-Bug: #1953059
    Change-Id: I9efe73193bf828b084c2844be73c9813a969c9c7

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/822617

Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/822618

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/822619

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/822618
Committed: https://opendev.org/openstack/kolla-ansible/commit/82f248bcc390f8de78f308dc91ec70f2f5bb54ab
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 82f248bcc390f8de78f308dc91ec70f2f5bb54ab
Author: Michal Arbet <email address hidden>
Date: Thu Dec 2 18:28:08 2021 +0100

    Fix aodh wsgi config file in Debuntu binary

    This patch is fixing file path for WSGIScriptAlias
    as debian/ubuntu binary packages installs /usr/bin/aodh-api
    as it is in source images also. For details please check
    LP bug report.

    Closes-Bug: #1953059
    Change-Id: I9efe73193bf828b084c2844be73c9813a969c9c7

tags: added: in-stable-wallaby
tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/822619
Committed: https://opendev.org/openstack/kolla-ansible/commit/fe1e6b465700ad78d2ae09b62a60e774a1a98afb
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit fe1e6b465700ad78d2ae09b62a60e774a1a98afb
Author: Michal Arbet <email address hidden>
Date: Thu Dec 2 18:28:08 2021 +0100

    Fix aodh wsgi config file in Debuntu binary

    This patch is fixing file path for WSGIScriptAlias
    as debian/ubuntu binary packages installs /usr/bin/aodh-api
    as it is in source images also. For details please check
    LP bug report.

    Closes-Bug: #1953059
    Change-Id: I9efe73193bf828b084c2844be73c9813a969c9c7

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/822617
Committed: https://opendev.org/openstack/kolla-ansible/commit/3ee71d24848f526c80abb36aea04ae453eafcbee
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 3ee71d24848f526c80abb36aea04ae453eafcbee
Author: Michal Arbet <email address hidden>
Date: Thu Dec 2 18:28:08 2021 +0100

    Fix aodh wsgi config file in Debuntu binary

    This patch is fixing file path for WSGIScriptAlias
    as debian/ubuntu binary packages installs /usr/bin/aodh-api
    as it is in source images also. For details please check
    LP bug report.

    Closes-Bug: #1953059
    Change-Id: I9efe73193bf828b084c2844be73c9813a969c9c7

tags: added: in-stable-xena
Mark Goddard (mgoddard)
summary: - Kolla-ansible generating wrong wsgi apache template for AODH
+ Kolla-ansible generating wrong wsgi apache template for AODH on Debian
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 11.3.0

This issue was fixed in the openstack/kolla-ansible 11.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 14.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 14.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 12.4.0

This issue was fixed in the openstack/kolla-ansible 12.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 13.1.0

This issue was fixed in the openstack/kolla-ansible 13.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.