Bug 1692418

Summary: openshift-ansible fails with AnsibleUndefinedVariable: 'dict object' has no attribute 'annotations'"
Product: OpenShift Container Platform Reporter: Jason Montleon <jmontleo>
Component: InstallerAssignee: Joseph Callen <jcallen>
Installer sub component: openshift-ansible QA Contact: Gaoyun Pei <gpei>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: gpei
Version: 3.10.0   
Target Milestone: ---   
Target Release: 3.10.z   
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-06-11 09:30:48 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 Jason Montleon 2019-03-25 14:52:45 UTC
Description of problem:

Version-Release number of the following components:
openshift-ansible-3.10.129-1.git.0.7eeeb52.el7.noarch
ansible-2.5.15-1.el7ae.noarch

How reproducible:
Seems always with this version

Steps to Reproduce:
1. Try to install openshift 3.10

Actual results:
    default: TASK [openshift_persistent_volumes : Deploy PersistentVolume definitions] ******
    default: fatal: [192.168.121.250.nip.io]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'annotations'"}


Expected results:
Install works

Additional info:
openshift-ansible-3.10.127-1.git.0.131da09.el7.noarch worked

Comment 3 Joseph Callen 2019-03-29 18:34:08 UTC
Submitted PR: https://github.com/openshift/openshift-ansible/pull/11428

Comment 4 Joseph Callen 2019-03-29 19:22:31 UTC
There was already a PR submitted and merged to fix
https://github.com/openshift/openshift-ansible/pull/11429

Comment 5 Joseph Callen 2019-04-01 12:39:42 UTC
In build openshift-ansible-3.10.134-1

Comment 6 Gaoyun Pei 2019-04-08 05:50:13 UTC
QE could reproduce this issue with openshift-ansible-3.10.129-1, when installing a 3.10 cluster with NFS host, it would failed as below:

TASK [openshift_persistent_volumes : Deploy PersistentVolume definitions] ******
Monday 08 April 2019  11:19:49 +0800 (0:00:00.036)       0:22:22.615 ********** 
fatal: [ec2-54-81-200-28.compute-1.amazonaws.com]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'annotations'"}


Tried openshift-ansible-3.10.134-1.git.0.776828e.el7.noarch.rpm with a same installation, the issue was fixed.

Comment 9 errata-xmlrpc 2019-06-11 09:30:48 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-2019:0786