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: | Installer | Assignee: | Jose A. Rivera <jarrpa> |
| Status: | CLOSED ERRATA | QA Contact: | Qin Ping <piqin> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.11.0 | CC: | 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
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.
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 |