python 3 errors with memcache enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned | ||
keystoneauth |
Invalid
|
Undecided
|
Unassigned | ||
keystonemiddleware |
Fix Released
|
Medium
|
Rohan Arora |
Bug Description
Hi, we are using gnocchi 4 running the following:
keystoneauth1 (3.1.0)
keystonemiddleware (4.14.0)
python-
with python 3.5.4
on a configuration file like this :
[keystone_
signing_dir = /var/cache/gnocchi
project_domain_name = default
user_domain_name = default
signing_dir = /var/cache/gnocchi
auth_uri = http://
auth_url = http://
project_name = admin
password = porotito
username = cloudadmin
auth_type = password
auth_type = password
memcached_servers = yourmommecached
insecure=true
endpoint_type = internal
region_name = yourmomregion
memcache_
memcache_secret_key = lalalalalalaalala
After the api starts, the token is asked successfully, but we have this stacktrace when trying to use memcached.
2017-08-28 20:12:41,029 [7] CRITICAL root: Traceback (most recent call last):
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
return app(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = self.process_
File "/usr/local/
resp = super(AuthProtocol, self).process_
File "/usr/local/
allow_
File "/usr/local/
data = self.fetch_
File "/usr/local/
cached = self._cache_
File "/usr/local/
cached = self._token_
File "/usr/local/
key, context = self._get_
File "/usr/local/
self.
File "/usr/local/
digest = hmac.new(secret, token + strategy, HASH_FUNCTION)
TypeError: Can't convert 'bytes' object to str implicitly
any help ?
Changed in keystonemiddleware: | |
assignee: | Tin Lam (lamt) → Rohan Arora (ra271w) |
This exception seems specific to keystonemiddleware, but adding keystoneauth to the report based on the original bug title.