[Bug 1737697] Re: keystone.postinst fails trying to a2ensite non-existent config

Tobias Urdin tobias at busybox.se
Mon Jan 22 12:37:22 UTC 2018


Resolved upstream by changing usage, now keeping keystone.conf empty
https://review.openstack.org/#/c/535727/

-- 
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