Bug 72704
Summary: | RFE: up2date needs to return usable error codes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Todd Warner <taw> |
Component: | up2date | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED WONTFIX | QA Contact: | Brandon Perkins <bperkins> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 4.0 | CC: | cperry, cturner, gafton, tao, taw |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-22 15:44:58 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: |
Description
Todd Warner
2002-08-26 19:13:36 UTC
I added sys.exit(main() or 0) to up2date's wrapper.py, which helps (i.e., a return code will always be returned. Need to do the same for rhn_register and rhn_check before moving this to MODIFIED. Note: gtk/glade hijack sys.exit. You can sys.exit whatever you want and gtk/glade will exit with their own exit codes (which is never what you want). nice two year old bug without a comment from the assignee. status? From a customer: """ Can you make the return code of up2date be non-zero when RHN is down? $ sudo up2date --showall https://xmlrpc.rhn.redhat.com/XMLRPC IMPORTANT MESSAGE FOLLOWS: Red Hat Network is currently experiencing technical difficulties. We apologize for any inconvenience this outage may cause. Thank you for using Red Hat Network. --the RHN team ksa@rhupdate1 AFS-Admin $ echo $? 0 """ https://enterprise.redhat.com/issue-tracker/?module=issues&action=view&tid=48350 Bumping priority to high for this reason. RHN needs the following information to be provided by the customer: 1- which version of RHEL are they using? 2- which version of up2date are they using? ... because this problem is not reproducible in any versions of RHEL4. This should thus be removed from the RHEL4.5 blocker list. User bnackash's account has been closed |