ansible-playbook /srv/web/infra/ansible/playbooks/manual/communishift.yml [WARNING]: Skipping plugin (/srv/web/infra/ansible/callback_plugins/fedora_messaging_callback.py) as it seems to be invalid: No module named 'fedora_messaging' PLAY [localhost] ************************************************************************************* TASK [Communishift Role] ***************************************************************************** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.098) 0:00:00.098 ***** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.098) 0:00:00.098 ***** TASK [communishift : include_tasks] ****************************************************************** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.105) 0:00:00.204 ***** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.105) 0:00:00.203 ***** included: /srv/web/infra/ansible/roles/communishift/tasks/deploy-communishift-authorization-operator.yml for localhost TASK [communishift : Create the CommunishiftAuthorization operator k8s namespace] ******************** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.075) 0:00:00.279 ***** Thursday 08 December 2022 23:23:19 +0000 (0:00:00.075) 0:00:00.279 ***** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'kubernetes' is not defined fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"<stdin>\", line 107, in <module>\n File \"<stdin>\", line 99, in _ansiballz_main\n File \"<stdin>\", line 47, in invoke_module\n File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_community.okd.k8s_payload_bjvlq_j_/ansible_community.okd.k8s_payload.zip/ansible_collections/community/okd/plugins/modules/k8s.py\", line 318, in <module>\n File \"/tmp/ansible_community.okd.k8s_payload_bjvlq_j_/ansible_community.okd.k8s_payload.zip/ansible_collections/community/okd/plugins/modules/k8s.py\", line 309, in main\n File \"/tmp/ansible_community.okd.k8s_payload_bjvlq_j_/ansible_community.okd.k8s_payload.zip/ansible_collections/community/okd/plugins/module_utils/k8s.py\", line 34, in __init__\n File \"/tmp/ansible_community.okd.k8s_payload_bjvlq_j_/ansible_community.okd.k8s_payload.zip/ansible_collections/kubernetes/core/plugins/module_utils/common.py\", line 253, in get_api_client\nNameError: name 'kubernetes' is not defined\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
CC: @dkirwan
Do note that ansible-core has moved to use python3.9 now, so likely it's something different from the 3.8 setup.
Metadata Update from @phsmoura: - Issue priority set to: Waiting on Assignee (was: Needs Review) - Issue tagged with: Needs investigation, medium-gain, medium-trouble, ops
Metadata Update from @dkirwan: - Issue assigned to dkirwan
@kevin I've come up with a workaround to get past this issue, I'll have to sync up with you when you get back off vacation, might need to look into new packages/ansible collections.
Metadata Update from @dkirwan: - Assignee reset - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.