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

[collect] Saltstack transport fails to collect when from nodes without flatpak installed #3860

Closed
TrevorBenson opened this issue Dec 2, 2024 · 6 comments · Fixed by #3886

Comments

@TrevorBenson
Copy link
Member

TrevorBenson commented Dec 2, 2024

[sostest-2:run_command] Running command cat /etc/os-release
[sostest-1:run_command] Running command rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\n"
[sostest-2:run_command] Running command rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\n"
[sostest-1:run_command] Running command flatpak list --columns=name,version,branch
[sostest-2:run_command] Running command flatpak list --columns=name,version,branch
No nodes connected. Aborting...
Could not obtain installed package list
[root@sostest-1 ~]# flatpak list
-bash: flatpak: command not found

By installing flatpak on a single node, instead of No nodes connected. Aborting... 1 node ends up connected and the collection continues to execute.

Found while testing from packit copr repository in sos-4.8.1.

@TrevorBenson
Copy link
Member Author

@jcastill This might be of interest to you as oc also implements the run_command in the transport.

@jcastill
Copy link
Member

jcastill commented Dec 2, 2024

Thanks for the heads up. I'll try to reproduce in the lab tonight

@TrevorBenson
Copy link
Member Author

Thanks for the heads up. I'll try to reproduce in the lab tonight

Did oc transport work fine while flatpak is missing? If so I'll dig deeper into saltstack as it being the only transport that seems to have the problem.

@jcastill
Copy link
Member

jcastill commented Dec 4, 2024

So far I had no luck reproducing, but that could be more an issue on my lab than anything else. Start digging deeper into saltstack and as soon as I manage to get it reproduced I'll let you know.

@TrevorBenson
Copy link
Member Author

@jcastill So you ran sos collect --cluster ocp --transport oc and any node without flatpak installed still appeared in the sos-collection? If that is the case then I suspect it is specific to the saltstack transport.

@TrevorBenson
Copy link
Member Author

@jcastill Found the root cause, opened #3886 to resolve the issue.

@TrevorBenson TrevorBenson changed the title [collect] Saltstack transport fails to collect when no node has flatpak installed [collect] Saltstack transport fails to collect when from nodes without flatpak installed Dec 17, 2024
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

Successfully merging a pull request may close this issue.

2 participants