+++ This bug was initially created as a clone of Bug #516296 +++ Description of problem: hrm.. --non-interactive works for everything except the prompt for the satellite user/pass for config management piece. This is not critical, and should be moved to another release. however the intent of the bug was to be sure you could run an unattended install of cmd_line proxy. I do not think thats currently possible with what I see in --help and the provided answer file. we need something like config admin/sat admin login config admin/sat admin passwd --- Additional comment from Miroslav Suchý on 2009-08-10 08:35:03 EDT --- this is due rhncfg-manager which unfortunately do not have cli option to pass user and password. --- Additional comment from Miroslav Suchý on 2009-09-17 03:48:03 EDT --- --- Additional comment from Jan Hutař on 2010-07-12 02:40:16 EDT --- Reseting QA Contact to Systems Management QA. --- Additional comment from Clifford Perry on 2012-06-18 11:55:18 EDT --- Mass reset of bugs for owner to be new default-assignee. Cliff --- Additional comment from Dimitar Yordanov on 2013-02-20 16:53:53 EST --- --- Additional comment from Dimitar Yordanov on 2013-02-20 16:55:05 EST --- Introduces dependency on except. --- Additional comment from Matej Kollar on 2013-10-07 07:29:47 EDT --- Thanks Dimitar, just few little changes was made: spacewalk.git 436d16359ede3af9966c11b92c961b6c14debbc2 --- Additional comment from Matej Kollar on 2013-10-09 07:52:36 EDT --- Related: spacewalk.git: 232c9f72c6c2b79c7900924b39502c94f65047b9 --- Additional comment from Pavel Studeník on 2014-11-04 10:16:18 EST --- Reproducer: * set values to answer file. POPULATE_CONFIG_CHANNEL=Y RHN_PASSWORD=password RHN_USER=admin Verified with spacewalk-proxy-installer-2.3.0-3.el6sat.noarch --- Additional comment from Clifford Perry on 2015-01-13 04:54:26 EST --- With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is being moved to a Closed Current Release state. The Satellite 5.7 GA Errata: - https://rhn.redhat.com/errata/RHSA-2015-0033.html Satellite 5.7 Release Notes: - https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html Satellite Customer Portal Blog announcement for release: - https://access.redhat.com/blogs/1169563/posts/1315743 Cliff We still have this bug. If username/password is incorrect configuration script will ask for username/password even if --non-interactive parameter was provided.
ask user for credentials only if configuration script works in interactive mode spacewalk.git: 904e020d3eb455d3068558ae7fe22afe75161bad
I try to use this command: >> configure-proxy.sh --answer-file=proxy-answers.txt --non-interactive with following answer file: HTTP_PROXY='' VERSION=5.8 TRACEBACK_EMAIL=pstudeni USE_SSL=Y SSL_ORG=Brno SSL_ORGUNIT=hp-bl460cg5-01.rhts.eng.bos.redhat.com SSL_COMMON=hp-bl460cg5-01.rhts.eng.bos.redhat.com SSL_CITY=BRno SSL_STATE=CZ SSL_COUNTRY=CZ SSL_EMAIL=pstudeni SSL_CNAME_ASK='' and I receive this warning alert: Error: When --populate-config-channel is set to Yes both --rhn-user and --rhn-password have to be provided. I suppose that it is not correct behavior. I should can use non-interactive without populating config-channel.
Pavel, I think populate-config-channel option is set by default. This does not sound like a bug.
But option of configure-proxy.sh: --populate-config-channel Create config chanel and save configuration files to that channel. Configuration channel name is rhn_proxy_config_${SYSTEM_ID}. Why doesn this option "populate-config-channel" exist when it is set by default. I suppose that I should have option to set --no-populate-config-channel. In this case this options is useless.
I checked old versions and different behavior is from proxy installer 2.3 Version of installer spacewalk-proxy-installer-2.0.1-2.el6sat.noarch works correct from my point of view. It think that we have to ways: 1) change option --populate-config-channel to --no-populate-config-channel (because as default is useless) 2) change default value as disable populate to configchannel
I think the second option make more sense. Changed default value of population config channel for a non-interactive mode to 'No' (for interactive mode still 'Yes'). spacewalk.git: a6d4d317ec9ccc8de92152b7be0d1ea961ae7f62
Verified with spacewalk-proxy-installer-2.5.0-10.el6sat.noarch