Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1408668

Summary: upgrade failed when etcd is on atomic host
Product: OpenShift Container Platform Reporter: Wenkai Shi <weshi>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED CURRENTRELEASE QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: aos-bugs, jokerman, mmccomas, pprakash, rcyriac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-11 13:56:32 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 Wenkai Shi 2016-12-26 10:06:52 UTC
Description of problem:
Install a env with all atomic host, then upgrade it, and get failed on etcd step.

Version-Release number of selected component (if applicable):
openshift-ansible-3.4.41-1.git.0.449ee52.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Prepare three atomic hosts
2. Install env on it(1 master 2 nodes), with parameter "openshift_image_tag"
[root@ansible ~]# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
...

3. update parameter and run upgrade playbook
[root@ansible ~]# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_4/upgrade.yml
...
TASK [Install latest etcd for containerized or embedded] ***********************
fatal: [master.example.com]: FAILED! => {
    "changed": false, 
    "failed": true
}

MSG:

Could not find a module for unknown.
...


Actual results:
upgrade failed 

Expected results:
upgrade succeed 

Additional info:

[root@ansible ~]# cat hosts
...
[masters]
master.example.com

[nodes]
master.example.com
node1.example.com
node2.example.com
...

Comment 1 Tim Bielawa 2017-01-03 17:50:40 UTC
Wenkai Shi, can you provide your inventory file for reference please?

> 2. Install env on it(1 master 2 nodes), with parameter "openshift_image_tag"

What are you setting the "openshift_image_tag" value to?

Comment 2 Wenkai Shi 2017-01-04 06:22:34 UTC
(In reply to Tim Bielawa from comment #1)
> Wenkai Shi, can you provide your inventory file for reference please?
> 
> > 2. Install env on it(1 master 2 nodes), with parameter "openshift_image_tag"
> 
> What are you setting the "openshift_image_tag" value to?

On this step,I set openshift_image_tag=v3.4.0.37. And I change it to v3.4.0.38 on "3. update parameter and run upgrade playbook".
Please let me know if you need other parameter.

Comment 4 openshift-github-bot 2017-01-05 19:21:20 UTC
Commit pushed to master at https://github.com/openshift/openshift-ansible

https://github.com/openshift/openshift-ansible/commit/3cc4232e756d0f0c0abbe97129598aeac593c75d
Don't upgrade etcd on atomic host, ever.

Fixes Bug 1408668
Fixes BZ1408668

Comment 5 Scott Dodson 2017-01-05 19:25:00 UTC
The cryptic error message is because ansible cannot find a package manager on atomic host. So the fix is to never attempt to upgrade etcd on atomic host.

https://github.com/openshift/openshift-ansible/pull/3046

Comment 8 Wenkai Shi 2017-01-06 07:01:47 UTC
Verified with openshift-ansible-3.4.43-1.git.0.a9dbe87.el7.noarch, upgrade succeed.

[root@ansible ~]# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_4/upgrade.yml
...
TASK [Install latest etcd for containerized or embedded] ***********************
skipping: [openshift-150.lab.eng.nay.redhat.com] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}
...