Bug 1625090

Summary: [CNS][3.11] Run standalone deployment playbook with glusterfs_registry group failed due to AnsibleUndefinedVariable
Product: OpenShift Container Platform Reporter: Wenkai Shi <weshi>
Component: InstallerAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED ERRATA QA Contact: Qin Ping <piqin>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jarrpa, jialiu, jokerman, mgugino, mmccomas
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1590138 Environment:
Last Closed: 2018-11-20 03:10:43 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:
Bug Depends On: 1590138    
Bug Blocks:    

Comment 1 Jose A. Rivera 2018-09-17 18:34:43 UTC
Already fixed in 3.11 by above-mentioned PR, moving to ON_QA

Comment 2 Scott Dodson 2018-09-17 18:37:58 UTC
https://github.com/openshift/openshift-ansible/pull/8885 merged several days ago

In openshift-ansible-3.11.0-0.27.0 and later

Comment 3 Wenkai Shi 2018-09-18 06:10:55 UTC
Checked with version openshift-ansible-3.11.7-1.git.0.911481d.el7_5.noarch, issue still appear.

# rpm -q openshift-ansible
openshift-ansible-3.11.7-1.git.0.911481d.el7_5.noarch

# ansible-playbook -i inventory -vv /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/registry.yml
...
TASK [openshift_persistent_volumes : Deploy PersistentVolumeClaim definitions] ***************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_persistent_volumes/tasks/pvc.yml:2
Tuesday 18 September 2018  13:54:43 +0800 (0:00:00.131)       0:06:03.653 ***** 
fatal: [qe-weshi-cnsr-master-etcd-1.0918-zl4.qe.rhcloud.com]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'annotations'"}

Comment 6 Jose A. Rivera 2018-09-18 21:26:38 UTC
I think I see the problem, I should be able to have something out tonight or tomorrow. This will also make sure you won't have a need for using "openshift_hosted_registry_storage_glusterfs_swap=true", since that variable is not supported.

Comment 7 Michael Gugino 2018-09-18 21:52:14 UTC
PR Created in master: https://github.com/openshift/openshift-ansible/pull/10137

Comment 10 Jose A. Rivera 2018-09-20 12:37:47 UTC
Master PR created: https://github.com/openshift/openshift-ansible/pull/10166

Comment 11 Jose A. Rivera 2018-09-22 16:01:29 UTC
PR merged, backport to 3.11 created: https://github.com/openshift/openshift-ansible/pull/10204

Comment 12 Jose A. Rivera 2018-10-02 14:45:47 UTC
Backport PR merged.

Comment 14 Qin Ping 2018-11-06 01:42:23 UTC
Verified with:
openshift-ansible-3.11.38-1.git.0.d146f83.el7.noarch

TASK [openshift_persistent_volumes : Deploy PersistentVolumeClaim definitions] ************************************************************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_persistent_volumes/tasks/pvc.yml:2
ok: [master-etcd-1.1105-e8q.qe.rhcloud.com] => {"changed": false, "checksum": "77865ed87bd7a929bf3099757972f30883321d61", "dest": "/tmp/openshift-ansible-ufrtw8E/persistent-volume-claims.yml", "gid": 0, "group": "root", "md5sum": "6d891f959e0fedb8adca4ddda7ca18e9", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 431, "src": "/root/.ansible/tmp/ansible-tmp-1541390209.96-271107254025084/source", "state": "file", "uid": 0}

But found another issue in CNS standalone installer, will create another bug to track.

Comment 15 Qin Ping 2018-11-06 02:35:42 UTC
New bug: https://bugzilla.redhat.com/show_bug.cgi?id=1646788

Comment 17 errata-xmlrpc 2018-11-20 03:10:43 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-2018:3537