Bug 1323058

Summary: "containerized=true" doesn't work on RHEL
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: high Docs Contact:
Priority: high    
Version: 3.2.0CC: aos-bugs, bleanhar, jokerman, mmccomas, xtian
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.0.74-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 16:39:53 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 Gaoyun Pei 2016-04-01 07:21:27 UTC
Description of problem:
Set containerized=true in ansible inventory, trigger a containerized installation. But ansible still get "is_containerized": "False" when gather cluster facts.

Version-Release number of selected component (if applicable):
https://github.com/openshift/openshift-ansible -b master

How reproducible:
Always

Steps to Reproduce:
1.Set containerized=true in ansible inventory, trigger a containerized installation with ansible-playbook

Actual results:
...
TASK: [openshift_facts | set_fact ] ******************************************* 
ok: [openshift-x.com] => {"ansible_facts": {"l_is_containerized": "False"}}
...
TASK: [openshift_facts | Gather Cluster facts and set is_containerized if needed] *** 
changed: [openshift-x.com] => {"ansible_facts": {... "is_atomic": false, "is_containerized": "False"...


Expected results:
"is_containerized" should be "True" when containerized is true

Additional info:

Comment 1 Jason DeTiberus 2016-04-01 21:16:16 UTC
Brenton, I wonder if your containerized fix addresses this.

Comment 2 Brenton Leanhardt 2016-04-04 12:09:45 UTC
It should.

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

Comment 4 Gaoyun Pei 2016-04-07 03:18:50 UTC
Verify this with openshift-ansible-3.0.74-1.git.0.29a226f.el7.noarch

Set containerized=True in ansible inventory, master and nodes are RHEL hosts.
ansible-playbook -i hosts -v  /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
...
TASK: [openshift_facts | set_fact ] ******************************************* 
ok: [openshift-x.com] => {"ansible_facts": {"l_is_atomic": "False"}}
ok: [openshift-x.com] => {"ansible_facts": {"l_is_atomic": "False"}}

TASK: [openshift_facts | set_fact ] ******************************************* 
ok: [openshift-x.com] => {"ansible_facts": {"l_is_containerized": "True"}}
ok: [openshift-x.com] => {"ansible_facts": {"l_is_containerized": "True"}}

Comment 6 errata-xmlrpc 2016-05-12 16:39:53 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:1065