default value of paste_config breaks apache+wsgi on Ubuntu

Bug #1463358 reported by Stefan Andres
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

When using which was merged into stable/juno with apache+wsgi, apache won't be able to start the wsgi because of:

[Tue Jun 09 12:31:52.820680 2015] [:error] [pid 62367:tid 140460182050560] [remote] mod_wsgi (pid=62367): Target WSGI script '/usr/lib/cgi-bin/keystone/main' cannot be loaded as Python module.
[Tue Jun 09 12:31:52.820701 2015] [:error] [pid 62367:tid 140460182050560] [remote] mod_wsgi (pid=62367): Exception occurred processing WSGI script '/usr/lib/cgi-bin/keystone/main'.
[Tue Jun 09 12:31:52.820722 2015] [:error] [pid 62367:tid 140460182050560] [remote] Traceback (most recent call last):
[Tue Jun 09 12:31:52.820742 2015] [:error] [pid 62367:tid 140460182050560] [remote] File "/usr/lib/cgi-bin/keystone/main", line 39, in <module>
[Tue Jun 09 12:31:52.820772 2015] [:error] [pid 62367:tid 140460182050560] [remote] config.configure()
[Tue Jun 09 12:31:52.820781 2015] [:error] [pid 62367:tid 140460182050560] [remote] File "/usr/lib/python2.7/dist-packages/keystone/common/", line 973, in configure
[Tue Jun 09 12:31:52.820795 2015] [:error] [pid 62367:tid 140460182050560] [remote] help='Do not monkey-patch threading system modules.'))
[Tue Jun 09 12:31:52.820803 2015] [:error] [pid 62367:tid 140460182050560] [remote] File "/usr/lib/python2.7/dist-packages/oslo/config/", line 1625, in __inner
[Tue Jun 09 12:31:52.820815 2015] [:error] [pid 62367:tid 140460182050560] [remote] result = f(self, *args, **kwargs)
[Tue Jun 09 12:31:52.820822 2015] [:error] [pid 62367:tid 140460182050560] [remote] File "/usr/lib/python2.7/dist-packages/oslo/config/", line 1781, in register_cli_opt
[Tue Jun 09 12:31:52.820833 2015] [:error] [pid 62367:tid 140460182050560] [remote] raise ArgsAlreadyParsedError("cannot register CLI option")
[Tue Jun 09 12:31:52.820855 2015] [:error] [pid 62367:tid 140460182050560] [remote] ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option

The file /usr/share/keystone/keystone-dist-paste.ini does not exist, though /etc/keystone/keystone-paste.ini does. So when using /etc/keystone/keystone-paste.ini as default, it will work again.

Also, the documentation in the puppet module says it's optional, but that it not true since it ships a default value (besides the value being broken)

Stefan Andres (s-andres)
description: updated
description: updated
Changed in puppet-keystone:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-keystone (stable/juno)

Fix proposed to branch: stable/juno

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (stable/juno)

Submitter: Jenkins
Branch: stable/juno

commit e5cb116e042732032080d5e1c655e35213d77581
Author: Emilien Macchi <email address hidden>
Date: Tue Jun 9 14:27:30 2015 +0000

    Revert "Add paste_config optional parameter"

    This reverts commit 87cf7521cfec78aac69f95ec0f78b8c94fe4b9ae.

    Change-Id: Ied6ea0490ee7113271c0652dc221270533b8b7ed
    Closes-bug: #1463358

tags: added: in-stable-juno
Matt Fischer (mfisch)
Changed in puppet-keystone:
status: Confirmed → Fix Committed
milestone: none → 5.2.0
Changed in puppet-keystone:
status: Fix Committed → Fix Released
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.