Bug 1554707

Summary: Fail to migrate etcd v2 to v3 due to undefined variable openshift_ca_host
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: Cluster Version OperatorAssignee: Vadim Rutkovsky <vrutkovs>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.1CC: aos-bugs, fcami, jokerman, mmccomas, vrutkovs, wmeng, ypismerov
Target Milestone: ---   
Target Release: 3.6.z   
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: 2018-04-12 06:03:40 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:
Embargoed:

Description liujia 2018-03-13 08:23:50 UTC
Description of problem:
Do etcd migration against v3.6 upgraded from v3.6. Migration failed when run openshift_ca role due to undefined variable openshift_ca_host.

TASK [openshift_ca : fail] **************************************************************************************************************************************************
fatal: [x.x.x.x]: FAILED! => {
    "changed": false
}

MSG:

openshift_ca_host variable must be defined for this role


Version-Release number of the following components:
openshift-ansible-3.6.173.0.105-1.git.0.406806c.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Container install ocp v3.5 with 3 etcds.
2. Upgrade v3.5 to v3.6
3. Migrate etcd v2 to v3

Actual results:
Migrate failed.

Expected results:
Migrate succeed.

Additional info:

Comment 3 Vadim Rutkovsky 2018-03-19 15:39:49 UTC
Created https://github.com/openshift/openshift-ansible/pull/7570 to fix this

Comment 4 liujia 2018-03-20 08:49:10 UTC
Verified on openshift-ansible-3.6.173.0.110-1.git.0.ca81843.el7.noarch. Please change bug status.

Comment 5 Vadim Rutkovsky 2018-03-20 08:55:10 UTC
(In reply to liujia from comment #4)
> Verified on openshift-ansible-3.6.173.0.110-1.git.0.ca81843.el7.noarch.
> Please change bug status.

Done, thanks!

Comment 8 errata-xmlrpc 2018-04-12 06:03:40 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, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2018:1106