You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ansible-navigator with container images, only the "Image information" section works correctly. Attempting to retrieve other information, such as "General information," results in the following error message:
humph. Something went really wrong while introspecting the image.
Details have been added to the log file
[HINT] Please log an issue about this one, it shouldn't have happened
ANSIBLE-NAVIGATOR VERSION
ansible-navigator 24.12.1.dev2
(The issue persists with other versions as well)
CONFIGURATION
LOG FILE
024-12-18T14:54:24.519449+00:00 ERROR 'ansible_navigator.actions.images._parse' Unable to extract introspection from stdout
Traceback (most recent call last):
File "/home/landries/projects/ansible-navigator/src/ansible_navigator/actions/images.py", line 537, in _parse
_warnings, json_str = output.split("{", 1)
ValueError: not enough values to unpack (expected 2, got 1)
2024-12-18T14:54:24.520739+00:00 ERROR 'ansible_navigator.actions.images._parse' Image introspection failed (parsed), the return value was:
Traceback (most recent call last):
File "/home/landries/projects/ansible-navigator/src/ansible_navigator/actions/images.py", line 537, in _parse
_warnings, json_str = output.split("{", 1)
ValueError: not enough values to unpack (expected 2, got 1)
STEPS TO REPRODUCE
Run ansible-navigator with a container image.
Attempt to view "General information" or other introspection details.
EXPECTED RESULTS
The "General information" and other details should be displayed without errors.
ACTUAL RESULTS
The error above is shown.
ADDITIONAL INFORMATION
Root Cause (Debug Findings):
Upon debugging, the issue probably lies in src > ansible_navigator > data > image_introspect.py when trying to gather information about system packages.
For debugging purposes, SystemPackages() was commented out, leading to the expected, functioning result.
Otherwise, JSON-dumping the result hangs indefinitely.
laurentiuandries
changed the title
ansible-navigator Fails to Provide General Information for Images When Using Default Runner Mode (pexpect)
ansible-navigator Fails to Provide General Information for Images
Dec 20, 2024
ISSUE TYPE
SUMMARY
When using
ansible-navigator
with container images, only the "Image information" section works correctly. Attempting to retrieve other information, such as "General information," results in the following error message:ANSIBLE-NAVIGATOR VERSION
(The issue persists with other versions as well)
CONFIGURATION
LOG FILE
STEPS TO REPRODUCE
ansible-navigator
with a container image.EXPECTED RESULTS
The "General information" and other details should be displayed without errors.
ACTUAL RESULTS
The error above is shown.
ADDITIONAL INFORMATION
Root Cause (Debug Findings):
Upon debugging, the issue probably lies in
src > ansible_navigator > data > image_introspect.py
when trying to gather information about system packages.Code snippet from
image_introspect.py
:For debugging purposes,
SystemPackages()
was commented out, leading to the expected, functioning result.Otherwise, JSON-dumping the result hangs indefinitely.
Related Issues:
#1867
#1795
The text was updated successfully, but these errors were encountered: