日志中的错误如下:
2021-07-26T10:45:28.759+0800 DEBUG TaskBegin {“task”: “UpdateTopology: cluster=tidb-test”}
2021-07-26T10:45:38.760+0800 DEBUG TaskFinish {“task”: “UpdateTopology: cluster=tidb-test”, “error”: “context deadline exceeded”}
2021-07-26T10:45:38.760+0800 INFO Execute command finished {“code”: 1, “error”: “context deadline exceeded”, “errorVerbose”: “context deadline exceeded[ngithub.com/pingcap/errors.AddStack\
\tgithub.com/pingcap/errors@v0.11.4/errors.go:174\
github.com/pingcap/errors.Trace\
\tgithub.com/pingcap/errors@v0.11.4/juju_adaptor.go:15\
github.com/pingcap/tiup/pkg/cluster/manager.(*Manager](http://ngithub.com/pingcap/errors.AddStack\
\tgithub.com/pingcap/errors@v0.11.4/errors.go:174\
github.com/pingcap/errors.Trace\
\tgithub.com/pingcap/errors@v0.11.4/juju_adaptor.go:15\
github.com/pingcap/tiup/pkg/cluster/manager.(*Manager)).Reload\
[tgithub.com/pingcap/tiup/pkg/cluster/manager/reload.go:121\
github.com/pingcap/tiup/components/cluster/command.newReloadCmd.func1\
\tgithub.com/pingcap/tiup/components/cluster/command/reload.go:40\
github.com/spf13/cobra.(*Command](http://tgithub.com/pingcap/tiup/pkg/cluster/manager/reload.go:121\
github.com/pingcap/tiup/components/cluster/command.newReloadCmd.func1\
\tgithub.com/pingcap/tiup/components/cluster/command/reload.go:40\
github.com/spf13/cobra.(*Command)).execute\
[tgithub.com/spf13/cobra@v1.1.3/command.go:852\
github.com/spf13/cobra.(*Command](http://tgithub.com/spf13/cobra@v1.1.3/command.go:852\
github.com/spf13/cobra.(*Command)).ExecuteC\
[tgithub.com/spf13/cobra@v1.1.3/command.go:960\
github.com/spf13/cobra.(*Command](http://tgithub.com/spf13/cobra@v1.1.3/command.go:960\
github.com/spf13/cobra.(*Command)).Execute\
[tgithub.com/spf13/cobra@v1.1.3/command.go:897\
github.com/pingcap/tiup/components/cluster/command.Execute\
\tgithub.com/pingcap/tiup/components/cluster/command/root.go:264\
main.main\
\tgithub.com/pingcap/tiup/components/cluster/main.go:23\
runtime.main\
\truntime/proc.go:225\
runtime.goexit\
\truntime/asm_amd64.s:1371](http://tgithub.com/spf13/cobra@v1.1.3/command.go:897\
github.com/pingcap/tiup/components/cluster/command.Execute\
\tgithub.com/pingcap/tiup/components/cluster/command/root.go:264\
main.main\
\tgithub.com/pingcap/tiup/components/cluster/main.go:23\
runtime.main\
\truntime/proc.go:225\
runtime.goexit\
\truntime/asm_amd64.s:1371)”}
我看了一下reload.go 121行对应的代码:
tlsCfg, err := topo.TLSConfig(m.specManager.Path(name, spec.TLSCertKeyDir))
if err != nil {
return err
}
似乎和TLS相关的配置有关?