playbook rolling_update_monitor.yml TASK set_fact failed
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error. updating from tidb1.0.6 to tidb2.0.2. follow https://www.pingcap.com/docs-cn/op-guide/tidb-v2-upgrade-guide/
$ ansible-playbook local_prepare.yml success $ ansible-playbook rolling_update.yml success $ ansible-playbook migrate_monitor.yml success $ ansible-playbook rolling_update_monitor.yml failed
-
What did you expect to see?
-
What did you see instead?
[]: Ansible FAILED! => playbook: rolling_update_monitor.yml; TASK: set_fact; message: {"msg": "The conditional check '((existing_api_keys['json'] | selectattr("name", "equalto", "grafana_apikey")) | list) | length == 1' failed. The error was: no test named 'equalto'\n\nThe error appears to have been in '/home/tidb/tidb-ansible/create_grafana_api_keys.yml': line 21, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- set_fact:\n ^ here\n"}
- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)? updating from tidb1.0.6 to tidb2.0.2.
Please check your jinja2 version: $ pip show jinja2 Name: Jinja2 Version: 2.9.6 You should use use pip to install Ansible and its dependencies according to https://www.pingcap.com/docs-cn/op-guide/tidb-v2-upgrade-guide/.
@LinuxGit It works .
pip install jinja2 --upgrade