AIX Open Source

AIX Open Source

 View Only
  • 1.  Reg : md5 error issue on the AIX server

    Posted Tue May 18, 2021 09:35 AM
    Hello All,

    Am facing the issue when I ran the playbook from ansible tower to AIX
    server, below is the error, any body faced issue and help will be greatful.

    {
    "_ansible_no_log": false,
    "module_stderr": "Shared connection to ampsv020dun0p.saint-gobain.com
    closed.\r\n",
    "changed": false,
    "module_stdout": "ERROR:root:code for hash md5 was not found.\r
    \nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type md5\r\nERROR:root:code for
    hash sha1 was not found.\r\nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type sha1\r\nERROR:root:code for
    hash sha224 was not found.\r\nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type sha224\r\nERROR:root:code for
    hash sha256 was not found.\r\nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type sha256\r\nERROR:root:code for
    hash sha384 was not found.\r\nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type sha384\r\nERROR:root:code for
    hash sha512 was not found.\r\nTraceback (most recent call last):\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 147, in <module>\r\n
    globals()[__func_name] = __get_hash(__func_name)\r\n File
    \"/opt/freeware/lib/python2.7/hashlib.py\", line 97, in
    __get_builtin_constructor\r\n raise ValueError('unsupported hash type '
    + name)\r\nValueError: unsupported hash type sha512\r\nTraceback (most
    recent call last):\r\n File
    \"/home/sgiuxat2/.ansible/tmp/ansible-tmp-1621245753.94-255-20281593180588/AnsiballZ_command.py
    \", line 102, in <module>\r\n _ansiballz_main()\r\n File
    \"/home/sgiuxat2/.ansible/tmp/ansible-tmp-1621245753.94-255-20281593180588/AnsiballZ_command.py
    \", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path,
    ANSIBALLZ_PARAMS)\r\n File
    \"/home/sgiuxat2/.ansible/tmp/ansible-tmp-1621245753.94-255-20281593180588/AnsiballZ_command.py
    \", line 37, in invoke_module\r\n from ansible.module_utils import basic
    \r\n File
    \"/tmp/ansible_command_payload_QcR3RM/ansible_command_payload.zip/ansible/module_utils/basic.py
    \", line 124, in <module>\r\n File \"/opt/freeware/lib/python2.7/sha.py\",
    line 10, in <module>\r\n from hashlib import sha1 as sha\r\nImportError:
    cannot import name sha1\r\n",
    "rc": 1,
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"
    }

    Thanks for understanding
    Regards
    Rudhramoorthy M
    UniX/LinuX Administrator</module></module></module></module></module></module></module></module></module>


  • 2.  RE: Reg : md5 error issue on the AIX server

    Posted Wed May 19, 2021 01:30 AM
    Where is your Ansible tower installed ? Is it on a Linux system ?
    From where did you acquire modules/playbook ? 
    Do you have right level of python on AIX system ? Are any other modules/playbook working ?

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Reg : md5 error issue on the AIX server

    Posted Wed May 19, 2021 03:08 AM
    Please check whether you have openssl rpm installed ? If so , please remove it and make sure openssl lpp fileset is installed.
    lslpp -l | grep openssl


    ------------------------------
    Ayappan P
    ------------------------------