skip destroy monitor when ignore_exporter is true - #2197
Conversation
Signed-off-by: Smityz <smityz@qq.com>
|
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
Codecov Report✅ All modified and coverable lines are covered by tests. Please upload reports for the commit e73a281 to get more accurate results. Additional details and impacted files@@ Coverage Diff @@
## master #2197 +/- ##
==========================================
- Coverage 56.14% 55.97% -0.17%
==========================================
Files 320 320
Lines 33866 33866
==========================================
- Hits 19014 18956 -58
- Misses 12583 12641 +58
Partials 2269 2269
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I suggest to move this if to "instCount[inst.GetManageHost()]--".So it will have the same behave like deploy.(If there are two instant on one machine, only one has "nomonitor" config, tiup cluster will deyloy and destroy monitor on this machine) |
updated |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: srstack The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
New changes are detected. LGTM label has been removed. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Adapt the final fix from pingcap#2197 to current master. The original implementation and review update are in commits 4e06282 and 8025e3a. Signed-off-by: Smityz <smityz@qq.com> Signed-off-by: Ziqian Qin <eke@fastmail.com>
* cluster: honor ignore_exporter when destroying a cluster Adapt the final fix from #2197 to current master. The original implementation and review update are in commits 4e06282 and 8025e3a. Signed-off-by: Smityz <smityz@qq.com> Signed-off-by: Ziqian Qin <eke@fastmail.com> * cluster: test exporter preservation during destroy Cover shared and managed exporters, multiple instances per host, and force destroy. Verify exporter directories, systemd units, and port checks while keeping cleanup of cluster-owned components intact. Signed-off-by: Ziqian Qin <eke@fastmail.com> --------- Signed-off-by: Smityz <smityz@qq.com> Signed-off-by: Ziqian Qin <eke@fastmail.com> Co-authored-by: Smityz <smityz@qq.com>
* cluster: fix Grafana VM datasource replacement (#2732) (cherry picked from commit 17b30ee) * cluster: scrape node_exporter on dedicated tidb-dashboard hosts (#2734) (cherry picked from commit c1c95d7) * ci: migrate to Bookworm and fix concurrent TLS CA copying (#2738) * ci: migrate integration test nodes to Debian Bookworm Remove the unused JRE 11 dependency, declare the systemd and process-management tools needed by node tests, and use systemctl is-enabled instead of distro-specific status output. Signed-off-by: Ziqian Qin <eke@fastmail.com> * ci: export cluster failure logs from the control container Copy collected node logs to the runner before detection and upload, and retain separate artifacts for each matrix case. This makes the runtime failures exposed by the Bookworm migration diagnosable. Signed-off-by: Ziqian Qin <eke@fastmail.com> * ci: bump Bookworm scale tests off TiDB v4.0.12 TiFlash v4.0.12 cannot load on glibc 2.36 (GLIBC_PRIVATE in libpthread). The v4.0.12 TLS start path also hits empty-CA transfers more readily. Use versions already green on this PR: v6.2.0 for tools, v6.0.0 for core TLS. Signed-off-by: Ziqian Qin <eke@fastmail.com> * cluster: copy TLS CA from a per-instance cache file Parallel TLSCert tasks shared cache/ca.crt and could SCP a truncated file (#2727). Native-SSH rename on this Bookworm PR hits that race. Give each instance its own CA cache path, matching key/cert files. Remote dest remains ca.crt. Signed-off-by: Ziqian Qin <eke@fastmail.com> --------- Signed-off-by: Ziqian Qin <eke@fastmail.com> (cherry picked from commit 6f9f329) * cluster: honor ignore_exporter when destroying a cluster (#2737) * cluster: honor ignore_exporter when destroying a cluster Adapt the final fix from #2197 to current master. The original implementation and review update are in commits 4e06282 and 8025e3a. Signed-off-by: Smityz <smityz@qq.com> Signed-off-by: Ziqian Qin <eke@fastmail.com> * cluster: test exporter preservation during destroy Cover shared and managed exporters, multiple instances per host, and force destroy. Verify exporter directories, systemd units, and port checks while keeping cleanup of cluster-owned components intact. Signed-off-by: Ziqian Qin <eke@fastmail.com> --------- Signed-off-by: Smityz <smityz@qq.com> Signed-off-by: Ziqian Qin <eke@fastmail.com> Co-authored-by: Smityz <smityz@qq.com> (cherry picked from commit c00f987) * release: bump version to v1.17.1 (cherry picked from commit f965165) * ci: rerun release checks after mirror publication --------- Signed-off-by: Ziqian Qin <eke@fastmail.com> Signed-off-by: Smityz <smityz@qq.com> Co-authored-by: Hangjie Mo <mohangjie1995@gmail.com> Co-authored-by: mayjiang0203 <mayjiang0203@users.noreply.github.com> Co-authored-by: Smityz <smityz@qq.com>
when
ignore_exporter: trueis setting, tiup should skip destroying node exporter