Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flrtcv module error name ssl #584

Open
smurphyit opened this issue Dec 11, 2024 · 5 comments
Open

flrtcv module error name ssl #584

smurphyit opened this issue Dec 11, 2024 · 5 comments
Assignees

Comments

@smurphyit
Copy link

Describe the bug
When attempting to run flrtvc script it runs for a bit, then errors out.

To Reproduce
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: name 'ssl' is not defined

Expected behavior
To execute ideally without errors, and to install the appropriate ifixes.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: AIX 7.2 TL5 SP7
  • Python Version: 2.7.13, 3.9.16
  • OpenSSH Version: 9.7.3013.1000
  • OpenSSL Version: 3.0.13.1000
  • Ansible Version: core 2.17.7
  • AIX Collection Version: 1.9.2

Additional context

@nitismis
Copy link
Member

I did check the code and I see that we are not using variable, package etc by the name "ssl". If you can provide your playbooks or more verbose output (---v), it will help us a lot. We will wait for more info this. Thanks in advance.

@smurphyit
Copy link
Author

smurphyit commented Dec 12, 2024 via email

@smurphyit
Copy link
Author

smurphyit commented Dec 12, 2024

ansible-playbook -i inventory/myhosts -e "hosts=bart.xxx.xxx" playbooks/flrt/flrtvc.yml -e ansible_python_interpreter='/usr/bin/python3' -u ansible --private-key ~/.ssh/ansible/ansible

ok: [bart.xxx.xxx] => {

fatal: [bart.xxx.xxx]: FAILED! => {"changed": false, "module_stderr": "Shared connection to bart.xxx.xxx closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/home/ansible/tmp/.ansible/ansible-tmp-1734025450.9047773-879387-186699585884386/AnsiballZ_flrtvc.py", line 107, in \r\n _ansiballz_main()\r\n File "/home/ansible/tmp/.ansible/ansible-tmp-1734025450.9047773-879387-186699585884386/AnsiballZ_flrtvc.py", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File "/home/ansible/tmp/.ansible/ansible-tmp-1734025450.9047773-879387-186699585884386/AnsiballZ_flrtvc.py", line 47, in invoke_module\r\n runpy.run_module(mod_name='ansible_collections.ibm.power_aix.plugins.modules.flrtvc', init_globals=dict(module_fqn='ansible_collections.ibm.power_aix.plugins.modules.flrtvc', modlib_path=modlib_path),\r\n File "/opt/freeware/lib64/python3.9/runpy.py", line 225, in run_module\r\n return run_module_code(code, init_globals, run_name, mod_spec)\r\n File "/opt/freeware/lib64/python3.9/runpy.py", line 97, in run_module_code\r\n run_code(code, mod_globals, init_globals,\r\n File "/opt/freeware/lib64/python3.9/runpy.py", line 87, in run_code\r\n exec(code, run_globals)\r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/flrtvc.py", line 1426, in \r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/flrtvc.py", line 1398, in main\r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/flrtvc.py", line 1159, in run_downloader\r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible/module_utils/urls.py", line 995, in open_url\r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible/module_utils/urls.py", line 852, in open\r\n File "/tmp/ansible_flrtvc_payload_73w7su0/ansible_flrtvc_payload.zip/ansible/module_utils/urls.py", line 479, in make_context\r\nNameError: name 'ssl' is not defined\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

bart.xxx.xxx : ok=1 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0

@smurphyit
Copy link
Author

Note: attempted various different versions of openssh and openssl, using both AD accounts and a local account, no difference. The playbook runs for a bit, and removes any existing installed ifixes on the client lpar. Once that happens, it fails out with the ssl error.

@schamola schamola self-assigned this Jan 21, 2025
@schamola
Copy link
Contributor

Hi @smurphyit
From the information provided, the error seems to be arising from this line
It seems that there is some issue with the URL that the module is trying to download the fix from.
Can you please confirm if the URL is accessible from your system ?
Also, if possible, please provide the report that the module is generating for better understanding of the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants