RedHatInsights / insights-core

Insights Core is a data collection and processing framework used by Red Hat Insights
https://cloud.redhat.com/insights
Apache License 2.0
153 stars 183 forks source link

The installed_rpms spec does work on RHEL6 #2015

Closed xiangce closed 5 years ago

xiangce commented 5 years ago

Reported by @Rezney:

I tried to test this on RHEL6 and got:

[root@localhost ~]# insights-inspect insights.parsers.installed_rpms.InstalledRpms Missing Dependencies: Requires: insights.specs.Specs.installed_rpms

Is this just my misconfiguration?

I met this problem on my RHEL6 too,

DEBUG:insights.core.plugins:Couldn't execute: /usr/bin/rpm -qa --qf '{"name":"%{NAME}","epoch":"%{EPOCH}","version":"%{VERSION}","release":"%{RELEASE}","arch":"%{ARCH}","installtime":" %{INSTALLTIME:date}","buildtime":"%{BUILDTIME}","vendor":"%{VENDOR}","buildhost":"%{BUILDHOST}","sigpgp":"%{SIGPGP:pgpsig}"} I think this should be an issue of insights on RHEL6

ln -s /bin/rpm /usr/bin/rpm

And we'll fix it asap.

xiangce commented 5 years ago

On RHEL 6 the rpm only exists in /bin/

The /bin/rpm works for all RHEL6, RHEL7 and RHEL8.

uploader.json is correct and no need to change.