Description of problem: When an invalid target is used for the --generate-answer file, the entire RHSC installation will fail. Version-Release number of selected component (if applicable): RHSC 2.1 How reproducible: Always Steps to Reproduce: 1. Run an installation command similar to rhsc-setup --generate-answer=root/rhsc-answer-file-2.1u2 [note the missing / before root in the above] 2. Complete installation as normal 3. Receive a "setup failed" error Actual results: [ INFO ] Starting engine service [ INFO ] Restarting httpd [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140402113337-setup.conf' [ INFO ] Generating answer file 'root/rhsc-answer-file-2.1u2' [ ERROR ] Failed to execute stage 'Closing up': [Errno 2] No such file or directory: '/root/root/rhsc-answer-file-2.1u2' [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140402112906.log [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of setup failed Expected results: Errors and/or warnings that look like the Additional info: The current error is concerning to customers because it looks like their entire installation has failed, and they may not be sure what to do next to salvage their deployment.
Installation framework has changed from RHSC Corbett (2.1 U2) to RHSC Denali (3.0), because of underlying ovirt install framework change. This case will be tested by Prasanth and he will let us know, if this issue is resolved in RHSC 3.0 or not and if not, then we need to document it along with the required work around.
Need help from Alon to understand, if there is a mechanism to raise a warning only if a certain stage fails during engine setup and not to fail to overall setup process.
(In reply to Shubhendu Tripathi from comment #3) > Need help from Alon to understand, if there is a mechanism to raise a > warning only if a certain stage fails during engine setup and not to fail to > overall setup process. self.logger.warning() ?
Verified as fixed in rhsc-3.0.0-0.5.master.el6_5.noarch.rpm ---------------------- # rhsc-setup --generate-answer=root/rhsc-answer-file-2.1u2 ... --== END OF SUMMARY ==-- [ INFO ] Starting engine service [ INFO ] Restarting httpd Make sure the managed nodes get migrated to RHS-3.0 to get monitoring enabled for them. [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20140523164316.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140523164900-setup.conf' [ INFO ] Generating answer file 'root/rhsc-answer-file-2.1u2' [WARNING] Cannot write to answer file: root/rhsc-answer-file-2.1u2 Error: [Errno 2] No such file or directory: '/etc/yum.repos.d/root/rhsc-answer-file-2.1u2' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ INFO ] Execution of setup completed successfully ----------------------
Shubhendu, Please review the edited doc text for technical accuracy and sign off.
doc-text looks fine
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