Bug 1390665 - unattended install of satellite proxy cmd line version
Summary: unattended install of satellite proxy cmd line version
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Installer
Version: 580
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Pavel Studeník
URL: na
Whiteboard:
Depends On:
Blocks: sat570-lowbug sat570-proxy sat580-low
TreeView+ depends on / blocked
 
Reported: 2016-11-01 15:57 UTC by Gennadii Altukhov
Modified: 2017-06-21 12:07 UTC (History)
10 users (show)

Fixed In Version: spacewalk-proxy-installer-2.5.0-10-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 516296
Environment:
Last Closed: 2017-06-21 12:07:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gennadii Altukhov 2016-11-01 15:57:35 UTC
+++ 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.

Comment 1 Gennadii Altukhov 2016-11-01 16:45:09 UTC
ask user for credentials only if configuration script works in interactive mode
spacewalk.git:
904e020d3eb455d3068558ae7fe22afe75161bad

Comment 3 Pavel Studeník 2017-05-25 12:58:02 UTC
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.

Comment 4 Tomas Lestach 2017-05-25 15:43:12 UTC
Pavel, I think populate-config-channel option is set by default. This does not sound like a bug.

Comment 5 Pavel Studeník 2017-05-25 15:52:42 UTC
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.

Comment 6 Pavel Studeník 2017-05-25 16:03:11 UTC
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

Comment 7 Gennadii Altukhov 2017-05-29 16:14:50 UTC
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

Comment 10 Pavel Studeník 2017-05-31 10:47:47 UTC
Verified with spacewalk-proxy-installer-2.5.0-10.el6sat.noarch


Note You need to log in before you can comment on or make changes to this bug.