Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

dm-ansible: don't add config in config file if not setted in inventory.ini #346

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

WangXiangUSTC
Copy link
Contributor

@WangXiangUSTC WangXiangUSTC commented Nov 5, 2019

What problem does this PR solve?

server-id, flavor, relay-binlog-name and relay-binlog-gtid is not necessary any more, so user may not set in inventory.ini when use ansible to deploy, but now it will return error "AnsibleUndefinedVariable: 'server_id' is undefined"

test

manual test

What is changed and how it works?

don't add config in config file if not setted in inventory.ini

Related changes

  • Need to cherry-pick to the release branch

@WangXiangUSTC WangXiangUSTC added status/PTAL This PR is ready for review. Add this label back after committing new changes type/bug-fix Bug fix type/dm-ansible labels Nov 5, 2019
@codecov
Copy link

codecov bot commented Nov 5, 2019

Codecov Report

Merging #346 into master will increase coverage by 0.0476%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master       #346        +/-   ##
================================================
+ Coverage   57.6128%   57.6605%   +0.0477%     
================================================
  Files           159        158         -1     
  Lines         16019      15978        -41     
================================================
- Hits           9229       9213        -16     
+ Misses         5887       5867        -20     
+ Partials        903        898         -5

Copy link
Contributor

@liubo0127 liubo0127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@csuzhangxc csuzhangxc added status/LGT2 Two reviewers already commented LGTM, ready for merge needs-cherry-pick-release-1.0 This PR should be cherry-picked to release-1.0. Remove this label after cherry-picked to release-1.0 and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Nov 5, 2019
@WangXiangUSTC WangXiangUSTC merged commit 333b750 into master Nov 5, 2019
@WangXiangUSTC WangXiangUSTC deleted the xiang/fix_ansible branch November 5, 2019 09:53
@sre-bot
Copy link

sre-bot commented Nov 5, 2019

cherry pick to release-1.0 in PR #347

@sre-bot sre-bot added already-cherry-pick-1.0 The related PR is already cherry-picked to release-1.0. Add this label once the PR is cherry-picked and removed needs-cherry-pick-release-1.0 This PR should be cherry-picked to release-1.0. Remove this label after cherry-picked to release-1.0 labels Nov 5, 2019
@ericsyh ericsyh added this to the v1.0.2 milestone Nov 22, 2019
@ericsyh ericsyh removed this from the v1.0.3 milestone Dec 4, 2019
lichunzhu pushed a commit to lichunzhu/dm that referenced this pull request Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
already-cherry-pick-1.0 The related PR is already cherry-picked to release-1.0. Add this label once the PR is cherry-picked status/LGT2 Two reviewers already commented LGTM, ready for merge type/bug-fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants