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

flrtvc fails to write emgr.txt #579

Closed
NjM3MjY5NzAgNzA3MzA3 opened this issue Oct 31, 2024 · 9 comments
Closed

flrtvc fails to write emgr.txt #579

NjM3MjY5NzAgNzA3MzA3 opened this issue Oct 31, 2024 · 9 comments
Assignees

Comments

@NjM3MjY5NzAgNzA3MzA3
Copy link
Member

Describe the bug
flrtvc fails to write emgr.txt

To Reproduce
Steps to reproduce the behavior:
Run flrtvc module on AIX, have one host that runs fine and a lot that fail as noted here.

- name: Check FLRTVC and install patches for all filesets
  ibm.power_aix.flrtvc:
    path: /usr/sys/flrtvc
    save_report: true
    verbose: false
    force: false
    clean: false
    extend_fs: true
    protocol: https
  environment:
    PATH: "/usr/bin:/usr/sbin/:/opt/freeware/bin"

Expected behavior
flrtvc installs all fixes

Screenshots

fatal: [host]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "apar": null,
            "check_only": false,
            "clean": false,
            "csv": null,
            "download_only": false,
            "extend_fs": true,
            "filesets": null,
            "flrtvczip": "https://esupport.ibm.com/customercare/sas/f/flrt3/FLRTVC-latest.zip",
            "force": false,
            "localpatchpath": "",
            "localpatchserver": "",
            "path": "/usr/sys/flrtvc",
            "protocol": "https",
            "save_report": true,
            "verbose": false
        }
    },
    "meta": {
        "messages": [
            "Failed to list fixes (emgr), /usr/sys/flrtvc/work/emgr.txt does not exist"
        ]
    },
    "msg": "Failed to get vulnerabilities report, system will not be updated"
}

Don't understand why the emgr.txt file isn't getting written, but it's not failing here, rather here, which is odd.

If the code to remove the emgr.txt file is commented out and the file is touched, the module runs and installs fixes.

# python3 AnsiballZ_flrtvc.py execute
{"changed": true, "msg": "FLRTVC completed successfully", "meta": {"messages"

Environment (please complete the following information):

  • OS: [e.g. AIX 7.2.4.0] 7200-05-08-2420
  • Python Version: [e.g. 2.7.5, 3.6] Python 3.9.20
  • OpenSSH Version: [e.g. 1.0.2] 9.7.3013.1000
  • Ansible Version: [e.g. 2.10.7] ansible [core 2.17.5] 9.7.3013.1000
  • AIX Collection Version: [e.g. 1.2.1] ibm.power_aix:1.9.2

Additional context
Add any other context about the problem here.

@NjM3MjY5NzAgNzA3MzA3
Copy link
Member Author

NjM3MjY5NzAgNzA3MzA3 commented Oct 31, 2024

python is core dumping

---------------------------------------------------------------------------
LABEL:          CORE_DUMP
Date/Time:       Thu Oct 31 16:39:57 MST 2024
Type:            PERM
Resource Name:   SYSPROC
Description
SOFTWARE PROGRAM ABNORMALLY TERMINATED
Detail Data
SIGNAL NUMBER
           5
USER'S PROCESS ID:
              37421526
FILE SYSTEM SERIAL NUMBER
           1
INODE NUMBER
                 16408
CORE FILE NAME
/.ansible/tmp/ansible-tmp-1730417695.6284864-2188553-200841370855405/core
PROGRAM NAME
python3.9
STACK EXECUTION DISABLED
           0
COME FROM ADDRESS REGISTER
_mutex_lo 30C

PROCESSOR ID
  hw_fru_id: N/A
  hw_cpu_id: N/A

ADDITIONAL INFORMATION
_internal 90
??
# dbx /opt/freeware/libexec/python3.9_32 //core
Type 'help' for help.
[using memory image in //core]
reading symbolic information ...internal error: assertion failed at line 7145 in file object.c


Trace/BPT trap in _internal_error at 0xd057ff80 ($t1)
0xd057ff80 (_internal_error+0x80) 80410014            lwz   r2,0x14(r1)
(dbx) where
_internal_error(??, ??, ??) at 0xd057ff80
pth_usched._usched_dispatch_front._event_notify_locked@AF34_24(??, ??, ??, ??, ??) at 0xd058fc4c
_event_notify(??, ??, ??) at 0xd058ee58
_cond_broadcast(??, ??, ??) at 0xd059f628
pthread_cond_signal@AF29_12(??, ??) at 0xd05a1608
pthread_cond_signal(??) at 0xd059fd28
internal error: 1283-228 expected char ',', found ';5,0,352;;'
internal error: 1283-228 expected char ';', found ',352;;'
internal error: 1283-232 index("352;;", ':') failed
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 66 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found ';,0,8;lock_released:7,32,352;mut:27=28=s52__mt_word:29=ar10;0;12;5,0,416;;,384,416;;'
internal error: 1283-228 expected char ';', found ',8;lock_released:7,32,352;mut:27=28=s52__mt_word:29=ar10;0;12;5,0,416;;,384,416;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
PyThread_release_lock(??), line 717 in "thread_pthread.h"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 's_object:,0,64;key:7=*5,64,32;args:7,96,32;kw:7,128,32;weakreflist:7,160,32;dummies:7,192,32;wr_callback:7,224,32;;'
internal error: 1283-228 expected char ',', found '_object:,0,64;key:7=*5,64,32;args:7,96,32;kw:7,128,32;weakreflist:7,160,32;dummies:7,192,32;wr_callback:7,224,32;;'
internal error: 1283-228 expected char ';', found 'object:,0,64;key:7=*5,64,32;args:7,96,32;kw:7,128,32;weakreflist:7,160,32;dummies:7,192,32;wr_callback:7,224,32;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '0,64;key:7=*5,64,32;args:7,96,32;kw:7,128,32;weakreflist:7,160,32;dummies:7,192,32;wr_callback:7,224,32;;'
internal error: 1283-228 expected char ',', found ';,96,32;rlock_count:17,128,32;in_weakreflist:7,160,32;;'
internal error: 1283-228 expected char ';', found ',32;rlock_count:17,128,32;in_weakreflist:7,160,32;;'
internal error: 1283-228 expected char ',', found ';,128,8;;'
internal error: 1283-228 expected char ';', found ',8;;'
internal error: 1283-232 index("8;;", ':') failed
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
release_sentinel(wr_raw = 0xb04fdf28), line 1267 in "_threadmodule.c"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found ';,448,32;filesystem_errors:79,480,32;pycache_prefix:79,512,32;parse_argv:7,544,32;argv:82=83=s8length:28,0,32;items:84=*79,32,32;;,576,64;program_name:79,640,32;xoptions:82,672,64;warnoptions:82,736,64;site_import:7,800,32;bytes_warning:7,832,32;inspect:7,864,32;interactive:7,896,32;optimization_level:7,928,32;p
arser_debug:7,960,32;write_bytecode:7,992,32;verbose:7,1024,32;quiet:7,1056,32;user_site_directory:7,1088,32;configure_c_stdio:7,1120,32;buffered_stdio:7,1152,32;stdio_encoding:79,1184,32;stdio_errors:79,1216,32;check_hash_pycs_mode:79,1248,32;pathconfig_warnings:7,1280,32;pythonpath_env:79,1312,32;home:79,1344,32;module_search_paths_set:7,1376,32;module_search_
paths:82,1408,64;executable:79,1472,32;base_executable:79,1504,32;prefix:79,1536,32;base_prefix:79,1568,32;exec_prefix:79,1600,32;base_exec_prefix:79,1632,32;platlibdir:79,1664,32;skip_source_first_line:7,1696,32;run_command:79,1728,32;run_module:79,1760,32;run_filename:79,1792,32;_install_importlib:7,1824,32;_init_main:7,1856,32;_isolated_interpreter:7,1888,32;
_orig_argv:82,1920,64;;'
internal error: 1283-228 expected char ';', found ',32;filesystem_errors:79,480,32;pycache_prefix:79,512,32;parse_argv:7,544,32;argv:82=83=s8length:28,0,32;items:84=*79,32,32;;,576,64;program_name:79,640,32;xoptions:82,672,64;warnoptions:82,736,64;site_import:7,800,32;bytes_warning:7,832,32;inspect:7,864,32;interactive:7,896,32;optimization_level:7,928,32;parser
_debug:7,960,32;write_bytecode:7,992,32;verbose:7,1024,32;quiet:7,1056,32;user_site_directory:7,1088,32;configure_c_stdio:7,1120,32;buffered_stdio:7,1152,32;stdio_encoding:79,1184,32;stdio_errors:79,1216,32;check_hash_pycs_mode:79,1248,32;pathconfig_warnings:7,1280,32;pythonpath_env:79,1312,32;home:79,1344,32;module_search_paths_set:7,1376,32;module_search_paths
:82,1408,64;executable:79,1472,32;base_executable:79,1504,32;prefix:79,1536,32;base_prefix:79,1568,32;exec_prefix:79,1600,32;base_exec_prefix:79,1632,32;platlibdir:79,1664,32;skip_source_first_line:7,1696,32;run_command:79,1728,32;run_module:79,1760,32;run_filename:79,1792,32;_install_importlib:7,1824,32;_init_main:7,1856,32;_isolated_interpreter:7,1888,32;_orig
_argv:82,1920,64;;'
PyThreadState_Clear(tstate = 0x30012308), line 840 in "pystate.c"
_PyThreadState_DeleteExcept(??, ??), line 954 in "pystate.c"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
_PyEval_ReInitThreads(??), line 434 in "ceval.c"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found ';,192,32;dir_fd:10=r10;-2147483648;2147483647;,224,32;;'
internal error: 1283-228 expected char ';', found ',32;dir_fd:10=r10;-2147483648;2147483647;,224,32;;'
internal error: 1283-228 expected char ',', found ';,224,32;;'
internal error: 1283-228 expected char ';', found ',32;;'
internal error: 1283-232 index("32;;", ':') failed
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found ';,128,32;narrow:35,160,32;fd:10,192,32;length:23,224,32;object:1,256,32;cleanup:1,288,32;;'
internal error: 1283-228 expected char ';', found ',32;narrow:35,160,32;fd:10,192,32;length:23,224,32;object:1,256,32;cleanup:1,288,32;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 's_dirdesc:,384,32;fd:10,416,32;;'
internal error: 1283-228 expected char ',', found '_dirdesc:,384,32;fd:10,416,32;;'
internal error: 1283-228 expected char ';', found 'dirdesc:,384,32;fd:10,416,32;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '384,32;fd:10,416,32;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 'usigval:,256,32;__si_flags:10,288,32;__pad:124=ar22;0;5;10,320,192;;'
internal error: 1283-228 expected char ',', found 'sigval:,256,32;__si_flags:10,288,32;__pad:124=ar22;0;5;10,320,192;;'
internal error: 1283-228 expected char ';', found 'igval:,256,32;__si_flags:10,288,32;__pad:124=ar22;0;5;10,320,192;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '256,32;__si_flags:10,288,32;__pad:124=ar22;0;5;10,320,192;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found ';,0,16;posix_attr_pgroup:55,32,32;posix_attr_sigmask:137=138=xssigset_t:,64,64;posix_attr_sigdefault:137,128,64;posix_attr_schedpolicy:10,192,32;posix_attr_schedparam:54,224,256;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 'ssigset_t:,64,64;posix_attr_sigdefault:137,128,64;posix_attr_schedpolicy:10,192,32;posix_attr_schedparam:54,224,256;;'
internal error: 1283-228 expected char ',', found 'sigset_t:,64,64;posix_attr_sigdefault:137,128,64;posix_attr_schedpolicy:10,192,32;posix_attr_schedparam:54,224,256;;'
internal error: 1283-228 expected char ';', found 'igset_t:,64,64;posix_attr_sigdefault:137,128,64;posix_attr_schedpolicy:10,192,32;posix_attr_schedparam:54,224,256;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '64,64;posix_attr_sigdefault:137,128,64;posix_attr_schedpolicy:10,192,32;posix_attr_schedparam:54,224,256;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
PyOS_AfterFork_Child(), line 593 in "posixmodule.c.h"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
subprocess_fork_exec(self = ??, args = ??), line 858 in "_posixsubprocess.c"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 's_object:,0,64;m_ml:7=*8=9=xsPyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: 1283-228 expected char ',', found '_object:,0,64;m_ml:7=*8=9=xsPyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: 1283-228 expected char ';', found 'object:,0,64;m_ml:7=*8=9=xsPyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '0,64;m_ml:7=*8=9=xsPyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found 'sPyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: 1283-228 expected char ',', found 'PyMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: 1283-228 expected char ';', found 'yMethodDef:,64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: unexpected value 44 at line 5214 in file stabstring.c
internal error: 1283-228 expected char ',', found '64,32;m_self:10=*5,96,32;m_module:10,128,32;m_weakreflist:10,160,32;vectorcall:11=12=*13=f10,192,32;;'
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
cfunction_call(func = 0xb0295f50, args = ??, kwargs = ??), line 552 in "methodobject.c"
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
internal error: unexpected value 120 at line 5214 in file stabstring.c
_PyObject_MakeTpCall(tstate = 0x300761c8, callable = 0xb0295f50, args = 0x3018bce4, nargs = @0x00000000, keywords = (nil)), line 191 in "call.c"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 116 in "abstract.h"
_PyEval_EvalFrameDefault(??, ??, ??), line 116 in "abstract.h"
unnamed block in _PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb02895d0, globals = ??, locals = ??, args = (nil), argcount = @0x00000017, kwnames = (nil), kwargs = 0x30189ab4, kwcount = @0x300f57e8, kwstep = -1339352576, defs = 0xb0293080, defcount = @0xb0284e30, kwdefs = (nil), closure = 0x30189a58, name = 0x30645c00, qualname = 0x28282284), line 40 in "pycore_ceval.h"
unnamed block in _PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb02895d0, globals = ??, locals = ??, args = (nil), argcount = @0x00000017, kwnames = (nil), kwargs = 0x30189ab4, kwcount = @0x300f57e8, kwstep = -1339352576, defs = 0xb0293080, defcount = @0xb0284e30, kwdefs = (nil), closure = 0x30189a58, name = 0x30645c00, qualname = 0x28282284), line 40 in "pycore_ceval.h"
_PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb02895d0, globals = ??, locals = ??, args = (nil), argcount = @0x00000017, kwnames = (nil), kwargs = 0x30189ab4, kwcount = @0x300f57e8, kwstep = -1339352576, defs = 0xb0293080, defcount = @0xb0284e30, kwdefs = (nil), closure = 0x30189a58, name = 0x30645c00, qualname = 0x28282284), line 40 in "pycore_ceval.h"
_PyFunction_Vectorcall(??, ??, ??, ??), line 396 in "call.c"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
_PyEval_EvalFrameDefault(??, ??, ??), line 118 in "abstract.h"
unnamed block in _PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb0285840, globals = ??, locals = ??, args = (nil), argcount = @0x00000002, kwnames = 0xb02d437c, kwargs = 0xb045a7dc, kwcount = @0xb04ffac0, kwstep = 2, defs = 0xb0284fc0, defcount = @0xb00021b0, kwdefs = (nil), closure = 0xb045a7d4, name = 0x30645e20, qualname = 0x44282242), line 40 in "pycore_ceval.h"
unnamed block in _PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb0285840, globals = ??, locals = ??, args = (nil), argcount = @0x00000002, kwnames = 0xb02d437c, kwargs = 0xb045a7dc, kwcount = @0xb04ffac0, kwstep = 2, defs = 0xb0284fc0, defcount = @0xb00021b0, kwdefs = (nil), closure = 0xb045a7d4, name = 0x30645e20, qualname = 0x44282242), line 40 in "pycore_ceval.h"
_PyEval_EvalCode(tstate = 0x300761c8, _co = 0xb0285840, globals = ??, locals = ??, args = (nil), argcount = @0x00000002, kwnames = 0xb02d437c, kwargs = 0xb045a7dc, kwcount = @0xb04ffac0, kwstep = 2, defs = 0xb0284fc0, defcount = @0xb00021b0, kwdefs = (nil), closure = 0xb045a7d4, name = 0x30645e20, qualname = 0x44282242), line 40 in "pycore_ceval.h"
_PyFunction_Vectorcall(??, ??, ??, ??), line 396 in "call.c"
unnamed block in _PyObject_FastCallDictTstate(tstate = 0x300761c8, callable = 0xb02b14f0, args = ??, nargsf = ??, kwargs = ??, callable = [internal error: nil paramlist for function containing callable]
(dbx)

@schamola
Copy link
Contributor

schamola commented Nov 4, 2024

Hi @NjM3MjY5NzAgNzA3MzA3

Thanks for reporting this!
We will look into it.

@schamola
Copy link
Contributor

schamola commented Nov 8, 2024

Hi @NjM3MjY5NzAgNzA3MzA3
We could not recreate this issue on our environment (with python version 3.9.19)

Don't understand why the emgr.txt file isn't getting written, but it's not failing here, rather here, which is odd.

The issue is not with the emgr command. It would have failed here If the emgr command had failed (rc != 0).

It's failing at this point because It can not find "emgr.txt" at the provided location(i.e.. /usr/sys/flrtvc/work/emgr.txt)

If the code to remove the emgr.txt file is commented out and the file is touched, the module runs and installs fixes.

You mentioned that manually touching the file, and then running the playbook produces the required output, It may be because the file is not able to get generated through the code, but writing onto the file (emgr.txt) works fine.
Removing this code would not solve the issue as the issue potentially lies in the file generation part.

About the core dump, did you find out anything from it ? It should provide a clearer picture about the issue.
Would it be possible for you to send the core file to us?

We think that the problem lies mostly with python and not in the flrtvc module.
Can you please upgrade the python version and then check if the problem still persists ?

We will try to recreate this issue with python 3.9.20 and will let you know of any advancements!

@ptsiamis
Copy link
Contributor

Hey guys i got the exact same issue. Funny thing is that is completely random when it works and when it fails. Example:

1 run on same host: success
2. run on same host: success
3. run on same host: fail
4. run on same host success

And it goes like that, its completely unpredected when it fails or is success and permissions in temporary directories is NOT helping.

@schamola
Copy link
Contributor

@NjM3MjY5NzAgNzA3MzA3 @ptsiamis
We tested with python version 3.9.20, and were able to recreate this issue.
For now, Please upgrade the python version, It should rectify the issue.

That said, We are currently working with the broader AIX open source team, and will let you know about any progress on this.

@schamola
Copy link
Contributor

schamola commented Dec 3, 2024

Hey guys i got the exact same issue. Funny thing is that is completely random when it works and when it fails. Example:

1 run on same host: success 2. run on same host: success 3. run on same host: fail 4. run on same host success

And it goes like that, its completely unpredected when it fails or is success and permissions in temporary directories is NOT helping.

This is not a permission or ansible related issue, rather it seems to be an issue with python version 3.9.20
We did not see this issue with python version 3.9.19. Maybe, raising a query on the AIX Open Source forum could help.

@ptsiamis
Copy link
Contributor

ptsiamis commented Dec 5, 2024

Hey tested it on aix 7.2 and 7.3 and i confirom with python 3.9.20 the play crash, with 3.11 works fine.
Maybe we should add a template note/example to avoid python 3.9.20 on a playbook example ?

@schamola
Copy link
Contributor

@ptsiamis
Thanks for confirming, we are working with the open source team regarding this, will update here about any progress

@nitismis
Copy link
Member

nitismis commented Feb 6, 2025

There is nothing to fix from our ansible collection. Open source team has confirmed that they are working on python version update. Closing the issue.

@nitismis nitismis closed this as completed Feb 6, 2025
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

4 participants