Unexpected keyword argument 'cache_cas' after upgrade keystone from Grizzly to Havana

Bug #1247703 reported by li,chen
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Low
Unassigned

Bug Description

Hi list,

I'm working under CentOS 6.4.

I'm trying to upgrade my set-up from Grizzly to Havana, after I upgraded keystone, I get error:
        keystone user-list
        Authorization Failed: init() got an unexpected keyword argument 'cache_cas' (HTTP 400)

After change to token driver back to sql,
        [token]
        driver = keystone.token.backends.sql.Token
        # driver = keystone.token.backends.memcache.Token

It works normal again.

As the keystone.log pointed, the issue is caused by "keystone/token/backends/memcache.py":
        self._memcache_client = memcache.Client(memcache_servers, debug=0,
                                                cache_cas=True)

But, I checked my phython-memcached, I believe it is already the newest version:
        yum list | grep memcache
        memcached.x86_64 1.4.4-3.el6 @base
        python-memcached.noarch 1.43-6.el6 @base

Anyone know why this happen?

Thanks.
-chen

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

This is an issue with the version of the python-memcache library provided. The correct version is 1.48. I am working to get the test-requires.txt updated to reflect this change for havana as well. The bug has been filed with RedHat (in their bugzilla) to ensure the Havana RDO and RHOS have the right RPMs

https://bugzilla.redhat.com/show_bug.cgi?id=986423

Changed in keystone:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Adam Young (ayoung)
Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

python-memcached-1.53 is now available for RDO
Leaving this bug open to track the setting of the correct min version in keystone's test-requirements.txt
Should this be >= 1.48 or >= 1.53 ?

Dolph Mathews (dolph)
summary: - Issue with unexpected keyword argument 'cache_cas' after upgrade
- keystone from Grizzly to Havana
+ Unexpected keyword argument 'cache_cas' after upgrade keystone from
+ Grizzly to Havana
Dolph Mathews (dolph)
Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

1.48 is correct and was set as the minimum value for both havana and beyond.

Changed in keystone:
assignee: Adam Young (ayoung) → nobody
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.