{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/340","repository_url":"https://api.github.com/repos/pingcap/tidb-ansible","labels_url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/340/comments","events_url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/340/events","html_url":"https://github.com/pingcap/tidb-ansible/issues/340","id":314563968,"number":340,"title":"FAILED! => {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}","user":{"login":"justlooks","id":295168,"avatar_url":"https://avatars1.githubusercontent.com/u/295168?v=4","gravatar_id":"","url":"https://api.github.com/users/justlooks","html_url":"https://github.com/justlooks","followers_url":"https://api.github.com/users/justlooks/followers","following_url":"https://api.github.com/users/justlooks/following{/other_user}","gists_url":"https://api.github.com/users/justlooks/gists{/gist_id}","starred_url":"https://api.github.com/users/justlooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justlooks/subscriptions","organizations_url":"https://api.github.com/users/justlooks/orgs","repos_url":"https://api.github.com/users/justlooks/repos","events_url":"https://api.github.com/users/justlooks/events{/privacy}","received_events_url":"https://api.github.com/users/justlooks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-16T09:15:03Z","updated_at":"2018-04-18T07:54:06Z","closed_at":"2018-04-18T07:54:06Z","author_association":"NONE","body":"i get problem when i run following  cmd,anyone can help?\r\n```\r\n# ansible-playbook local_prepare.yml\r\n\r\nPLAY [do local preparation] ********************************************************************************************************************************\r\n\r\nTASK [local : Stop if ansible version is too low, make sure that the Ansible version is Ansible 2.4.2 or later, otherwise a compatibility issue occurs.] ***\r\nok: [localhost] => {\r\n    \"changed\": false,\r\n    \"msg\": \"All assertions passed\"\r\n}\r\n\r\nTASK [local : create downloads and resources directories] **************************************************************************************************\r\nchanged: [localhost] => (item=/opt/tidb-ansible/downloads)\r\nchanged: [localhost] => (item=/opt/tidb-ansible/resources)\r\nchanged: [localhost] => (item=/opt/tidb-ansible/resources/bin)\r\n\r\nTASK [local : create cert directory] ***********************************************************************************************************************\r\n\r\nTASK [local : create packages.yml] *************************************************************************************************************************\r\nfatal: [localhost]: FAILED! => {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}\r\n\tto retry, use: --limit @/opt/tidb-ansible/retry_files/local_prepare.retry\r\n\r\nPLAY RECAP *************************************************************************************************************************************************\r\nlocalhost                  : ok=2    changed=1    unreachable=0    failed=1\r\n\r\n\r\nERROR MESSAGE SUMMARY **************************************************************************************************************************************\r\n[localhost]: Ansible FAILED! => playbook: local_prepare.yml; TASK: local : create packages.yml; message: {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}\r\n\r\nAsk for help:\r\nContact us: support@pingcap.com\r\nIt seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We'll try our best to help you deploy a TiDB cluster. Thanks. :-)\r\n```\r\n\r\nmy inventory file\r\n```\r\n# cat inventory.ini\r\n## TiDB Cluster Part\r\n[tidb_servers]\r\n10.100.1.26:22222\r\n10.100.1.27:22222\r\n\r\n[tikv_servers]\r\n10.100.1.23:22222\r\n10.100.1.24:22222\r\n10.100.1.25:22222\r\n\r\n[pd_servers]\r\n10.100.1.26:22222\r\n10.100.1.27:22222\r\n10.100.1.7:22222\r\n\r\n## Monitoring Part\r\n# prometheus and pushgateway servers\r\n[monitoring_servers]\r\n10.100.1.26:22222\r\n\r\n[grafana_servers]\r\n10.100.1.26:22222\r\n\r\n# node_exporter and blackbox_exporter servers\r\n[monitored_servers]\r\n10.100.1.26:22222\r\n10.100.1.27:22222\r\n10.100.1.7:22222\r\n10.100.1.23:22222\r\n10.100.1.24:22222\r\n10.100.1.25:22222\r\n\r\n## Global variables\r\n[all:vars]\r\ndeploy_dir = /data/deploy\r\n\r\n# ssh via normal user\r\nansible_user = tidb\r\n```\r\nand ansible log\r\n\r\n```\r\n2018-04-16 17:04:09,316 p=25703 u=root |  PLAY [do local preparation] ********************************************************************************************************************************\r\n2018-04-16 17:04:09,356 p=25703 u=root |  TASK [local : Stop if ansible version is too low, make sure that the Ansible version is Ansible 2.4.2 or later, otherwise a compatibility issue occurs.] ***\r\n2018-04-16 17:04:09,455 p=25703 u=root |  ok: [localhost] => {\r\n    \"changed\": false,\r\n    \"msg\": \"All assertions passed\"\r\n}\r\n2018-04-16 17:04:09,467 p=25703 u=root |  TASK [local : create downloads and resources directories] **************************************************************************************************\r\n2018-04-16 17:04:10,575 p=25703 u=root |  changed: [localhost] => (item=/opt/tidb-ansible/downloads)\r\n2018-04-16 17:04:11,358 p=25703 u=root |  changed: [localhost] => (item=/opt/tidb-ansible/resources)\r\n2018-04-16 17:04:12,117 p=25703 u=root |  changed: [localhost] => (item=/opt/tidb-ansible/resources/bin)\r\n2018-04-16 17:04:12,130 p=25703 u=root |  TASK [local : create cert directory] ***********************************************************************************************************************\r\n2018-04-16 17:04:12,226 p=25703 u=root |  TASK [local : create packages.yml] *************************************************************************************************************************\r\n2018-04-16 17:04:12,366 p=25703 u=root |  fatal: [localhost]: FAILED! => {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}\r\n2018-04-16 17:04:12,366 fail [localhost]: Ansible FAILED! => playbook: local_prepare.yml; TASK: local : create packages.yml; message: {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}\r\n2018-04-16 17:04:12,380 p=25703 u=root |        to retry, use: --limit @/opt/tidb-ansible/retry_files/local_prepare.retry\r\n\r\n2018-04-16 17:04:12,380 p=25703 u=root |  PLAY RECAP *************************************************************************************************************************************************\r\n2018-04-16 17:04:12,381 p=25703 u=root |  localhost                  : ok=2    changed=1    unreachable=0    failed=1\r\n2018-04-16 17:04:12,382 p=25703 u=root |  ERROR MESSAGE SUMMARY **************************************************************************************************************************************\r\n2018-04-16 17:04:12,382 p=25703 u=root |  [localhost]: Ansible FAILED! => playbook: local_prepare.yml; TASK: local : create packages.yml; message: {\"changed\": false, \"msg\": \"AnsibleUndefinedVariable: 'tidb_version' is undefined\"}\r\n\r\n2018-04-16 17:04:12,382 p=25703 u=root |  Ask for help:\r\n2018-04-16 17:04:12,383 p=25703 u=root |  Contact us: support@pingcap.com\r\n2018-04-16 17:04:12,383 p=25703 u=root |  It seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We'll try our best to help you deploy a TiDB cluster. Thanks. :-)\r\n```"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/comments/382298021","html_url":"https://github.com/pingcap/tidb-ansible/issues/340#issuecomment-382298021","issue_url":"https://api.github.com/repos/pingcap/tidb-ansible/issues/340","id":382298021,"user":{"login":"LinuxGit","id":1552622,"avatar_url":"https://avatars0.githubusercontent.com/u/1552622?v=4","gravatar_id":"","url":"https://api.github.com/users/LinuxGit","html_url":"https://github.com/LinuxGit","followers_url":"https://api.github.com/users/LinuxGit/followers","following_url":"https://api.github.com/users/LinuxGit/following{/other_user}","gists_url":"https://api.github.com/users/LinuxGit/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxGit/subscriptions","organizations_url":"https://api.github.com/users/LinuxGit/orgs","repos_url":"https://api.github.com/users/LinuxGit/repos","events_url":"https://api.github.com/users/LinuxGit/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxGit/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T07:54:06Z","updated_at":"2018-04-18T07:54:06Z","author_association":"CONTRIBUTOR","body":"If you still have issues, please re-open or create a new issue."}}
{"actor":{"display_login":"LinuxGit"}}