Bug 1460999

Summary: Uninstall fails with an ansible error (is_atomic is undefined)
Product: OpenShift Container Platform Reporter: Nenad Peric <nperic>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: low Docs Contact:
Priority: low    
Version: 3.9.0CC: aos-bugs, jialiu, jokerman, mjudeiki, mmccomas
Target Milestone: ---Keywords: NeedsTestCase
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-31 15:48:02 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 Nenad Peric 2017-06-13 10:35:32 UTC
Description of problem:

According to the documentation, page 83, OpenShift Container Platform can be uninstalled running:

ansible-playbook -i inventory /usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml

However, the uninstaller fails on Remove packages task. 

Version-Release number of selected component (if applicable):

openshift-ansible-3.5.71-1.git.0.128c2db.el7.noarch



Steps to Reproduce:
1. Install OCP using ansible
2. Run uninstall.yml against the same inventory


Actual results:

TASK [Remove packages] *********************************************************
fatal: [master.example.com]: FAILED! => {
    "failed": true
}

MSG:

The conditional check 'not is_atomic | bool' failed. The error was: error while evaluating conditional (not is_atomic | bool): 'is_atomic' is undefined

The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/adhoc/uninstall.yml': line 92, column 9, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - block:
      - name: Remove packages
        ^ here



Expected results:

Uninstall should pass or give out warnings/errors encountered during the uninstall process. The uninstall process should not crash. 

Additional info:

The OCP in the above mentioned case was running within an OSP instance.

Comment 1 Mangirdas Judeikis 2017-12-17 17:43:19 UTC
Verified on 3.7 release branch too.

Comment 2 Nenad Peric 2018-04-05 15:28:34 UTC
This problem persists on OCP 3.9 as well.


TASK [Remove packages] ***********************************************************************************************************************************************************************************************************************
fatal: [master-dev.example.com]: FAILED! => {"msg": "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/adhoc/uninstall.yml': line 100, column 9, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    - block:
      - name: Remove packages
        ^ here
"}

Comment 4 Scott Dodson 2019-01-31 15:48:02 UTC
This has been fixed in 3.10 and later.