Bug 1563132

Summary: upgrade failed due to 'openshift_is_atomic' is undefined
Product: OpenShift Container Platform Reporter: Weihua Meng <wmeng>
Component: Cluster Version OperatorAssignee: Scott Dodson <sdodson>
Status: CLOSED CURRENTRELEASE QA Contact: Weihua Meng <wmeng>
Severity: high Docs Contact:
Priority: high    
Version: 3.10.0CC: aos-bugs, jiajliu, jokerman, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-16 20:27:22 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 Weihua Meng 2018-04-03 08:49:50 UTC
Description of problem:
upgrade failed due to 'openshift_is_atomic' is undefined

upgrade ocp 3.9 to 3.10 containerized install on RHEL

Version-Release number of the following components:
openshift-ansible-3.10.0-0.15.0.git.0.556ddbb.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. upgrade ocp 3.9 to 3.10 containerized install on RHEL


Actual results:
Failure summary:


  1. Hosts:    host-8-249-118.host.centralci.eng.rdu2.redhat.com, host-8-250-49.host.centralci.eng.rdu2.redhat.com
     Play:     Install packages necessary for installer
     Task:     Ensure openshift-ansible installer package deps are installed
     Message:  The conditional check 'not openshift_is_atomic | bool' failed. The error was: error while evaluating conditional (not openshift_is_atomic | bool): 'openshift_is_atomic' is undefined
               
               The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/init/base_packages.yml': line 12, column 7, but may
               be elsewhere in the file depending on the exact syntax problem.
               
               The offending line appears to be:
               
                   block:
                   - name: Ensure openshift-ansible installer package deps are installed
                     ^ here


Expected results:
Upgrade succeeds

Comment 3 Weihua Meng 2018-04-04 07:35:35 UTC
All upgrade is blocked by this bug.
Testblocker keyword added.

Comment 5 Weihua Meng 2018-04-15 02:43:21 UTC
This error has been addressed.

openshift-ansible-3.10.0-0.21.0.git.0.0b1d180.el7.noarch

TASK [Ensure openshift-ansible installer package deps are installed] *****************************************************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/init/base_packages.yml:12
skipping: [qe-wmengah39-master-etcd-1.0414-7vl.qe.rhcloud.com] => (item=iproute)  => {
    "changed": false,
    "item": "iproute",
    "skip_reason": "Conditional result was False",
    "skipped": true
}
skipping: [qe-wmengah39-master-etcd-1.0414-7vl.qe.rhcloud.com] => (item=dbus-python)  => {
    "changed": false,
    "item": "dbus-python",
    "skip_reason": "Conditional result was False",
    "skipped": true
}
skipping: [qe-wmengah39-master-etcd-1.0414-7vl.qe.rhcloud.com] => (item=PyYAML)  => {
    "changed": false,
    "item": "PyYAML",
    "skip_reason": "Conditional result was False",
    "skipped": true
}
skipping: [qe-wmengah39-master-etcd-1.0414-7vl.qe.rhcloud.com] => (item=python-ipaddress)  => {
    "changed": false,
    "item": "python-ipaddress",
    "skip_reason": "Conditional result was False",
    "skipped": true
}
skipping: [qe-wmengah39-master-etcd-1.0414-7vl.qe.rhcloud.com] => (item=yum-utils)  => {
    "changed": false,
    "item": "yum-utils",
    "skip_reason": "Conditional result was False",
    "skipped": true
}

TASK [Ensure various deps for running system containers are installed]

Comment 6 Weihua Meng 2018-04-16 00:21:57 UTC
Fixed.
openshift-ansible-3.10.0-0.21.0.git.0.0b1d180.el7.noarch