yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60283
[Bug 1654472] [NEW] funcion sha512.hash() raise AttributeError
Public bug reported:
2017-01-06 02:45:11.483 | 2017-01-06 10:45:11.480 55501 INFO keystone.cmd.cli [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] Created domain default
2017-01-06 02:45:11.573 | 2017-01-06 10:45:11.572 55501 INFO keystone.cmd.cli [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] Created project admin
2017-01-06 02:45:11.649 | 2017-01-06 10:45:11.647 55501 DEBUG passlib.registry [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'> register_crypt_handler /usr/lib/python2.7/site-packages/passlib/registry.py:284
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 CRITICAL keystone [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] AttributeError: type object 'sha512_crypt' has no attribute 'hash'
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone Traceback (most recent call last):
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/usr/bin/keystone-manage", line 10, in <module>
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone sys.exit(main())
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/manage.py", line 45, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone cli.main(argv=sys.argv, config_files=config_files)
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 1283, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone CONF.command.cmd_class.main()
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 380, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone klass.do_bootstrap()
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 258, in do_bootstrap
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone 'password': self.password
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/manager.py", line 123, in wrapped
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone __ret_val = __f(*args, **kwargs)
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 411, in wrapper
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone return f(self, *args, **kwargs)
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 421, in wrapper
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone return f(self, *args, **kwargs)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 926, in create_user
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone ref = driver.create_user(user['id'], user)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/sql/core.py", line 429, in wrapper
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone return method(*args, **kwargs)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/backends/sql.py", line 121, in create_user
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone user = utils.hash_user_password(user)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/utils.py", line 129, in hash_user_password
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone return dict(user, password=hash_password(password))
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/utils.py", line 135, in hash_password
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone return passlib.hash.sha512_crypt.hash(
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone AttributeError: type object 'sha512_crypt' has no attribute 'hash'
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone
** Affects: keystone
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1654472
Title:
funcion sha512.hash() raise AttributeError
Status in OpenStack Identity (keystone):
New
Bug description:
2017-01-06 02:45:11.483 | 2017-01-06 10:45:11.480 55501 INFO keystone.cmd.cli [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] Created domain default
2017-01-06 02:45:11.573 | 2017-01-06 10:45:11.572 55501 INFO keystone.cmd.cli [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] Created project admin
2017-01-06 02:45:11.649 | 2017-01-06 10:45:11.647 55501 DEBUG passlib.registry [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'> register_crypt_handler /usr/lib/python2.7/site-packages/passlib/registry.py:284
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 CRITICAL keystone [req-666b53bd-ef9b-4eb3-be09-2c1fa5483162 - - - - -] AttributeError: type object 'sha512_crypt' has no attribute 'hash'
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone Traceback (most recent call last):
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/usr/bin/keystone-manage", line 10, in <module>
2017-01-06 02:45:11.695 | 2017-01-06 10:45:11.649 55501 TRACE keystone sys.exit(main())
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/manage.py", line 45, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone cli.main(argv=sys.argv, config_files=config_files)
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 1283, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone CONF.command.cmd_class.main()
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 380, in main
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone klass.do_bootstrap()
2017-01-06 02:45:11.696 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 258, in do_bootstrap
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone 'password': self.password
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/manager.py", line 123, in wrapped
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone __ret_val = __f(*args, **kwargs)
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 411, in wrapper
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone return f(self, *args, **kwargs)
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 421, in wrapper
2017-01-06 02:45:11.697 | 2017-01-06 10:45:11.649 55501 TRACE keystone return f(self, *args, **kwargs)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/core.py", line 926, in create_user
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone ref = driver.create_user(user['id'], user)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/sql/core.py", line 429, in wrapper
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone return method(*args, **kwargs)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/identity/backends/sql.py", line 121, in create_user
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone user = utils.hash_user_password(user)
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/utils.py", line 129, in hash_user_password
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone return dict(user, password=hash_password(password))
2017-01-06 02:45:11.698 | 2017-01-06 10:45:11.649 55501 TRACE keystone File "/opt/stack/keystone/keystone/common/utils.py", line 135, in hash_password
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone return passlib.hash.sha512_crypt.hash(
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone AttributeError: type object 'sha512_crypt' has no attribute 'hash'
2017-01-06 02:45:11.699 | 2017-01-06 10:45:11.649 55501 TRACE keystone
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1654472/+subscriptions
Follow ups