Removal of /etc/apache2/sites-available/aodh-api.conf causes dpkg postinst to fail
Bug #2046537 reported by
Christian Rohmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-aodh |
New
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 22.04 LTS (Jammy) the aodh-api package contains a default config for the apache vhost at /etc/apache2/
This file is then referenced in the /var/lib/
a2ensite -m -q aodh-api.conf
This fails as the Puppet code actively removes the file /etc/apache2/
I suggest to simply empty the file as that allows the package and postinst script to work without errors, but still "removes" the vhost.
To post a comment you must log in.
In the past We resolved this "problem" in puppet-keystone by leaving a dummy file. However IMHO this is a bug in ubuntu/debian package and they should consider the case where the file can be removed. They insisted they won't change their script in the past but I don't understand what is the actual technical blocker rather than they don't want to be bothered to get the debian helper fixed.
https:/ /bugs.launchpad .net/ubuntu/ +source/ keystone/ +bug/1737697
Note that puppetlabs-apache by default purge all vhost config files. The current behavior is aligned with it.