tidb 3.0.13通过ansible升级4.0.7报错

通过ansible升级3.0.13到4.0.7,在 ansible-playbook rolling_update.yml -vvv过程中报以下错误:

<192.168.56.3> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=tidb -o ConnectTimeout=10 -o ControlPath=/home/tidb/.ansible/cp/a9fd27561b 192.168.56.3 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo /home/tidb/.ansible/tmp/ansible-tmp-1603268188.66-214806267610484” && echo ansible-tmp-1603268188.66-214806267610484=“echo /home/tidb/.ansible/tmp/ansible-tmp-1603268188.66-214806267610484” ) && sleep 0’“'”‘’
<192.168.56.3> (0, ‘ansible-tmp-1603268188.66-214806267610484=/home/tidb/.ansible/tmp/ansible-tmp-1603268188.66-214806267610484
‘, ‘’)
<192.168.56.3> ESTABLISH SSH CONNECTION FOR USER: tidb
<192.168.56.3> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=tidb -o ConnectTimeout=10 -o ControlPath=/home/tidb/.ansible/cp/a9fd27561b 192.168.56.3 ‘/bin/sh -c ‘"’“‘rm -f -r /home/tidb/.ansible/tmp/ansible-tmp-1603268188.66-214806267610484/ > /dev/null 2>&1 && sleep 0’”’"’’
<192.168.56.3> (0, ‘’, ‘’)
fatal: [192.168.56.3]: FAILED! => changed=false
msg: ‘AnsibleUndefinedVariable: ‘‘dict object’’ has no attribute ‘‘tiflash_servers’’’
to retry, use: --limit @/home/tidb/tidb-ansible/retry_files/rolling_update.retry

PLAY RECAP ****************************************************************************************
192.168.56.3 : ok=17 changed=1 unreachable=0 failed=1
192.168.56.4 : ok=9 changed=1 unreachable=0 failed=0
192.168.56.5 : ok=9 changed=1 unreachable=0 failed=0
192.168.56.6 : ok=8 changed=0 unreachable=0 failed=0
192.168.56.7 : ok=8 changed=0 unreachable=0 failed=0
192.168.56.8 : ok=8 changed=0 unreachable=0 failed=0
localhost : ok=8 changed=5 unreachable=0 failed=0

ERROR MESSAGE SUMMARY *****************************************************************************
[192.168.56.3]: Ansible Failed! ==>
changed=false
msg: ‘AnsibleUndefinedVariable: ‘‘dict object’’ has no attribute ‘‘tiflash_servers’’’

Ask TiDB User Group for help:
It seems that you have encountered some problem. Please describe your operation steps and provide error information as much as possible on https://asktug.com (in Chinese) or Newest 'tidb' Questions - Stack Overflow (in English). We will do our best to help solve your problem. Thanks. :slight_smile:
[tidb@tidb1_pd1 tidb-ansible]$

1.麻烦核实下 inventory.ini 中是否有 [tiflash_servers] ,如果没有的话将这部分内容添加进去,然后重新尝试下;
2.从 v4.0 版本开始推荐使用 TiUP 管理工具,可以使用 TiUP 进行升级操作,具体请参考 tidb 官方文档:
https://docs.pingcap.com/zh/tidb/stable/upgrade-tidb-using-tiup