FrostyX / tracer

Tracer finds outdated running applications in your system
GNU General Public License v2.0
81 stars 24 forks source link

Katello Tracer returns empty values. Oracle linux 8. #209

Open minashvili opened 5 months ago

minashvili commented 5 months ago

Hello! I use the Foreman and Katello system to manage the Oracle 8 server. And I discovered the problem that Katello-Tracer using Tracer couldn't send data.

This may have something to do with specifying the dnf package manager and its sqlite database.

I fixed this by changing the following files:

/usr/lib/python3.6/site-packages/tracer/resources/system.py

#replaced yum -> dnf for ol
Was:
"ol":      [("tracer.packageManagers.yum", "Yum")],
Became :
"ol":      [("tracer.packageManagers.dnf", "Dnf")],

and

/usr/lib/python3.6/site-packages/tracer/packageManagers/dnf.py

# added "ol" to list 
Was:
if System.distribution() in ["rhel", "fedora", "centos", "centos-7", "mageia", "suse"]:
Became :
if System.distribution() in ["rhel", "fedora", "centos", "centos-7", "mageia", "suse", "ol"]:

If it's not a known issue, I can help create a PR for you.

FrostyX commented 5 months ago

Hello @minashvili, thank you very much for the report.

If it's not a known issue, I can help create a PR for you.

This is not a known issue, can you please submit the PR? :-)