havana openstack-dashboard from UCA enforces /etc/apache2/conf.d/openstack-dashboard.conf symlink

Bug #1285765 reported by James Troup
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
horizon (Ubuntu)
Triaged
Low
Unassigned

Bug Description

After installing the openstack-dashboard from the Havana pocket of the
UCA on Ubuntu 12.04, I removed the
/etc/apache2/conf.d/openstack-dashboard.conf symlink in favour of our
local/custom config in
/etc/apache2/sites-{available,enabled}/$HOSTNAME as is our site/normal
practice.

On upgrade the openstack-dashboard re-added the symlink which caused
conflicting WSGI Process Groups and apache to fail to start, which in
turn caused the package upgrade to fail.

I then tried removing both
/etc/apache2/conf-available/openstack-dashboard.conf and
/etc/apache2/conf.d/openstack-dashboard.conf but the upgrade still
added a dangling symlink in
/etc/apache2/conf.d/openstack-dashboard.conf.

Eventually I was able to unbreak the upgrade by re-adding
/etc/apache2/conf-available/openstack-dashboard.conf but making it
empty.

I believe if either:

 a) /etc/apache2/conf-available/openstack-dashboard.conf has been
    removed by the administrator

 and/or

 b) /etc/apache2/conf.d/openstack-dashboard.conf has been removed by
    the administrator

then the package postinst should not re-add the
conf.d/openstack-dashboard.conf symlink.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: openstack-dashboard 1:2013.2.2-0ubuntu1~cloud0 [origin: Canonical]
ProcVersionSignature: Ubuntu 3.2.0-53.81-generic 3.2.50
Uname: Linux 3.2.0-53-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
CrashDB: cloud_archive
Date: Thu Feb 27 15:13:31 2014
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:
 TERM=screen-256color-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: horizon
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.conf.available.openstack.dashboard.conf:

mtime.conffile..etc.apache2.conf.available.openstack.dashboard.conf: 2014-02-27T15:08:12.143266
mtime.conffile..etc.openstack.dashboard.local.settings.py: 2014-01-30T00:21:41.567894

Revision history for this message
James Troup (elmo) wrote :
Revision history for this message
Dave Walker (davewalker) wrote :

Another way this could be resolved by admin, and therefore upgrade safe:

I seem to remember that apache2, now demands a .conf extension. Therefore a Debian friendly (rather than a rm) way of resolving this might be to do (untested):

dpkg-divert --add --package openstack-dashboard --rename \
   --divert /etc/apache2/sites-available/openstack-dashboard.conf \
             /etc/apache2/sites-available/openstack-dashboard.conf.disabled

James Page (james-page)
Changed in horizon (Ubuntu):
importance: Undecided → Low
status: New → Triaged
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.