Removal of /etc/apache2/sites-available/aodh-api.conf causes dpkg postinst to fail

Bug #2046537 reported by Christian Rohmann
6
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/sites-available/aodh-api.conf (see https://packages.ubuntu.com/jammy-updates/all/aodh-api/filelist).

This file is then referenced in the /var/lib/dpkg/info/aodh-api.postinst script which tries to enable this vhost via:

a2ensite -m -q aodh-api.conf

This fails as the Puppet code actively removes the file /etc/apache2/sites-available/aodh-api.conf altogether.

I suggest to simply empty the file as that allows the package and postinst script to work without errors, but still "removes" the vhost.

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

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.

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.