Bug 1323058 - "containerized=true" doesn't work on RHEL
Summary: "containerized=true" doesn't work on RHEL
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-01 07:21 UTC by Gaoyun Pei
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version: openshift-ansible-3.0.74-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:39:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

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


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