Bug 664378
| Summary: | Timeout of the registration to RHN Satellite is more than expected | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Linqing Lu <lilu> | ||||
| Component: | ovirt-node | Assignee: | Mike Burns <mburns> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 5.6 | CC: | apevec, cpelland, gouyang, gshipley, mburns, mshao, ovirt-maint | ||||
| Target Milestone: | rc | Keywords: | ZStream | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 670241 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-07-27 14:41:20 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: | 670315 | ||||||
| Attachments: |
|
||||||
|
Description
Linqing Lu
2010-12-20 08:37:54 UTC
Thanks for catching this! BTW, from your suggestion looks like you actually have a patch, feel free to post it here :) Created attachment 473890 [details]
Patch
Updated patch -- changes to 30 seconds, 3 tries
Also handles issue with wget not returning valid error code
Testing: went through the same steps as in the bug description.
Also manually tested error condition change
if [ -e $location -a ! "$(ll $location 2>/dev/null | awk '{print $5}')" = "0" ]; then echo "Success"; else echo "Failed"; fi
# location=/tmp/testing
# rm $location
# run if from above --> Failed (does not exist)
# touch #location
# run if from above --> Failed (exists, but 0 size)
# echo "test" > $location
# run if from above --> Success (exists, non-zero)
Verified on rhevh 5.7-1: Downloading Satellite CA cert..... From: https://10.66.73.127/pub/RHN-ORG-TRUSTED-SSL-CERT To: /etc/sysconfig/rhn/RHN-ORG-TRUSTED-SSL-CERT File already persisted: /etc/sysconfig/rhn/RHN-ORG-TRUSTED-SSL-CERT Registering to RHN account..... Warning: yum-rhn-plugin is not present, could not enable it.File already persisted: /etc/sysconfig/rhn/up2date File persisted Successfully persisted /etc/sysconfig/rhn/systemid System sucessfuly registered https://10.66.73.127 Could see register to rhn satellite is successful. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-1090.html |