{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1831","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1831/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1831/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1831/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1831","id":139996336,"number":1831,"title":"HAProxy error...unable to find server admin_page","user":{"login":"mrlesmithjr","id":4006149,"avatar_url":"https://avatars.githubusercontent.com/u/4006149?v=3","gravatar_id":"","url":"https://api.github.com/users/mrlesmithjr","html_url":"https://github.com/mrlesmithjr","followers_url":"https://api.github.com/users/mrlesmithjr/followers","following_url":"https://api.github.com/users/mrlesmithjr/following{/other_user}","gists_url":"https://api.github.com/users/mrlesmithjr/gists{/gist_id}","starred_url":"https://api.github.com/users/mrlesmithjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrlesmithjr/subscriptions","organizations_url":"https://api.github.com/users/mrlesmithjr/orgs","repos_url":"https://api.github.com/users/mrlesmithjr/repos","events_url":"https://api.github.com/users/mrlesmithjr/events{/privacy}","received_events_url":"https://api.github.com/users/mrlesmithjr/received_events","type":"User","site_admin":false},"labels":[{"id":437719791,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.0","name":"affects_2.0","color":"5319e7","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":265304236,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/networking","name":"networking","color":"c7def8","default":false},{"id":415779102,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-03-10T20:12:03Z","updated_at":"2016-12-07T15:55:12Z","closed_at":null,"body":"##### Issue Type:\n\nPlease pick one and delete the rest:\n- Bug Report\n##### Plugin Name:\n\nhaproxy module\n##### Ansible Version:\n\n```\nansible 2.0.1.0\n  config file = /Users/larrysmithjr/.ansible.cfg\n  configured module search path = Default w/o overrides\n```\n##### Ansible Configuration:\n\n```\n[defaults]\nhost_key_checking = False\nroles_path = /Users/larrysmithjr/Git_Projects/GitHub/mrlesmithjr\n```\n##### Environment:\n\nRunning Ansible from OSX against Ubuntu 14.04 LTS servers\n##### Summary:\n\nWhen executing the example playbook against HAProxy nodes w/out\nspecifying the backend name it errors out stating that the admin_page/HOSTNAME\ncannot be found. The admin socket is configured for HAProxy in the default\nlocation as specified in the module default. Can validate that it works\nby defining the backend pool or running hatop -s /var/run/haproxy.sock.\n##### Steps To Reproduce:\n\nIf running w/backend defined it sets the desired state of the host.\nHowever w/out defining the backed it errors out as stated above.\n\n```\n\n---\n- hosts: elk-haproxy-nodes\n  become: true\n  remote_user: remote\n  vars:\n    - haproxy_backends:\n        - name: elk-elasticsearch-tcp-9200\n          group: elk-processor-nodes\n          hosts:\n            - host: ELK-PROCESSOR-01\n              state: enabled\n            - host: ELK-PROCESSOR-02\n              state: enabled\n            - host: ELK-PROCESSOR-03\n              state: disabled\n    - haproxy_hosts:\n        - host: ELK-PROCESSOR-01\n          state: enabled\n        - host: ELK-PROCESSOR-02\n          state: enabled\n        - host: ELK-PROCESSOR-03\n          state: disabled\n  roles:\n  tasks:\n    - name: Managing haproxy hosts\n      haproxy:\n        host: \"{{ item.1.host }}\"\n#        backend: \"{{ item.0.name }}\"\n        state: \"{{ item.1.state }}\"\n        wait: yes\n      with_subelements:\n        - haproxy_backends\n        - hosts\n```\n\nYou can also paste gist.github.com links for larger files.\n##### Expected Results:\n\nThe host ELK-PROCESSOR-03 should have been placed\ninto maintenance for backend pools that it is a member of.\n##### Actual Results:\n\nWhat actually happened?\n\n```\nfailed: [ELK-HAPROXY-01] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-01', u'state': u'enabled'})) => {\"failed\": true, \"item\n\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-01\", \"state\": \"enabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-01\"}\nfailed: [ELK-HAPROXY-01] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-02', u'state': u'enabled'})) => {\"failed\": true, \"item\n\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-02\", \"state\": \"enabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-02\"}\nfailed: [ELK-HAPROXY-01] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-03', u'state': u'disabled'})) => {\"failed\": true, \"ite\nm\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-03\", \"state\": \"disabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-03\"}\nfailed: [ELK-HAPROXY-02] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-01', u'state': u'enabled'})) => {\"failed\": true, \"item\n\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-01\", \"state\": \"enabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-01\"}\nfailed: [ELK-HAPROXY-02] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-02', u'state': u'enabled'})) => {\"failed\": true, \"item\n\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-02\", \"state\": \"enabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-02\"}\nfailed: [ELK-HAPROXY-02] => (item=({u'group': u'elk-processor-nodes', u'name': u'elk-elasticsearch-tcp-9200'}, {u'host': u'ELK-PROCESSOR-03', u'state': u'disabled'})) => {\"failed\": true, \"ite\nm\": [{\"group\": \"elk-processor-nodes\", \"name\": \"elk-elasticsearch-tcp-9200\"}, {\"host\": \"ELK-PROCESSOR-03\", \"state\": \"disabled\"}], \"msg\": \"unable to find server admin_page/ELK-PROCESSOR-03\"}\n```\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/265485516","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1831#issuecomment-265485516","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1831","id":265485516,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T15:55:12Z","updated_at":"2016-12-07T15:55:12Z","body":"This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible\n\nPlease read through the <a href=\"http://docs.ansible.com/ansible/dev_guide/repomerge.html#move-issues-and-prs-to-new-repo\">repomerge</a> page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.\n\n<!-- boilerplate: repomerge -->"}}
{"actor":{"display_login":"ansibot"}}