Bug 1294756

Summary: callback_facts.yaml should be regenerated
Product: OpenShift Container Platform Reporter: Gan Huang <ghuang>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED WONTFIX QA Contact: Wenkai Shi <weshi>
Severity: low Docs Contact:
Priority: medium    
Version: 3.1.0CC: aos-bugs, jiajliu, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-24 20:49:22 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 Gan Huang 2015-12-30 06:55:30 UTC
Description of problem:
"callback_facts.yaml" should be regenerated

Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.20-1.git.0.3703f1b.el7aos.noarch

How reproducible:
Always

Steps to Reproduce:
1.Install an env of one master and two nodes by quick install
2.Modify "~/.config/openshift/installer.cfg.yml" with a new master and a new node
3.Install the new env using atomic-openshift-installer


Actual results:
Gathering information from hosts...
Error in /home/xxx/.config/openshift/.ansible/callback_facts.yaml while scanning a simple key
  in "/home/xxx/.config/openshift/.ansible/callback_facts.yaml", line 60, column 1
could not found expected ':'
  in "/home/xxx/.config/openshift/.ansible/callback_facts.yaml", line 61, column 19
Try deleting and rerunning the atomic-openshift-installer

Expected results:
Install successfully

Additional info:
Now it seems that it just tried to modify "callback_facts.yaml" file when run installer for the 2nd time, so the previous node information remains in the file. Regenerate "callback_facts.yaml" can avoid the issue once installing.

Comment 2 liujia 2016-12-02 08:19:56 UTC
Hit the same troubles many times when install OCP with quick install tool.
It is very unconvinient and confused for user to re-run quickinstall after edit install.cfg.yml file. I think it should be deleted and re-gathered auto instead of requiring user to delete them manually.