Skip to main content
NetApp Knowledge Base

After upgrading StorageGRID from 11.5 to 11.6, Ansible Module Keys stop working

Views:
47
Visibility:
Public
Votes:
0
Category:
storagegrid-webscale
Specialty:
sgrid
Last Updated:

Applies to

  • Ansible Module Keys
  • StorageGRID WebScale 11.6.x

Issue

  • The StorageGrid Ansible module, na_sg_org_user_s3_key is failing after StorageGrid 11.6 upgrade
  • The following Errors are seen when running the module:
- name: create a s3 key
netapp.storagegrid.na_sg_org_user_s3_key:
api_url: "{{ grid_admin_base_url }}"
auth_token: "{{ auth.json.data }}"
validate_certs: false
state: present
unique_user_name: /user/"{{ new_name }}"
register: key_outputfatal: [localhost]: FAILED! => {
"changed": false,
"module_stderr": "Shared connection to localhost closed.\r\n",
"module_stdout": "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/la...l-warnings\r\n InsecureRequestWarning)\r\nTraceback (most recent call last):\r\n File \"/home/ansible/.ansible/tmp/ansible-tmp-1656080023.3068159-490955-195734125676830/AnsiballZ_na_sg_org_user_s3_key.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/home/ansible/.ansible/tmp/ansible-tmp-1656080023.3068159-490955-195734125676830/AnsiballZ_na_sg_org_user_s3_key.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/ansible/.ansible/tmp/ansible-tmp-1656080023.3068159-490955-195734125676830/AnsiballZ_na_sg_org_user_s3_key.py\", line 48, in invoke_module\r\n run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload_e1vhgko4/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload.zip/ansible_collections/netapp/storagegrid/plugins/modules/na_sg_org_user_s3_key.py\", line 210, in <module>\r\n File \"/tmp/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload_e1vhgko4/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload.zip/ansible_collections/netapp/storagegrid/plugins/modules/na_sg_org_user_s3_key.py\", line 206, in main\r\n File \"/tmp/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload_e1vhgko4/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload.zip/ansible_collections/netapp/storagegrid/plugins/modules/na_sg_org_user_s3_key.py\", line 181, in apply\r\n File \"/tmp/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload_e1vhgko4/ansible_netapp.storagegrid.na_sg_org_user_s3_key_payload.zip/ansible_collections/netapp/storagegrid/plugins/modules/na_sg_org_user_s3_key.py\", line 130, in get_org_user_id\r\nTypeError: 'NoneType' object is not subscriptable\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device