Bug 1857924 (OCPRHV-277)

Summary: OCPRHV-277: ovirt: remove defer ovirtConfig.Save()
Product: OpenShift Container Platform Reporter: Douglas Schilling Landgraf <dougsland>
Component: InstallerAssignee: Douglas Schilling Landgraf <dougsland>
Installer sub component: OpenShift on RHV QA Contact: Guilherme Santos <gdeolive>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium    
Version: 4.6   
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: All   
OS: All   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:15:14 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:

Description Douglas Schilling Landgraf 2020-07-16 18:23:15 UTC
Description of problem:

If users press ctrl c in the middle of questionary
process or an error happens it will save whatever users
have provided in the ovirt-config.yaml which can be incomplete and
prevent users to trigger a new installation asking a fresh
round of questions about their env.

Expected results:

Only save file if a connection with Engine which proves the data provided from user is correct.

Comment 3 Guilherme Santos 2020-07-22 13:50:59 UTC
Verified on:

1. # openshift-install create cluster --log-level=debug --dir=resources
2. provide wrong username or password or engine fqdn to prevent connection
3. cancel installation and check for ovirt-config.yaml
# ll ~/.ovirt/ovirt-config.yaml
4. try installation again

file ovirt-config.yaml not present and new installation asking all info as expected

Comment 5 errata-xmlrpc 2020-10-27 16:15:14 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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

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