Public bug reported:

Upgrading to xenial ocata cloud-archive package for keystone fails on
keystone.postinst script where it tries to a2ensite keystone.conf

when deploying from openstack puppet modules there is no keystone.conf file.
possible to add a if [ -f path/to/keystone.conf ] check before running a2ensite?

from /var/lib/dpkg/info/keystone.postinst the following section causes
the failure

# Automatically added by dh_apache2
if true; then
        if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
                . /usr/share/apache2/apache2-maintscript-helper
                for conf in keystone.conf  ; do
                        apache2_invoke ensite $conf  || exit $?
                done
        fi
fi


like this:
sh -x /var/lib/dpkg/info/keystone.postinst upgrade
+ a2ensite -m -q keystone.conf
+ return 1
+ exit 1

resolved by: comment out the ensite call, upgrade package, uncomment
line

** Affects: keystone (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1737697

Title:
  keystone.postinst fails trying to a2ensite non-existent config

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keystone/+bug/1737697/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to