tiup dmctl create 出现dial tcp i/o timeout,但是通过mysql和telnet测试连接正常

【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】v5.0.6
【复现路径】
执行后报错:
在本机IP01为master,在本机IP01服务器执行命令,从IP01到IP02的20199端口的telnet正常;

tidb@dmm-001:~/dm/source$ tiup dmctl --master-addr IP01:8261 operate-source create dmw-089-32-50-2-16-source.yaml

//dmw-089-32-50-2-16-source.yaml 配置文件里面配置的IP02的mysql数据库连接信息,端口为20199

Found dmctl newer version:

The latest version:         v7.0.0
Local installed version:    v2.0.3
Update current component:   tiup update dmctl
Update all components:      tiup update --all

Starting component dmctl: /home/tidb/.tiup/components/dmctl/v2.0.3/dmctl/dmctl --master-addr IP01:8261 operate-source create dmw-089-32-50-2-16-source.yaml
{
“result”: false,
“msg”: “[code=10001:class=database:scope=not-set:level=high], Message: database driver error, RawCause: dial tcp IP02:20199: i/o timeout, Workaround: Please check the database connection and the database config in configuration file.”,
“sources”: [
]
}
mysql连接正常:
tidb@dmm-001:~/dm/source$ mysql -test -hIP02 -P20199 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3292709
Server version: 5.6.33-log MySQL Community Server (GPL)

telnet也正常
tidb@dmm-001:~/dm/source$ telnet IP02 20199
Trying IP02…
Connected to IP02.
Escape character is ‘^]’.
N
【遇到的问题:问题现象及影响】
“msg”: “[code=10001:class=database:scope=not-set:level=high], Message: database driver error, RawCause: dial tcp IP02:20199: i/o timeout, Workaround: Please check the database connection and the database config in configuration file.”,
【资源配置】
【附件:截图/日志/监控】

不止dm-master节点到MySQL端口要通,dm-worker节点的网络策略也要放通

work到master的任务正常,数据也在同步,由于改造了从master到work的网络路径,导致master到work的路径失效,目前master管理不到已有的work,想重新绑定,就出现现在的问题了。

我这里说的网络不止是dm-master到dm-worker,还包括dm-worker到MySQL的网络策略