Bug 1390665
| Summary: | unattended install of satellite proxy cmd line version | ||
|---|---|---|---|
| Product: | Red Hat Satellite Proxy 5 | Reporter: | Gennadii Altukhov <galtukho> |
| Component: | Installer | Assignee: | Gennadii Altukhov <galtukho> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Studeník <pstudeni> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 580 | CC: | cperry, dyordano, ggainey, mkollar, mmraka, msuchy, pstudeni, tkasparek, tlestach, whayutin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | na | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-proxy-installer-2.5.0-10-sat | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 516296 | Environment: | |
| Last Closed: | 2017-06-21 12:07:39 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1127641, 1128169, 1358815 | ||
|
Description
Gennadii Altukhov
2016-11-01 15:57:35 UTC
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 |