I stumbled across this issue because I requested to install the sysreport package in my kickstart file. Anaconda complains that such a package doesn't exist. There is a bug report about this already (http://bugs.centos.org/view.php?id=2492), but it's certainly a strange situation.
1. Anaconda doesn't think the package sysreport exists
2. yum thinks it exists: # yum list sysreport Loading "installonlyn" plugin Setting up repositories Reading repository metadata in from local files Available Packages sysreport.noarch 1.4.3-13.el5 base
3. But installing with yum fails: # yum install sysreport Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Package sos - 1.7-9.1.el5.noarch already installed and latest version Nothing to do
4. The sysreport file from the sos package fails to run: # sysreport Traceback (most recent call last): File "/usr/sbin/sysreport", line 31, in ? import sos.policyredhat ImportError: No module named sos.policyredhat
5. But if you extract /usr/sbin/sysreport from the sysreport package using rpm2cpio for instance, it works just fine.
So it would be nice if yum would allow installing the sysreport package (see step 3 above) as that would appear to solve all the problems.
Alfred
On Dec 11, 2007 9:46 AM, Alfred von Campe alfred@von-campe.com wrote:
I stumbled across this issue because I requested to install the sysreport package in my kickstart file. Anaconda complains that such a package doesn't exist. There is a bug report about this already (http://bugs.centos.org/view.php?id=2492), but it's certainly a strange situation.
Anaconda doesn't think the package sysreport exists
yum thinks it exists: # yum list sysreport Loading "installonlyn" plugin Setting up repositories Reading repository metadata in from local files Available Packages sysreport.noarch 1.4.3-13.el5 base
But installing with yum fails: # yum install sysreport Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Package sos - 1.7-9.1.el5.noarch already installed and
latest version Nothing to do
- The sysreport file from the sos package fails to run: # sysreport Traceback (most recent call last): File "/usr/sbin/sysreport", line 31, in ? import sos.policyredhat ImportError: No module named sos.policyredhat
Hmmm something else is 'borked' on the system. Here it is on a 5.1 updated system:
[root@nausicaa ~]# sysreport
WARNING: sysreport is deprecated, please use sosreport instead.
sosreport (version 1.7)
This utility will collect some detailed information about the hardware and setup of your Red Hat Enterprise Linux system. The information is collected and an archive is packaged under /tmp, which you can send to a support representative. Red Hat will use this information for diagnostic purposes ONLY and it will be considered confidential information.
I do see a bug above...
- But if you extract /usr/sbin/sysreport from the sysreport
package using rpm2cpio for instance, it works just fine.
So it would be nice if yum would allow installing the sysreport package (see step 3 above) as that would appear to solve all the problems.
Alfred
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Dec 11, 2007, at 11:56, Stephen John Smoogen wrote:
Hmmm something else is 'borked' on the system. Here it is on a 5.1 updated system:
Strange, this is my CentOS 5 test system, which was just freshly installed via kickstart (for the 8th time or so). I keep tweaking the kickstart file and my post.sh script. I am using a local repo that gets rsync'ed every night, so unless something is broken in that repo, I don't see what could have possibly messed up this system. I'm about to kickstart it again (I'll comment out the "yum update" from the post.sh script to see if it makes a difference).
I do see a bug above...
Well, care to elaborate?
Alfred
On Tue, Dec 11, 2007 at 01:00:05PM -0500, Alfred von Campe wrote: ....
Well, care to elaborate?
Well, sysreport has been deprecated by sos in 5.1 :)
Tru
Well, care to elaborate?
Well, sysreport has been deprecated by sos in 5.1 :)
Oh, that problem. Yeah, well, sosreport has the same problem on my system: it doesn't work. The reason is that /usr/sbin/sysreport is a symlink to /usr/sbin/sosreport:
-rwxr-xr-x 1 root root 28439 Nov 11 20:02 /usr/sbin/sosreport lrwxrwxrwx 1 root root 19 Dec 11 15:24 /usr/sbin/sysreport -> / usr/sbin/sosreport
I kickstarted the system again, this time without applying the 5.1 updates, and the problem persists. If I remove sos, download the sysreport RPM and install it, I can get sysreport to work (without the above warning).
Hold the presses. I just figured out the problem. I had another version of Python in the path ahead of /usr/bin/python. I have everything working now. Sorry for wasting your time on what turned out to be a local configuration issue.
Alfred