default value of paste_config breaks apache+wsgi on Ubuntu

Bug #1463358 reported by Stefan Andres
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
puppet-keystone
Fix Released
High
Unassigned

Bug Description

When using https://github.com/stackforge/puppet-keystone/commit/c30afe5aef247cd35b110d9778bab91cd63b5f6a 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 77.247.82.199:52085] 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 77.247.82.199:52085] 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 77.247.82.199:52085] Traceback (most recent call last):
[Tue Jun 09 12:31:52.820742 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] 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 77.247.82.199:52085] config.configure()
[Tue Jun 09 12:31:52.820781 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] File "/usr/lib/python2.7/dist-packages/keystone/common/config.py", line 973, in configure
[Tue Jun 09 12:31:52.820795 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] help='Do not monkey-patch threading system modules.'))
[Tue Jun 09 12:31:52.820803 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1625, in __inner
[Tue Jun 09 12:31:52.820815 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] result = f(self, *args, **kwargs)
[Tue Jun 09 12:31:52.820822 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1781, in register_cli_opt
[Tue Jun 09 12:31:52.820833 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] raise ArgsAlreadyParsedError("cannot register CLI option")
[Tue Jun 09 12:31:52.820855 2015] [:error] [pid 62367:tid 140460182050560] [remote 77.247.82.199:52085] 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
Review: https://review.openstack.org/189742

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

Reviewed: https://review.openstack.org/189742
Committed: https://git.openstack.org/cgit/stackforge/puppet-keystone/commit/?id=e5cb116e042732032080d5e1c655e35213d77581
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.