Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 871019

Summary: [PATCH] option checks for curl/wget in bootstrap scripts generated by rhn-bootstrap in spacewalk-certs-tools, looks wrong
Product: Red Hat Satellite 5 Reporter: Satoru SATOH <ssato>
Component: OtherAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-29 14:28:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
(possible) correct fixes for cases that wget and/or curl do not print error messages previous code expected none

Description Satoru SATOH 2012-10-29 12:15:59 UTC
Created attachment 634983 [details]
(possible) correct fixes for cases that wget and/or curl do not print error messages previous code expected

Description of problem:

There are lines checking if wget or curl accept specific
options (--no-check-certificate for wget and -k for curl)
in spacewalk-cert-tools/rhn_bootstrap_strings.py:


[wget]

output=`LANG=en_US /usr/bin/wget --no-check-certificate 2>&1`
error=`echo $output | grep "unrecognized option"`

[curl]

output=`LANG=en_US /usr/bin/curl -k 2>&1`
error=`echo $output | grep "is unknown"`


but 'wget --no-check-certificate ...' and 'curl -k ...' 
simply cause errors w/ 'missing URL ...' or 
'no URL specified" and $error become empty,
and these options looks never set and used.


[root@rhel-6-lvs-1 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root@rhel-6-lvs-1 ~]# LANG=en wget  --no-check-certificate
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
[root@rhel-6-lvs-1 ~]# LANG=en curl -k
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
[root@rhel-6-lvs-1 ~]#



Version-Release number of selected component (if applicable):
I confirmed the code in spacewalk-certs-tools-1.7.3 and
spacewalk git HEAD.


How reproducible: Run bootstrap script generated by rhn-bootstrap

Additional info:

I wrote a concept patch for git head code, may fix this issue,
Also, it should be applicable to spacewalk-certs-tools-1.7.3
(in RHN Satellite 5.5).

Comment 2 Satoru SATOH 2012-10-29 14:28:05 UTC
I'm very sorry that my understanding of the symptom of the problem was completely wrong. There was a issue around curl while registration process
but I don't have that log right now and will open other rhbz for that.