Bug 640512 - ISE: when clicking on events, after [Virtualization] ent. added
Summary: ISE: when clicking on events, after [Virtualization] ent. added
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 540
Hardware: All
OS: Linux
high
urgent
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat540-blockers
TreeView+ depends on / blocked
 
Reported: 2010-10-06 07:42 UTC by Šimon Lukašík
Modified: 2010-10-07 10:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-07 10:14:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Systems -> Systems -> Virtual Systems (37.93 KB, image/png)
2010-10-06 09:18 UTC, Šimon Lukašík
no flags Details

Description Šimon Lukašík 2010-10-06 07:42:28 UTC
Description of problem:
See steps.

Version-Release number of selected component (if applicable):
Satellite-5.4.0-RHEL5-re20101001.1

How reproducible:
Every time on 1 fresh installed sat.

Steps to Reproduce:
1. Have 3 machines: sat540, rhel5 kvm-host, rhel5 kvm-guest.
1. #satellite-sync -c rhn-tools-rhel-x86_64-server-5 -c rhel-x86_64-server-vt-5 -c rhel-x86_64-server-5
(with all content)
2. Register kvm-host
3. Register kvm-guest
4. WEBUI: Add [Virtualization] entitlement to the kvm-host. 
5. #rhn_check on kvm-host
(this will fail, because 'yum clean repodata' was not issued!)
6. WEBUI: kvm-host -> Events
(500 Error - Internal Server Error)
  
Actual results:
500 Error - Internal Server Error


Expected results:
Enable [Virtualization] and no ISE

Additional info:
catalina.out is silent.

Comment 2 Šimon Lukašík 2010-10-06 09:18:42 UTC
Created attachment 451845 [details]
Systems -> Systems -> Virtual Systems

No host machine is show on the VirtualSystems page. Which is weird 
to me, because even when host system is not registered there is at
least item like: 
 * Host: (Unknown Host)

Comment 5 Milan Zázrivec 2010-10-07 10:14:12 UTC
From /var/log/httpd/ssl_error_log:

[Thu Oct 07 02:55:35 2010] [error] [client 10.34.27.115] Can't locate object method "initialize_pxt" via package "PXT::ApacheHandler" at /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheAuth.pm line 38.\n, referer: https://hp-z600-01.rhts.eng.bos.redhat.com/rhn/systems/details/SystemHardware.do?sid=1000010000
[Thu Oct 07 02:55:36 2010] [error] [client 10.34.27.115] Can't locate object method "initialize_pxt" via package "PXT::ApacheHandler" at /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheAuth.pm line 38.\n, referer: https://hp-z600-01.rhts.eng.bos.redhat.com/rhn/systems/details/SystemHardware.do?sid=1000010000
[Thu Oct 07 02:55:36 2010] [alert] [client 10.34.27.115] /var/www/html/network/.htaccess: Errno architecture (x86_64-linux-thread-multi-2.6.18-194.8.1.el5) does not match executable architecture (x86_64-linux-thread-multi-2.6.18-128.1.10.el5) at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Errno.pm line 11.\nCompilation failed in require at /usr/lib/perl5/5.8.8/File/Temp.pm line 138.\nBEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/File/Temp.pm line 138.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/RHN/Cert.pm line 22.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/RHN/Cert.pm line 22.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/RHN/SatelliteCert.pm line 20.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/RHN/SatelliteCert.pm line 20.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/RHN/SatInstall.pm line 39.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/RHN/SatInstall.pm line 39.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/RHN/Session.pm line 22.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/RHN/Session.pm line 22.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/PXT/Request.pm line 20.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/PXT/Request.pm line 20.\nCompilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm line 40.\nBEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/PXT/ApacheHandler.pm line 40.\nCompilation failed in require at (eval 7) line 3.\n, referer: https://hp-z600-01.rhts.eng.bos.redhat.com/rhn/systems/details/SystemHardware.do?sid=1000010000

From /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Errno.pm:

"$Config{'archname'}-$Config{'osvers'}" eq
"x86_64-linux-thread-multi-2.6.18-194.8.1.el5" or
        die "Errno architecture (x86_64-linux-thread-multi-2.6.18-194.8.1.el5) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";

so "$Config{'archname'}-$Config{'osvers'}" needs to match
"x86_64-linux-thread-multi-2.6.18-194.8.1.el5" (in this particular build
of perl of course).

My theory of the problem:
1. RHEL-5.5 was installed
2. Satellite 5.4 was installed and started, during which mod_perl was loaded
into memory
3. Packages were upgraded on the system (perl package included)
4. A .pxt page was clicked during which:
   * the 'osvers' value as defined in Config.pm was showing the old value
     (as loaded in the memory)
   * the Errno.pm was loaded in the memory, during which it die()d (the eq
     test in Errno.pm failed)
   * some of the eval{} blocks in PXT::ApacheHandler.pm failed and gave us
     the error we saw

Anyway, simple

    /usr/sbin/rhn-satellite restart

helped to resolve the problem.

I'm closing this with worksforme. This is very corner-case type of a problem
and frankly there's not much we can do about it in Satellite.


Note You need to log in before you can comment on or make changes to this bug.