Bug 1400935

Summary: [quick install]Should not prompt "reinstall" process if installer detect the cluster has been installed when installing with "--gen-inventory"
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED WONTFIX QA Contact: Johnny Liu <jialiu>
Severity: low Docs Contact:
Priority: low    
Version: 3.4.0CC: aos-bugs, dgoodwin, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-25 15:51:17 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 liujia 2016-12-02 10:57:56 UTC
Description of problem:
Generate inventory with "--gen-inventory" against existed cluster. After printing "Installation Summary", it will ask user to make an unrelated choice about if re-install or not.

Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.4.32-1.git.0.076b279.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Installing a cluster by quick-install first
2. Try to generate inventory host for the cluster above by the existing installer.cfg.yml 
#atomic-openshift-installer install --gen-inventory
3. it will detect the cluster has been installed and ask user to reinstall or not after output "Installation Summary"
<--snip-->
All specified hosts in specified environment are installed.

Do you want to (re)install the environment?

Note: This will potentially erase any custom changes. [y/N]:
<--snip-->

3.

Actual results:
1)If choose 'n', it will exit with following hint mesaage:

If you want to force reinstall of your environment, run:
`atomic-openshift-installer install --force`

If you want to add new nodes to this environment, run:
`atomic-openshift-installer scaleup`

2)If choose 'y', it will exit with following hint message about generated files:

Wrote atomic-openshift-installer config: /root/.config/openshift/installer.cfg.yml
Wrote Ansible inventory: /root/.config/openshift/hosts

Expected results:
It should not include redundant re-install process when run quick install with "--gen-inventory", instead, installer should generate the inventory hosts that the users expect.