Description of problem: If the http proxy requires authentication, the installer will not prompt for the user's password and the installation will fail. Version-Release number of selected component (if applicable): rhn-satellite-4.1.5-17-redhat-linux-as-i386-4-embedded-oracle.iso Actual results: [root@satellite iso]# ./install.pl * Starting the Red Hat Network Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation. Admin Email Address? foo * RHN Registration. RHN Username? myaccount RHN Password? HTTP Proxy Hostname? proxy.example.com HTTP Proxy Port [8080]? HTTP Proxy Username? foo RHN Profile Name [satellite.example.com]? Expected results: [root@satellite iso]# ./install.pl * Starting the Red Hat Network Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation. Admin Email Address? foo * RHN Registration. RHN Username? myaccount RHN Password? HTTP Proxy Hostname? proxy.example.com HTTP Proxy Port [8080]? HTTP Proxy Username? foo HTTP Proxy Password? RHN Profile Name [satellite.example.com]? Additional info: Here's the broken code from install_main.pl. Notice the different variables for the username (rhn-http-proxy-username / rhn_http_proxy_username): ask(-question => "HTTP Proxy Username", -answer => \$answers->{'rhn-http-proxy-username'}, -test => sub { 1 }, -default => ''); if ($answers->{rhn_http_proxy_username}) { ask(-question => "HTTP Proxy Password", -answer => \$answers->{'rhn-http-proxy-password'}, -test => sub { 1 }, -password => 1, -default => ''); } --- install/install_main.pl 2006-11-02 10:50:12.000000000 -0500 +++ /sat-install/install/install_main.pl 2007-02-19 16:32:39.000000000 -0500 @@ -1767,7 +1767,7 @@ -test => sub { 1 }, -default => ''); - if ($answers->{rhn_http_proxy_username}) { + if ($answers->{'rhn-http-proxy-username'}) { ask(-question => "HTTP Proxy Password", -answer => \$answers->{'rhn-http-proxy-password'}, -test => sub { 1 },
[mmccune@cascade install]$ cvs commit **** Access allowed: mmccune is in ACL for rhn/satellite/install. Checking in install_main.pl; /cvs/rhn/rhn/satellite/install/install_main.pl,v <-- install_main.pl new revision: 1.74; previous revision: 1.73 done
on-qa
I'll have to setup a proxy server to test this..
I see the updates in the scripts.. I am sure this passes.. but I am having trouble getting the installer to prompt me for the proxy username and proxy passwd durring the install... The installer gets all the way through install w/o prompting for proxy user/pass /etc/rhn/rhn.cfg server.satellite.rhn_parent = satellite.rhn.webqa.redhat.com server.satellite.http_proxy = rlx-3-18.rhndev.redhat.com server.satellite.http_proxy_username = server.satellite.http_proxy_password = server.satellite.ca_chain = /usr/share/rhn/RHNS-CA-CERT how can I get the install.pl script to promnpt?
I believe this is now tracked with bug 202228, and a fix to install_main.pl in revision 1.77. The installer will now ask for proxy information _if_ it finds proxy configured in /etc/sysconfig/rhn/up2date. Therefore I'm putting this back ON_QA. Assigning this to myself, to take this this off Mike's queue for possible kickbacks..
verified.. root@fjs-0-13 mnt]# ls bootstrap doc install install.pl LICENSE README RPMS updates [root@fjs-0-13 mnt]# ./install.pl --answer-file=/root/answer * Starting the Red Hat Network Satellite installer. * Loading answer file: /root/answer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation. Admin Email Address? whayutin * RHN Registration. RHN Username? whayutin RHN Password? HTTP Proxy Hostname? proxy.example.com HTTP Proxy Port [8080]? 8080 HTTP Proxy Username? foo HTTP Proxy Password? RHN Profile Name [fjs-0-13.rhndev.redhat.com]?
moving to release_pending. It behaved exactly as it does here in the related BZ: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202228#c17
Closed for Satellite 500 Release.