python-keystone 2012.1+stable~20120824-a16a0ab9-0ubuntu2.4 improperly pulled in patch from upstream

Bug #1117815 reported by Ryan Lane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystone (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Invalid
Undecided
Jamie Strandboge

Bug Description

The configuration option is missing in: /usr/lib/python2.7/dist-packages/keystone/config.py

This leads to a completely broken keystone:

(root): 2013-02-06 23:24:43,480 ERROR no such option: max_param_size
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 184, in __call__
    result = method(context, **params)
  File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 256, in authenticate
    if len(username) > CONF.max_param_size:
  File "/usr/lib/python2.7/dist-packages/keystone/openstack/common/cfg.py", line 784, in __getattr__
    return self._substitute(self._get(name))
  File "/usr/lib/python2.7/dist-packages/keystone/openstack/common/cfg.py", line 980, in _get
    info = self._get_opt_info(name, group)
  File "/usr/lib/python2.7/dist-packages/keystone/openstack/common/cfg.py", line 1060, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: max_param_size

Changed in keystone (Ubuntu):
status: New → Invalid
Changed in keystone (Ubuntu Precise):
assignee: nobody → Jamie Strandboge (jdstrand)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I am not seeing this:
$ dpkg -l|grep python-keystone
ii python-keystone 2012.1+stable~20120824-a16a0ab9-0ubuntu2.4 OpenStack identity service - Python library

$ grep max_param_size /usr/lib/python2.7/dist-packages/keystone/config.py
register_int('max_param_size', default=64)

In testing I also tried authenticating the with no changes to /etc/keystone/keystone.conf:
$ nova keypair-list
+-------+-------------------------------------------------+
| Name | Fingerprint |
+-------+-------------------------------------------------+
| mykey | ad:4f:2a:d2:c1:3f:8b:c0:e6:3f:de:cd:48:8d:fe:08 |
+-------+-------------------------------------------------+

and also with using in the [DEFAULTS] section of /etc/keystone/keystone.conf (and restarting keystone):
max_param_size = 4

$ nova keypair-list
ERROR: Request attribute username must be less than or equal to 4. The server could not comply with the request because the attribute size is invalid (too large). The client is assumed to be in error. (HTTP 400)

Can you provide the exact steps on how to reproduce along with your /etc/keystone/keystone.conf (redacting any passwords or otherwise sensitive information)?

Changed in keystone (Ubuntu Precise):
status: New → Incomplete
Revision history for this message
Ryan Lane (rlane) wrote :

Seems a fresh install works properly. A package upgrade caused this state for me.

Chuck Short (zulcss)
Changed in keystone (Ubuntu Precise):
status: Incomplete → Invalid
Revision history for this message
Ryan Lane (rlane) wrote :

Tracked it down. Our configuration management system was applying patches that applied to an older version of python-keystone and were breaking this version. Sorry for the confusion!

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thanks for follow-up. :)

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.