When deploying configuration files from Satellite 5.x its failing with error "unsupported hash type" ?
Issue
# rhncfg-client get /test/file
Using server name satellite.example.com
Traceback (most recent call last):
File "/usr/bin/rhncfg-client", line 38, in ?
sys.exit(Main().main() or 0)
File "/usr/share/rhn/config_common/rhn_main.py", line 208, in main
handler.run()
File "/usr/share/rhn/config_client/rhncfgcli_get.py", line 25, in run
self.options.exclude)
File "/usr/share/rhn/config_common/deploy.py", line 42, in deploy_files
finfo = repository.get_file_info(*args, **kwargs)
File "/usr/share/rhn/config_client/rpc_cli_repository.py", line 91, in get_file_info
temp_file, dirs_created = f.process(result, directory=dest_directory)
File "/usr/share/rhn/config_common/file_utils.py", line 84, in process
if file_struct['checksum'] != utils.getContentChecksum(
File "/usr/share/rhn/config_common/utils.py", line 180, in getContentChecksum
engine = hashlib.new(checksum_type)
File "/usr/lib64/python2.4/site-packages/hashlib.py", line 87, in __py_new
return __get_builtin_constructor(name)(string)
File "/usr/lib64/python2.4/site-packages/hashlib.py", line 80, in __get_builtin_constructor
raise ValueError, "unsupported hash type"
ValueError: unsupported hash type
Environment
- Red Hat Satellite 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
