You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/10/14 15:58:06 UTC
[GitHub] [trafficcontrol] zrhoffman opened a new issue #6285: TO Postinstall: AttributeError: module 'hashlib' has no attribute 'scrypt'
zrhoffman opened a new issue #6285:
URL: https://github.com/apache/trafficcontrol/issues/6285
<!--
************ STOP!! ************
If this issue identifies a security vulnerability, DO NOT submit it! Instead, contact
the Apache Traffic Control Security Team at security@trafficcontrol.apache.org and follow the
guidelines at https://apache.org/security regarding vulnerability disclosure.
- For *SUPPORT QUESTIONS*, use the #traffic-control channel on the ASF slack (https://s.apache.org/tc-slack-request)
or the Traffic Control Users mailing list (send an email to users-subscribe@trafficcontrol.apache.org to subscribe).
- Before submitting, please **SEARCH GITHUB** for a similar issue or PR
* https://github.com/apache/trafficcontrol/issues
* https://github.com/apache/trafficcontrol/pulls
-->
<!-- Do not submit security vulnerabilities or support requests here - see above -->
## This Bug Report affects these Traffic Control components:
<!-- delete all those that don't apply -->
- Traffic Ops - Postinstall
## Current behavior:
<!-- Describe how the bug happens -->
Python Postinstall fails on CentOS 7 if Python 3 is installed (but succeeds if Python 3 is *not* installed, because it will use Python 2).
Originally reported by @rsidhaarth in the first draft of #6236.
## Expected behavior:
<!-- Describe what the behavior would be without the bug -->
the Python Postinstall script should succeed on CentOS 7, with or without Python 3.
## Steps to reproduce:
<!-- If the current behavior is a bug, please provide the *STEPS TO REPRODUCE* and
include the applicable TC version.
-->
```shell
<<'DOCKER_COMMANDS' docker run --rm -iv$(pwd):/opt -w/opt centos:7 bash
yum -y install python3 &&
<<'PYTHON_COMMANDS' PYTHONPATH=traffic_ops/install/bin python3
import _postinstall
print(_postinstall.hash_pass('mysecretpassword'))
PYTHON_COMMANDS
DOCKER_COMMANDS
```
Output:
```python
[...]
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/opt/traffic_ops/install/bin/_postinstall.py", line 433, in hash_pass
hashed = hashlib.scrypt(passwd.encode(), salt=salt, n=n, r=r_val, p=p_val, dklen=dklen)
AttributeError: module 'hashlib' has no attribute 'scrypt'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficcontrol] ocket8888 closed issue #6285: TO Postinstall: AttributeError: module 'hashlib' has no attribute 'scrypt'
Posted by GitBox <gi...@apache.org>.
ocket8888 closed issue #6285:
URL: https://github.com/apache/trafficcontrol/issues/6285
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org