Bug 1508755 - Failed to upgrade nodes for non-ha containerized env
Summary: Failed to upgrade nodes for non-ha containerized env
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.7.0
Assignee: Michael Gugino
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-02 07:05 UTC by liujia
Modified: 2017-11-28 22:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 22:20:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description liujia 2017-11-02 07:05:24 UTC
Description of problem:
Upgrade nodes failed if ocp containerized deployed with non-ha. 

PLAY [Verify masters are already upgraded] **********************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************
ok: [x.x.x.x]

TASK [fail] *****************************************************************************************************************************************************************
fatal: [x.x.x.x]: FAILED! => {"changed": false, "failed": true, "msg": "Master running 3.6.173.0.63 must be upgraded to 3.7.0 before node upgrade can be run."}
	to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade_nodes.retry

================Debug info
When upgrade masters, master has been spitted into master-api and master-controllers. Only IMAGE_VERSION in api&controller service has been set to "v3.7.0" but not master service. And it seems that openshift.common.version came from /etc/sysconfig/atomic-openshift-master.

# cat atomic-openshift-master|grep IMAGE
IMAGE_VERSION=v3.6.173.0.63
# cat atomic-openshift-master-api|grep IMAGE
IMAGE_VERSION=v3.7.0

Version-Release number of the following components:
openshift-ansible-3.7.0-0.189.0.git.0.d497c5e.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Install ocp v3.6(containerized with non-ha deployed)
2. Upgrade masters
3. Upgrade nodes
# ansible-playbook -i hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_7/upgrade_nodes.yml

Actual results:
Upgrade nodes failed.

Expected results:
Upgrade nodes succeed.

Additional info:
Inventory file and log in attachment.

Comment 3 Michael Gugino 2017-11-03 16:10:16 UTC
PR Created: https://github.com/openshift/openshift-ansible/pull/6005

Comment 5 liujia 2017-11-07 02:04:33 UTC
Verified on openshift-ansible-3.7.0-0.196.0.git.0.27cd7ec.el7.noarch

Comment 8 errata-xmlrpc 2017-11-28 22:20:57 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/RHSA-2017:3188


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