Bug 1400935 - [quick install]Should not prompt "reinstall" process if installer detect the cluster has been installed when installing with "--gen-inventory"
Summary: [quick install]Should not prompt "reinstall" process if installer detect the ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-02 10:57 UTC by liujia
Modified: 2017-08-25 15:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-25 15:51:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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