python-keystoneclient sets incorrect configuration causing testsuite failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Medium
|
Dolph Mathews |
Bug Description
When using an old python-
15:38:36 _StringException: Traceback (most recent call last):
15:38:36 File "/var/lib/
15:38:36 self.middleware
15:38:36 File "/var/lib/
15:38:36 self._cache = memorycache.
15:38:36 File "/var/lib/
15:38:36 return client_
15:38:36 File "/usr/lib64/
15:38:36 self.set_
15:38:36 File "/usr/lib64/
15:38:36 self.servers = [_Host(s, self.debug) for s in servers]
15:38:36 File "/usr/lib64/
15:38:36 self.port = int(hostData.
15:38:36 TypeError: int() argument must be a string or a number, not 'NoneType'
the problem is caused by
[_Host(s, self.debug) for s in servers]
. The testsuite passes "servers" down as type string, "localhost:11211", which is going trashed here. the documentation in set_servers of python-memcached 1.31 says:
def set_servers(self, servers):
"""
Set the pool of servers used by this client.
@param servers: an array of servers.
Servers can be passed in two forms:
1. Strings of the form C{"host:port"}, which implies a default weight of 1.
2. Tuples of the form C{("host:port", weight)}, where C{weight} is
an integer weight value.
"""
with other word, the servers parameter needs to be an array, not a string literal.
Changed in python-keystoneclient: | |
assignee: | Dirk Mueller (dmllr) → Dolph Mathews (dolph) |
Changed in python-keystoneclient: | |
importance: | Undecided → Medium |
milestone: | none → 0.2.4 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/27492
Review: https:/