Bug 1345804 - Values absent in OPTIONS in /etc/sysconfig/docker after upgrade
Summary: Values absent in OPTIONS in /etc/sysconfig/docker after upgrade
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Devan Goodwin
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-13 08:40 UTC by Anping Li
Modified: 2016-07-20 11:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-20 11:43:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Anping Li 2016-06-13 08:40:57 UTC
Description of problem:
If  the openshift_master_portal_net is inventory file,  those values expected for '--selinux-enabled ' will be deleted in OPTIONS in  /etc/sysconfig/docker on master after upgrade.


Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.94-1.git.0.67a822a.el7.noarch
atomic-openshift-utils-3.2.1-1.git.0.b8d1b5e.el7

How reproducible:
always

Steps to Reproduce:
1) Enable osm_cluster_network_cidr="10.2.0.0/16" and  penshift_master_portal_net="172.31.0.0/16"
   install OSE 3.0.2.0  by atomic-openshift-utils-3.0.35-1.git.0.6a386dd.el7aos.noarch

2) check the docker configuration file on master
   grep OPTIONS /etc/sysconfig/docker

3) upgrade to OSE 3.1 
    ansible-playbook -i config/hosts  /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml  -vvv|tee upgradev30tov31.logs2.logs
##Note:  upgrade to docker 1.10 before run upgrade playbook if you are using atomic-openshift-utils-3.2.1

4) check the docker configuration file on master 
   grep OPTIONS /etc/sysconfig/docker

Actual results:

2)#grep OPTIONS /etc/sysconfig/docker
OPTIONS=' --selinux-enabled --insecure-registry=172.31.0.0/16 '

4)#grep OPTIONS /etc/sysconfig/docker
OPTIONS=' --selinux-enabled'

Expected results:
--insecure-registry should be added to OPTIONS

Additional info:

Comment 2 Brenton Leanhardt 2016-06-14 15:05:15 UTC
Is this specific to the 3.0->3.1 upgrade? or does it happen with 3.1->3.2 as well?

Comment 3 Anping Li 2016-06-14 15:12:47 UTC
Only for the 3.0->3.1 upgrade?

Comment 4 Brenton Leanhardt 2016-06-14 15:37:57 UTC
I think this is caused by using the 3.2 playbooks with 3.0.  We're now going to require that the version of openshift-ansible match the installed environment or the version you wish to upgrade to.

Comment 5 Devan Goodwin 2016-07-20 11:43:14 UTC
Closing as this install/upgrade path is not supported in the 3.2 version of the playbooks.


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