upgrade charm on aodh from 18.11 to 21.01 did not trigger wsgi template render for apache2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack AODH Charm |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
After upgrading aodh to 21.01 latest charm on a xenial-queens cloud, I saw aodh exhibit the following symptom:
Blocked status with details: Ports which should be open, but are not: 8032
When I investigated the unit, I found haproxy and apache were both trying to listen on 8042.
The file /etc/apache2/
Listen 8032
VirtualHost *:8032
group=aodh
The Listen and virtualHost ports were 8042, and the group=aodh was missing from the WSGIProcess line, and no amount of config-changed seems to be trying to re-generate the rendered wsgi file for apache2.
Here is a private link to the unit debug log during a config-changed hook for setting debug=true:
https:/
Workaround is to perform the following on each unit of aodh:
systemctl stop pacemaker sites-available /aodh-api. conf
systemctl stop corosync
systemctl stop haproxy
systemctl stop apache2
vi /etc/apache2/
# change 8042 port references to 8032)
# add "group=aodh" after user=aodh on the WSGIDaemonProcess line
systemctl start corosync
systemctl start pacemaker
systemctl start apache2