[Bug 1737697] Re: keystone.postinst fails trying to a2ensite non-existent config
Corey Bryant
corey.bryant at canonical.com
Fri Jan 5 18:51:26 UTC 2018
Hi Tobias,
That bit of code is automatically generated by a common Debian helper
utility for apache2 so that's very likely not going to change.
Can the puppet modules leave the keystone.conf in place (don't remove
it) and instead disable it after installing/upgrading the package with
'a2dissite keystone'? That should allow you to use a different site
config file.
Thanks,
Corey
** Changed in: keystone (Ubuntu)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/1737697
Title:
keystone.postinst fails trying to a2ensite non-existent config
Status in keystone package in Ubuntu:
Won't Fix
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keystone/+bug/1737697/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list