tiup icon indicating copy to clipboard operation
tiup copied to clipboard

tiup: should enhance the support for deploy with hostname instead of ip

Open mayjiang0203 opened this issue 3 years ago • 2 comments

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

Deploy one cluster with tls enabled between all components in k8s dockers, part of topo list as following, tikv_servers:

  • host: tikv1-peer port: 20160 status_port: 20180 config: server.labels: dc: dc1 zone: zone1 host: host1
  1. What did you expect to see? Every things works fine.

  2. What did you see instead?

Found the tikv ips is not added to the certificate.

MySQL [(none)]> show config where type='tikv'; Empty set, 3 warnings (0.09 sec)

MySQL [(none)]> show warnings; +---------+------+-------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------------------------------------------------------------+ | Warning | 1105 | Get "https://10.233.80.87:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.80.87 | | Warning | 1105 | Get "https://10.233.98.159:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.98.159 | | Warning | 1105 | Get "https://10.233.113.26:20180/config": x509: certificate is valid for 127.0.0.1, not 10.233.113.26 | +---------+------+-------------------------------------------------------------------------------------------------------+ 3 rows in set (0.00 sec)

  1. What version of TiUP are you using (tiup --version)?

sh-4.2# tiup --version 1.9.1 tiup Go Version: go1.17.7 Git Ref: v1.9.1 GitHash: 8c9d75df55c48e3cd645c2eea1fb0c51cfcd92d0

mayjiang0203 avatar Jun 21 '22 07:06 mayjiang0203

image

mayjiang0203 avatar Jun 21 '22 07:06 mayjiang0203

/assign @AstroProfundis

mayjiang0203 avatar Jun 21 '22 07:06 mayjiang0203