Already fixed in 3.11 by above-mentioned PR, moving to ON_QA
https://github.com/openshift/openshift-ansible/pull/8885 merged several days ago In openshift-ansible-3.11.0-0.27.0 and later
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'"}
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.
PR Created in master: https://github.com/openshift/openshift-ansible/pull/10137
Master PR created: https://github.com/openshift/openshift-ansible/pull/10166
PR merged, backport to 3.11 created: https://github.com/openshift/openshift-ansible/pull/10204
Backport PR merged.
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.
New bug: https://bugzilla.redhat.com/show_bug.cgi?id=1646788
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