tests are failing due to a new deprecation warning:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "keystone/tests/unit/test_backend_sql.py", line 59, in setUp
self.load_fixtures(default_fixtures)
File "keystone/tests/unit/core.py", line 754, in load_fixtures
user_copy = self.identity_api.create_user(user_copy)
File "keystone/common/manager.py", line 123, in wrapped
__ret_val = __f(*args, **kwargs)
File "keystone/identity/core.py", line 410, in wrapper
return f(self, *args, **kwargs)
File "keystone/identity/core.py", line 420, in wrapper
return f(self, *args, **kwargs)
File "keystone/identity/core.py", line 925, in create_user
ref = driver.create_user(user['id'], user)
File "keystone/common/sql/core.py", line 429, in wrapper
return method(*args, **kwargs)
File "keystone/identity/backends/sql.py", line 121, in create_user
user = utils.hash_user_password(user)
File "keystone/common/utils.py", line 129, in hash_user_password
return dict(user, password=hash_password(password))
File "keystone/common/utils.py", line 136, in hash_password
password_utf8, rounds=CONF.crypt_strength)
File "/var/lib/jenkins/workspace/openstack_gerrit/keystone/.tox/sqla_py27/lib/python2.7/site-packages/passlib/utils/decor.py", line 190, in wrapper
warn(msg % tmp, DeprecationWarning, stacklevel=2)
DeprecationWarning: the method passlib.handlers.sha2_crypt.sha512_crypt.encrypt() is deprecated as of Passlib 1.7, and will be removed in Passlib 2.0, use .hash() instead.
Looks like this is going to require a version bump of passlib in order to fix. Right now we require anything greater than 1.6 [0], but if we switch to using `passlib. hash.sha512_ crypt.using( ).hash( )` we will have to bump our version requirement to 1.7, I think.
[0] https:/ /github. com/openstack/ keystone/ blob/6a67937b87 03b61c4084eb4c8 dd908e3cea20c35 /requirements. txt#L20