Bug 1098211

Summary: Answer file generated as part of 'rhsc-setup' and using "--generate-answer=" doesn't include the environment values of External Monitoring
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prasanth <pprakash>
Component: rhscAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, dpati, nlevinki, rhs-bugs, rhsc-qe-bugs
Target Milestone: ---   
Target Release: RHGS 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhsc-3.0.0-0.5.master.el6_5.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 19:09:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prasanth 2014-05-15 13:33:21 UTC
Description of problem:

Answer file generated as part of 'rhsc-setup' and using "--generate-answer=" doesn't include the environment values of External Monitoring.

Version-Release number of selected component (if applicable): 
rhsc-3.0.0-0.4.master.el6_5.noarch


How reproducible: 100%


Steps to Reproduce:
1. Install the latest RHS-C 3.0 build
2. Execute:
   # rhsc-setup or # rhsc-setup --generate-answer=/opt/<Answer_File>
3. Now use the above generated answer file and try to auto install using 
   # rhsc-setup --config-append=/opt/<Answer_File>


Actual results: Auto install using the answer file stops in the middle asking for the confirmation regarding External Monitoring. See below:

------------------
# rhsc-setup --config-append=/opt/myanswerfile
[ INFO  ] Stage: Initializing
[ INFO  ] Stage: Environment setup
          Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-rhsc-packaging.conf', '/opt/myanswerfile']
          Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20140515151550.log
          Version: otopi-1.2.0 (otopi-1.2.0-1.el6ev)
[ INFO  ] Stage: Environment packages setup
[ INFO  ] Stage: Programs detection
[ INFO  ] Stage: Environment setup
[ INFO  ] Stage: Environment customization
         
          --== PRODUCT OPTIONS ==--
         
         
          --== PACKAGES ==--
         
[ INFO  ] Checking for product updates...
[ INFO  ] No product updates found
         
          --== NETWORK CONFIGURATION ==--
         
[WARNING] Failed to resolve vm49.lab.eng.blr.redhat.com using DNS, it can be resolved only locally
[ INFO  ] iptables will be configured as firewall manager.
         
          --== DATABASE CONFIGURATION ==--
         
         
          --== OVIRT ENGINE CONFIGURATION ==--
         
         
          --== PKI CONFIGURATION ==--
         
         
          --== APACHE CONFIGURATION ==--
         
         
          --== SYSTEM CONFIGURATION ==--
         
[ INFO  ] NFS configuration skipped with application mode Gluster
         
          --== MISC CONFIGURATION ==--
         
         
          --== END OF CONFIGURATION ==--
         
          Would you like transactions from the Red Hat Access Plugin sent from the RHSC to be brokered through a proxy server? (Yes, No) [No]: 
          Would you like external monitoring to be enabled? (Yes, No) [Yes]: 
[ INFO  ] Stage: Setup validation
------------------


Expected results: The auto install using the answer file should pass through without any manual intervention. 


Additional info: Adding the following entry in the answer file can be used as a work-around for the time being.

----
OVESETUP_SYSTEM/monitoringEnabled=bool:True (or FALSE)
----

A similar bug opened for Support Plugin: Bug 1086718 - rhsc-setup --offline --config-append=<Answer_File> still prompts for a confirmation regarding Red Hat Access Plugin

Comment 1 Prasanth 2014-05-26 09:19:22 UTC
Verified in rhsc-3.0.0-0.5.master.el6_5.noarch.rpm

Comment 3 errata-xmlrpc 2014-09-22 19:09:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1277.html