Description of problem: RH Proxy 5.6 installation on RHEL5 fails Version-Release number of selected component (if applicable): pacewalk-proxy-installer.noarch 0:2.0.1-2.el5sat How reproducible: Always Steps to Reproduce: 0. yum install -y spacewalk-proxy-installer 1.Try to install RH Proxy 5.6 on RHEL5 to rhn.redhat.com /usr/sbin/configure-proxy.sh --force-own-ca Actual results: Preparing packages for installation... rhn-org-httpd-ssl-key-pair-dell-pesc1435-01.rhts.eng.bos-1.0-1 Create and populate configuration channel rhn_proxy_config? [Y/n] Y Username: test Session error:
Gennadii explained me the problem and showed me multiple bugs in the code. Lets use this BZ for which appears on bot 5.6 and 5.7 when password prompt does not appear in interactive installation mode (5.6 have only interactive mode).
Explanation why we have this problem only on RHEL 5 and Proxy 5.6: in shell script we use a command substitution to get all available configuration channels from rhncfg-manager: CONFIG_CHANNELS=$(rhncfg-manager list-channels --server-name "$RHN_PARENT") rhncfg-manager shows a prompt for a username directly on '/dev/tty', so we see it, and it uses Python's getpass.getpass() to ask a user for a password. On RHEL 5 and Python 2.4 getpass() writes a prompt for a password to a standard input, so we don't see it, On RHEL 6/7 it writes it directly on '/dev/tty'.
Since RHEL5 has been EOLed earlier this year, I'm closing the BZ EOL.