{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/9536","repository_url":"https://api.github.com/repos/openshift/openshift-ansible","labels_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/9536/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/9536/comments","events_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/9536/events","html_url":"https://github.com/openshift/openshift-ansible/issues/9536","id":349670453,"node_id":"MDU6SXNzdWUzNDk2NzA0NTM=","number":9536,"title":"OpenShift install fails with Set heketi-cli command ","user":{"login":"mbruzek","id":6385185,"node_id":"MDQ6VXNlcjYzODUxODU=","avatar_url":"https://avatars2.githubusercontent.com/u/6385185?v=4","gravatar_id":"","url":"https://api.github.com/users/mbruzek","html_url":"https://github.com/mbruzek","followers_url":"https://api.github.com/users/mbruzek/followers","following_url":"https://api.github.com/users/mbruzek/following{/other_user}","gists_url":"https://api.github.com/users/mbruzek/gists{/gist_id}","starred_url":"https://api.github.com/users/mbruzek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbruzek/subscriptions","organizations_url":"https://api.github.com/users/mbruzek/orgs","repos_url":"https://api.github.com/users/mbruzek/repos","events_url":"https://api.github.com/users/mbruzek/events{/privacy}","received_events_url":"https://api.github.com/users/mbruzek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jarrpa","id":1234462,"node_id":"MDQ6VXNlcjEyMzQ0NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1234462?v=4","gravatar_id":"","url":"https://api.github.com/users/jarrpa","html_url":"https://github.com/jarrpa","followers_url":"https://api.github.com/users/jarrpa/followers","following_url":"https://api.github.com/users/jarrpa/following{/other_user}","gists_url":"https://api.github.com/users/jarrpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrpa/subscriptions","organizations_url":"https://api.github.com/users/jarrpa/orgs","repos_url":"https://api.github.com/users/jarrpa/repos","events_url":"https://api.github.com/users/jarrpa/events{/privacy}","received_events_url":"https://api.github.com/users/jarrpa/received_events","type":"User","site_admin":false},"assignees":[{"login":"jarrpa","id":1234462,"node_id":"MDQ6VXNlcjEyMzQ0NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1234462?v=4","gravatar_id":"","url":"https://api.github.com/users/jarrpa","html_url":"https://github.com/jarrpa","followers_url":"https://api.github.com/users/jarrpa/followers","following_url":"https://api.github.com/users/jarrpa/following{/other_user}","gists_url":"https://api.github.com/users/jarrpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrpa/subscriptions","organizations_url":"https://api.github.com/users/jarrpa/orgs","repos_url":"https://api.github.com/users/jarrpa/repos","events_url":"https://api.github.com/users/jarrpa/events{/privacy}","received_events_url":"https://api.github.com/users/jarrpa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-08-10T22:05:34Z","updated_at":"2018-08-15T15:32:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Description\r\n\r\nPerforming an multiple master install on OpenStack the installer failes with the messages:\r\n\r\n```\r\nTASK [openshift_storage_glusterfs : Set heketi-cli command] ********************\r\n...\r\nFailure summary:\r\n\r\n\r\n  1. Hosts:    master-0.scale-ci.example.com\r\n     Play:     Configure GlusterFS\r\n     Task:     Set heketi-cli command\r\n     Message:  The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'results'\r\n               \r\n               The error appears to have been in '/home/cloud-user/openshift-ansible/roles/openshift_storage_glusterfs/tasks/heketi_load.yml': line 7, column 3, but may\r\n               be elsewhere in the file depending on the exact syntax problem.\r\n               \r\n               The offending line appears to be:\r\n               \r\n               \r\n               - name: Set heketi-cli command\r\n                 ^ here\r\n```\r\n\r\n##### Version\r\n\r\nPlease put the following version information in the code block\r\nindicated below.\r\n\r\n* Your ansible version per `ansible --version`: ansible 2.6.0\r\n\r\n* The output of `git describe`: openshift-ansible-3.9.0-0.10.0-3147-g85e1bc8\r\n\r\nPlace the output between the code block below:\r\n\r\n```\r\nansible 2.6.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python2.7/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 2.7.5 (default, Jul 16 2018, 19:52:45) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]\r\n\r\nopenshift-ansible-3.9.0-0.10.0-3147-g85e1bc8\r\n```\r\n\r\n##### Steps To Reproduce\r\n1. Install OpenShift on OpenStack on the install step the heketi task fails with an error.\r\n\r\n##### Expected Results\r\nI expect the install to complete successfully without errors.\r\n\r\n```\r\nsource /home/cloud-user/keystonerc; ansible-playbook -vvv --user openshift -i inventory -i openshift-ansible/playbooks/openstack/inventory.py openshift-ansible/playbooks/openstack/openshift-cluster/install.yml 2>&1 >> /home/cloud-user/logs/openshift_install.log\r\n```\r\n\r\n##### Observed Results\r\nIt looks like the task is getting called with an object that does not have the results.results dictionary. It is possible the tasks are getting skipped incorrectly.\r\n\r\nThe glusterfs pods are running on this system:  \r\n\r\n```\r\nroot@master-0: ~ # oc get pods --all-namespaces\r\nNAMESPACE        NAME                                               READY     STATUS    RESTARTS   AGE                                                                                            \r\nglusterfs        deploy-heketi-storage-1-xnr7n                      1/1       Running   0          23m                                                                                            \r\nglusterfs        glusterfs-storage-2bcg5                            1/1       Running   0          25m                                                                                            \r\nglusterfs        glusterfs-storage-bxw4x                            1/1       Running   0          25m                                                                                            \r\nglusterfs        glusterfs-storage-z5hx4                            1/1       Running   0          25m  \r\n```\r\n\r\n\r\n##### Additional Information\r\n\r\nI worked with several people in IRC on this topic they asked me to do more installs with some additional debug information. \r\n\r\nHere is one debug statement that printed out:\r\n```\r\nTASK [openshift_storage_glusterfs : debug] *************************************\r\ntask path: /home/cloud-user/openshift-ansible/roles/openshift_storage_glusterfs/tasks/heketi_load.yml:2\r\nFriday 10 August 2018  17:27:36 -0400 (0:00:00.047)       0:23:45.080 ********* \r\nok: [master-0.scale-ci.example.com] => {\r\n    \"heketi_pod\": {\r\n        \"changed\": false, \r\n        \"failed\": false, \r\n        \"results\": {\r\n            \"cmd\": \"/bin/oc get pod --selector=glusterfs=heketi-storage-pod -o json -n glusterfs\", \r\n            \"results\": [\r\n                {\r\n                    \"apiVersion\": \"v1\", \r\n                    \"items\": [], \r\n                    \"kind\": \"List\", \r\n                    \"metadata\": {\r\n                        \"resourceVersion\": \"\", \r\n                        \"selfLink\": \"\"\r\n                    }\r\n                }\r\n            ], \r\n            \"returncode\": 0\r\n        }, \r\n        \"state\": \"list\"\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/openshift-ansible/issues/comments/413235652","html_url":"https://github.com/openshift/openshift-ansible/issues/9536#issuecomment-413235652","issue_url":"https://api.github.com/repos/openshift/openshift-ansible/issues/9536","id":413235652,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzIzNTY1Mg==","user":{"login":"jarrpa","id":1234462,"node_id":"MDQ6VXNlcjEyMzQ0NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/1234462?v=4","gravatar_id":"","url":"https://api.github.com/users/jarrpa","html_url":"https://github.com/jarrpa","followers_url":"https://api.github.com/users/jarrpa/followers","following_url":"https://api.github.com/users/jarrpa/following{/other_user}","gists_url":"https://api.github.com/users/jarrpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jarrpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarrpa/subscriptions","organizations_url":"https://api.github.com/users/jarrpa/orgs","repos_url":"https://api.github.com/users/jarrpa/repos","events_url":"https://api.github.com/users/jarrpa/events{/privacy}","received_events_url":"https://api.github.com/users/jarrpa/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T15:32:10Z","updated_at":"2018-08-15T15:32:10Z","author_association":"CONTRIBUTOR","body":"https://github.com/openshift/openshift-ansible/pull/9468 merged recently, which may help resolve this issue. Try again?"}}
{"actor":{"display_login":"jarrpa"}}