Bug 142432 (IT_56874)
| Summary: | As configured, the hardware discovery script fails | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Ready Certification Tests | Reporter: | Glen A. Foster <glen.foster> | ||||||
| Component: | other | Assignee: | Rob Landry <rlandry> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Rob Landry <rlandry> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | beta | CC: | hcp-admin, richardl, rick.hester, suzanne.pherigo, tao | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | ia64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2005-03-17 04:56:02 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 143442 | ||||||||
| Attachments: |
|
||||||||
|
Description
Glen A. Foster
2004-12-09 18:07:12 UTC
Adding Suzanne to the cc: list I also forgot to mention, but it's probably apparent to Rob that with this issue I cannot run any of the other cert-suite tests without coming up with a hardware.conf file. actually this is not a new requirement but a work around for an already existing one. Specifically discovery uses hardware.py from rhn; previously if this couldn't reach xmlrpc.rhn.redhat.com then you would end up with an essentially blank hardware.conf. My guess would be that this particular machine (a)cannot reach xmlrpc.rhn.redhat.com and (b)does not have http installed which means that the rhr2 scripts couldn't work around the problem either; thusly you get the error message as described above. Can we verify that (a) and (b) is true? (a) is not true. I can run up2date just fine. I am behind a corporate firewall, and I'm not sure where in the cert-scripts I'd need to set a proxy, so perpaps that's the issue with this. (b) is not true, either; this is an 'everything' install of RHEL4 pre-RC1 Bummer, that's it for my ideas; looks like we'll have to use debug
mode; can that be duplicated with the -d flag? ("redhat-ready -d
/var/log/rhr/debug discovery") and then the debug file attached.
Created attachment 108265 [details]
/var/log/rhr/debug
as requested...
Thanks you sir; can we try a "ab xmlrpc.rhn.redhat.com/; echo RETURNCODE:$?". Assuming that doesn't exit 0, I believe I understand the problem and need to code a fix in as discovery is coded to use xmlrpc.rhn.redhat.com; it's in a variable, but for the purposes of an end user it might as well be hard coded thusly discovery needs to be a bit smarter and attempt to use the proxy server if one is configured instead of always assuming the default. Created attachment 108274 [details]
typescript of running session
I even tried setting http_proxy in another run of 'ab'; they both fail the same
way, apparently.
huh, ok, so that's not the problem I was chasing; though I do have some more homework to do. Thanks for the research and quick responses. So that I can make some progress with the RHEL4 cert-suite before year's end, what do you recommend I run to be able to test some things? E.g., beta-2 and the -9i packages? ISTR that some combination of distro + cert packages worked at least a little. In an attempt to move forward; before a patch comes out; the two things I can think of are to make something respond as xmlrpc.rhn.redhat.com to a web request on the same subnet or to change RHNSERVER in /usr/share/rhr/scripts/define to the same server as PROXY is configured to. If the latter works I believe that's the best option since, as I
understand thing RHNSERVER should be changed to...
`awk -F = ' /serverURL=/ { print $2; } ' /etc/sysconfig/rhn/up2date`
...which should use the proxy by default.
Using the second work-around listed in comment #10, I modified line 29 to be the hostname used for $http_proxy and re-ran the discovery script. I got the following errors printed: WARNING: unable to read from /dev/hda (yes, the CD drive was empty at the time of running the script). I was also able to proceed past the "Could not establish required connection..."; I was prompted (as expected) for the # of USB devices and I was able to get a "hardware.conf" and can run past that. Another way I was able to proceed was to install RHEL4 beta-2 and rhr2-rhel4-0.9-14.9b package and go from there, then save /etc/rhr/hardware.conf for later use. Let me know if there's anything I need to do to make this patch available ASAP. should be fixed in rhr2-1.0-10 confirmed in 1.0-10 |