{"action":"created","issue":{"url":"https://api.github.com/repos/gluster/gluster-ansible/issues/62","repository_url":"https://api.github.com/repos/gluster/gluster-ansible","labels_url":"https://api.github.com/repos/gluster/gluster-ansible/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/gluster/gluster-ansible/issues/62/comments","events_url":"https://api.github.com/repos/gluster/gluster-ansible/issues/62/events","html_url":"https://github.com/gluster/gluster-ansible/issues/62","id":395085211,"node_id":"MDU6SXNzdWUzOTUwODUyMTE=","number":62,"title":"Error in example: gluster_cluster_hosts: \"{{ groups['all'] }}\"","user":{"login":"mykaul","id":4655593,"node_id":"MDQ6VXNlcjQ2NTU1OTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4655593?v=4","gravatar_id":"","url":"https://api.github.com/users/mykaul","html_url":"https://github.com/mykaul","followers_url":"https://api.github.com/users/mykaul/followers","following_url":"https://api.github.com/users/mykaul/following{/other_user}","gists_url":"https://api.github.com/users/mykaul/gists{/gist_id}","starred_url":"https://api.github.com/users/mykaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mykaul/subscriptions","organizations_url":"https://api.github.com/users/mykaul/orgs","repos_url":"https://api.github.com/users/mykaul/repos","events_url":"https://api.github.com/users/mykaul/events{/privacy}","received_events_url":"https://api.github.com/users/mykaul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-01T13:52:34Z","updated_at":"2019-01-04T02:31:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When trying this example, instead of a list of IPs, I'm getting a Python exception - it fails (I think) on the 'strip' that is missing - https://github.com/ansible/ansible/blob/363ec65062172f0c595a9f91a93be6ab2e26228f/lib/ansible/modules/storage/glusterfs/gluster_volume.py#L321\r\n\r\n```\r\n   node-1: task path: /etc/ansible/roles/gluster.cluster/roles/gluster_volume/tasks/main.yml:2\r\n    node-1: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'strip'\r\n    node-1: fatal: [node-1]: FAILED! => {\"changed\": false, \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1546349804.09-227968537903750/AnsiballZ_gluster_volume.py\\\", line 113, in <module>\\n    _ansiballz_main()\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1546349804.09-227968537903750/AnsiballZ_gluster_volume.py\\\", line 105, in _ansiballz_main\\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\\n  File \\\"/root/.ansible/tmp/ansible-tmp-1546349804.09-227968537903750/AnsiballZ_gluster_volume.py\\\", line 48, in invoke_module\\n    imp.load_module('__main__', mod, module, MOD_DESC)\\n  File \\\"/tmp/ansible_gluster_volume_payload_BDtslG/__main__.py\\\", line 527, in <module>\\n  File \\\"/tmp/ansible_gluster_volume_payload_BDtslG/__main__.py\\\", line 451, in main\\n  File \\\"/tmp/ansible_gluster_volume_payload_BDtslG/__main__.py\\\", line 298, in probe_all_peers\\nAttributeError: 'dict' object has no attribute 'strip'\\n\", \"module_stdout\": \"\", \"msg\": \"MODULE FAILURE\\nSee stdout/stderr for the exact error\", \"rc\": 1}\r\n\r\n```\r\n\r\nIf I'm using something like:\r\n```\r\n     gluster_cluster_hosts:\r\n       - 192.168.250.11\r\n       - 192.168.250.12\r\n       - 192.168.250.13\r\n```\r\n\r\nEverything works fine."},"comment":{"url":"https://api.github.com/repos/gluster/gluster-ansible/issues/comments/451338830","html_url":"https://github.com/gluster/gluster-ansible/issues/62#issuecomment-451338830","issue_url":"https://api.github.com/repos/gluster/gluster-ansible/issues/62","id":451338830,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTMzODgzMA==","user":{"login":"sac","id":414248,"node_id":"MDQ6VXNlcjQxNDI0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/414248?v=4","gravatar_id":"","url":"https://api.github.com/users/sac","html_url":"https://github.com/sac","followers_url":"https://api.github.com/users/sac/followers","following_url":"https://api.github.com/users/sac/following{/other_user}","gists_url":"https://api.github.com/users/sac/gists{/gist_id}","starred_url":"https://api.github.com/users/sac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sac/subscriptions","organizations_url":"https://api.github.com/users/sac/orgs","repos_url":"https://api.github.com/users/sac/repos","events_url":"https://api.github.com/users/sac/events{/privacy}","received_events_url":"https://api.github.com/users/sac/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T02:31:54Z","updated_at":"2019-01-04T02:31:54Z","author_association":"MEMBER","body":"> I've moved back to using IPs. But if I've used:\r\n> \r\n> ```\r\n> gluster_cluster_hosts: \"{{ groups['all'] }}\"\r\n> ```\r\n> It broke.\r\n\r\nI used the same inventory, but this works. I use:\r\n\r\nansible-2.7.4-1.fc28.noarch\r\npython2-2.7.15-4.fc28.x86_64\r\npython2-jinja2-2.10-2.fc28.noarch\r\n\r\nCan you share your inventory file. Just curious."}}
{"actor":{"display_login":"sac"}}