Bug 1326642 - The IMAGE_VERSION is not the value we specified by openshift_image_tag
Summary: The IMAGE_VERSION is not the value we specified by openshift_image_tag
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Devan Goodwin
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-13 09:26 UTC by Anping Li
Modified: 2016-06-07 10:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-07 10:55:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1208 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-06-07 14:55:01 UTC

Description Anping Li 2016-04-13 09:26:28 UTC
Description of problem:
Openshift ansible is using g_aos_versions.avail_version to set VERSION in sysconfig files. however, if we specify openshift_image_tag, the target version values is stored in g_new_version.


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.79-1.git.0.9c75f11.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. install containerlized OSE 3.1
2. set openshift_image_tag to a value which is different with the latest in inventory file
   For example: if openshift3/ose:latest=openshift3/ose:v3.2.0.14, we set openshift_image_tag=v3.2.0.12
3. upgrade to OSE3.2 using ansible-playbook
4. check the VERSION under /etc/sysconfig/atomic-openshift-* /etc/sysconfig/openvswitch
   grep VERSION /etc/sysconfig/atomic-openshift* /etc/sysconfig/openvswitch


Actual results:
4. grep VERSION /etc/sysconfig/atomic-openshift* /etc/sysconfig/openvswitch
/etc/sysconfig/atomic-openshift-master:IMAGE_VERSION=v3.2.0.14
/etc/sysconfig/atomic-openshift-master-api:IMAGE_VERSION=v3.2.0.14
/etc/sysconfig/atomic-openshift-master-controllers:IMAGE_VERSION=v3.2.0.14
/etc/sysconfig/atomic-openshift-node:IMAGE_VERSION=v3.2.0.14
/etc/sysconfig/openvswitch:IMAGE_VERSION=v3.2.0.14



Expected results:
The IMAGE_VERSION should be same with openshift_image_tag

Additional info:

Comment 1 Anping Li 2016-04-13 11:14:00 UTC
please also notice that openshift_container_versions.sh was ran before docker new options take affect. so we couldn't get the VERSION from the new added registry.

Comment 2 Devan Goodwin 2016-04-18 18:17:08 UTC
I think this is still happening even using latest master and Sam's branch.

Using a private registry with 3.2.0.14 and 3.2.0.16 pushed to it, and in my inventory:

openshift_image_tag=v3.2.0.14

After running upgrade:

bash-4.2# grep VERSION /etc/sysconfig/atomic-openshift* /etc/sysconfig/openvswitch
/etc/sysconfig/atomic-openshift-master:IMAGE_VERSION=v3.2.0.16
/etc/sysconfig/atomic-openshift-node:IMAGE_VERSION=v3.2.0.16
/etc/sysconfig/openvswitch:IMAGE_VERSION=v3.2.0.16

Comment 3 Devan Goodwin 2016-04-20 17:42:05 UTC
Fixed and merged in: https://github.com/openshift/openshift-ansible/pull/1781

Comment 5 Anping Li 2016-05-17 07:54:32 UTC
The bug fixed, so moved to verified.

Comment 7 errata-xmlrpc 2016-06-07 10:55:17 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-2016:1208


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