Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tiup-dm import failed after upgrade to 1.4.0 #1266

Open
GMHDBJD opened this issue Apr 1, 2021 · 3 comments
Open

tiup-dm import failed after upgrade to 1.4.0 #1266

GMHDBJD opened this issue Apr 1, 2021 · 3 comments
Labels
ansible Categorizes issue as related to tidb-ansible status/investigating Indicates that a issue is under investigating. type/bug Categorizes issue as related to a bug.

Comments

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Apr 1, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

deploy dm v1.0

inventory.ini

## DM modules
[dm_master_servers]
dm_master ansible_host=172.28.0.101

[dm_worker_servers]
dm-worker1 ansible_host=172.28.0.111  server_id=101 source_id="mysql-replica-01" mysql_host=mysql1 mysql_user=root mysql_password='' mysql_port=3306

dm-worker2 ansible_host=172.28.0.112  server_id=101 source_id="mysql-replica-02" mysql_host=mysql2 mysql_user=root mysql_password='' mysql_port=3306

## Monitoring modules
[prometheus_servers]
prometheus ansible_host=172.28.0.121

[grafana_servers]
grafana ansible_host=172.28.0.121

[alertmanager_servers]
alertmanager ansible_host=172.28.0.121

## Global variables
[all:vars]
cluster_name = dm-v1

ansible_user = tidb

dm_version = v1.0.6

deploy_dir = /home/tidb/deploy

grafana_admin_user = "admin"
grafana_admin_password = "admin"

tiup dm import --yes --dir=/home/tidb/dm-ansible --cluster-version v2.0.1
2. What did you expect to see?
upgrade successfully

  1. What did you see instead?
Will use the following topology to deploy a DM cluster: 
global:
  deploy_dir: /home/tidb/deploy
  log_dir: /home/tidb/deploy/log
master_servers:
- host: 172.28.0.101
  ssh_port: 22
  port: 8261
  log_dir: /home/tidb/deploy/log
  config:
    log-level: info
  v1_source_path: /home/tidb/deploy/v1source
worker_servers:
- host: 172.28.0.111
  ssh_port: 22
  port: 8262
  deploy_dir: /home/tidb/deploy
  log_dir: /home/tidb/deploy/log
  config:
    log-level: info
- host: 172.28.0.112
  ssh_port: 22
  port: 8262
  deploy_dir: /home/tidb/deploy
  log_dir: /home/tidb/deploy/log
  config:
    log-level: info
monitoring_servers:
- host: 172.28.0.121
  ssh_port: 22
  port: 9090
  data_dir: /home/tidb/deploy/prometheus.data.metrics
  log_dir: /home/tidb/deploy/log
  external_alertmanagers: []
grafana_servers:
- host: 172.28.0.121
  ssh_port: 22
  port: 3000
  username: admin
  password: admin
  anonymous_enable: false
  root_url: ""
  domain: ""
alertmanager_servers:
- host: 172.28.0.121
  ssh_port: 22
  web_port: 9093
  cluster_port: 0
  data_dir: /home/tidb/deploy/data.alertmanager
  log_dir: /home/tidb/deploy/log


Error: Deploy directory overlaps to another instance (spec.deploy.dir_overlap)

The directory you specified in the topology file is:
  Directory: log directory /home/tidb/deploy/log
  Component: prometheus 172.28.0.121

It overlaps to another instance:
  Other Directory: log directory /home/tidb/deploy/log
  Other Component: alertmanager 172.28.0.121

Please modify the topology file and try again.
Error: run `/root/.tiup/components/dm/v1.4.0/tiup-dm` (wd:/root/.tiup/data/STII9GU) failed: exit status 1
  1. What version of TiUP are you using (tiup --version)?
1.4.0 tiup
Go Version: go1.16.2
Git Ref: v1.4.0
GitHash: eb335e6ad9d0dc19d1c43db422cd409d62bc3cea
@GMHDBJD GMHDBJD added the type/bug Categorizes issue as related to a bug. label Apr 1, 2021
@AstroProfundis
Copy link
Contributor

Hello, did you try the same operation with v1.3.7? You can install it with tiup install dm:v1.3.7 and run with tiup dm:v1.3.7 import xxx.

And if you can import it successfully with v1.3.7, then could you share the ~/.tiup/storage/dm/clusters/<cluster-name>/meta.yaml file of the imported cluster? (with confidential info redacted of course).

@GMHDBJD
Copy link
Contributor Author

GMHDBJD commented Apr 1, 2021

dm:v1.3.7 import successfully.
cat meta.yaml

user: tidb
dm_version: v2.0.1
topology:
  global:
    user: tidb
    ssh_port: 22
    ssh_type: builtin
    deploy_dir: /home/tidb/deploy
    data_dir: data
    log_dir: /home/tidb/deploy/log
    os: linux
    arch: amd64
  master_servers:
  - host: 172.28.0.101
    ssh_port: 22
    name: dm-172.28.0.101-8261
    port: 8261
    peer_port: 8291
    deploy_dir: /home/tidb/deploy/dm-master-8261
    data_dir: /home/tidb/deploy/dm-master-8261/data
    log_dir: /home/tidb/deploy/log
    config:
      log-level: info
    arch: amd64
    os: linux
    v1_source_path: /home/tidb/deploy/v1source
  worker_servers:
  - host: 172.28.0.111
    ssh_port: 22
    name: dm-172.28.0.111-8262
    port: 8262
    deploy_dir: /home/tidb/deploy
    data_dir: /home/tidb/deploy/data
    log_dir: /home/tidb/deploy/log
    config:
      log-level: info
    arch: amd64
    os: linux
  - host: 172.28.0.112
    ssh_port: 22
    name: dm-172.28.0.112-8262
    port: 8262
    deploy_dir: /home/tidb/deploy
    data_dir: /home/tidb/deploy/data
    log_dir: /home/tidb/deploy/log
    config:
      log-level: info
    arch: amd64
    os: linux
  monitoring_servers:
  - host: 172.28.0.121
    ssh_port: 22
    port: 9090
    deploy_dir: /home/tidb/deploy/prometheus-9090
    data_dir: /home/tidb/deploy/prometheus.data.metrics
    log_dir: /home/tidb/deploy/log
    arch: amd64
    os: linux
  grafana_servers:
  - host: 172.28.0.121
    ssh_port: 22
    port: 3000
    deploy_dir: /home/tidb/deploy/grafana-3000
    arch: amd64
    os: linux
    username: admin
    password: admin
  alertmanager_servers:
  - host: 172.28.0.121
    ssh_port: 22
    web_port: 9093
    cluster_port: 9094
    deploy_dir: /home/tidb/deploy/alertmanager-9093
    data_dir: /home/tidb/deploy/data.alertmanager
    log_dir: /home/tidb/deploy/log
    arch: amd64
    os: linux

@AstroProfundis AstroProfundis added ansible Categorizes issue as related to tidb-ansible status/investigating Indicates that a issue is under investigating. labels Apr 3, 2021
@lance6716
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Categorizes issue as related to tidb-ansible status/investigating Indicates that a issue is under investigating. type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants