Skip to content

[VTAdmin]#11414

Closed
notfelineit wants to merge 38 commits intovitessio:mainfrom
planetscale:frances/remaining-vtadmin-parity-tickets
Closed

[VTAdmin]#11414
notfelineit wants to merge 38 commits intovitessio:mainfrom
planetscale:frances/remaining-vtadmin-parity-tickets

Conversation

@notfelineit
Copy link
Contributor

@notfelineit notfelineit commented Sep 30, 2022

Description

This PR completes "VTAdmin Parity" by implementing:

  • Validate
  • ValidateShard
  • Topology browser

Validate
Validate is added to the clusters list, since validation occurs at the cluster level:
validate

ValidateShard
validateShard

Related Issue(s)

Checklist

  • "Backport me!" label has been added if this change should be backported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: notfelineit <notfelineit@gmail.com>
@vitess-bot
Copy link
Contributor

vitess-bot bot commented Sep 30, 2022

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • If this is a change that users need to know about, please apply the release notes (needs details) label so that merging is blocked unless the summary release notes document is included.

If a new flag is being introduced:

  • Is it really necessary to add this flag?
  • Flag names should be clear and intuitive (as far as possible)
  • Help text should be descriptive.
  • Flag names should use dashes (-) as word separators rather than underscores (_).

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow should be required, the maintainer team should be notified.

Bug fixes

  • There should be at least one unit or end-to-end test.
  • The Pull Request description should include a link to an issue that describes the bug.

Non-trivial changes

  • There should be some code comments as to why things are implemented the way they are.

New/Existing features

  • Should be documented, either by modifying the existing documentation or creating new documentation.
  • New features should have a link to a feature request issue or an RFC that documents the use cases, corner cases and test cases.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • vtctl command output order should be stable and awk-able.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from VTop, if used there.

mattlord and others added 18 commits September 30, 2022 17:14
* Migrate dbconfigs to pflag

And remove deprecated flags

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Remove no longer needed function

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Address review comments and test failures

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Revert this bit as it changed behavior and caused some failures

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Fix vttestserver unit tests

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Fix vttestserver unit tests

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Update vttestserver help output

Signed-off-by: Matt Lord <mattalord@gmail.com>

Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: Michael Gale <mgale@demonware.net>

Signed-off-by: Michael Gale <mgale@demonware.net>
Co-authored-by: Michael Gale <mgale@demonware.net>
* [cli] [etcd2] Migrate etcd2topo flags to pflags

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* Fixing duplicate registration

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
* [cli] [topo] Migrate topo flags to pflags

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* fix vtorc test

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* feat: fix VTOrc test

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: remove binaries from the list that don't need the flags

Signed-off-by: Manan Gupta <manan@planetscale.com>

* test: update flag help outputs

Signed-off-by: Manan Gupta <manan@planetscale.com>

* code review

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* fix import formatting

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>
* feat: enable vtorc in backup tests

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: reorder verifying initial replication to happen first

Signed-off-by: Manan Gupta <manan@planetscale.com>

* test: increase timeout for VTOrc recovery to be successful and improve VTOrc performance

Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
* Pre-work tidying: tidy imports, remove commented out code

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* [rowlog] Migrate to pflag, add flag for testing resumability

Closes vitessio#11408.

Signed-off-by: Andrew Mason <andrew@planetscale.com>

Signed-off-by: Andrew Mason <andrew@planetscale.com>
…ase notes (vitessio#11402)

* flags etc: delete old flags and stats, add deprecation notice to release notes

Signed-off-by: deepthi <deepthi@planetscale.com>

* vrepl: fix tests to run SwitchReads with tablet_types flag instead of deprecated tablet_type

Signed-off-by: deepthi <deepthi@planetscale.com>

* pitr: fix tests to run SwitchReads with tablet_types flag instead of deprecated tablet_type

Signed-off-by: deepthi <deepthi@planetscale.com>

Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
* Migrate zk2topo and k8stopo to pflag

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Update flags help output

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Fix failing tests

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Fix help text output

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Fix help output

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Fix help text output

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Add vtorc to topo binaries

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Define k8stopo flags on all topo binaries. Change way flags are defined for tests

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Update test help output files

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
* Release notes for 14.0.3

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Addition of the release summary for `v14.0.3` (vitessio#11396)

* addition of empty release summary for 14.0.3

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* feat: add a line describing the VTOrc bug fix

Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>
* feat: remove unused package

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: replace usage of external test package with require

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: replace using external copied dependency with actual dependency

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: remove unused external package

Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Andres Taylor <andres@planetscale.com>
* expose /metrics from vtbackup http --port

Signed-off-by: Max Englander <max@planetscale.com>

* -mathrand seed

Signed-off-by: Max Englander <max@planetscale.com>

Signed-off-by: Max Englander <max@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>

Signed-off-by: Andrew Mason <andrew@planetscale.com>
…o#11424)

Signed-off-by: Manan Gupta <manan@planetscale.com>

Signed-off-by: Manan Gupta <manan@planetscale.com>
* [cli] [vtctl] Migrate all vtctl commands to `pflag`

Closes vitessio#11304.

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix test flags

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Handle subflag argument parsing without fully moving to cobra (yet!)

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* update examples

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* strip off double-dash

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Fix pflag getting tripped on shard 0 bounded shard names

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* remove commented-out code

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* update release notes

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix ExecuteHook, which takes no flags

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* add deprecation notice around interspersal

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* fix flags for vtctld2 web calls

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Run make web_build

Signed-off-by: notfelineit <notfelineit@gmail.com>

* test: fix vtctld_web_test

Signed-off-by: deepthi <deepthi@planetscale.com>

* update test assertions

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* just double-dash everything

Signed-off-by: Andrew Mason <andrew@planetscale.com>

* Run make web_build

Signed-off-by: notfelineit <notfelineit@gmail.com>

Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Co-authored-by: notfelineit <notfelineit@gmail.com>
Co-authored-by: deepthi <deepthi@planetscale.com>
notfelineit and others added 4 commits October 3, 2022 11:15
Signed-off-by: notfelineit <notfelineit@gmail.com>
…1153)

* Move towards MySQL 8.0 as the default template generation

This upgrades the remaining things to Ubuntu 20.04 and makes MySQL 8.0
the default we run tests against. We still have tests for MySQL 5.7 but
those are now explicitly opted into.

This should finish up the Ubuntu 20.04 upgrade and also makes things
easier for the future when we need to upgrade again.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

* CI: rename shard vtorc_8.0 to vtorc_5.7, change expected test output for 8.0

Signed-off-by: deepthi <deepthi@planetscale.com>

* CI: increase timeout for 8.0 tests on the actual test step from 30 to 45 mins

Signed-off-by: deepthi <deepthi@planetscale.com>

* CI: increase timeout to 45 minutes for mysql57 tests too. We really only need this for vtorc, but I've made the change to the template so all tests get it.

Signed-off-by: deepthi <deepthi@planetscale.com>

* CI: fix vtorc test to work with both 5.7 and 8.0

Signed-off-by: deepthi <deepthi@planetscale.com>

* CI: missed docker flag in mysql57 template, one more fix to vtorc test

Signed-off-by: deepthi <deepthi@planetscale.com>

* removing spaces from pb file

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* removing spaces in pb file part 2

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Co-authored-by: deepthi <deepthi@planetscale.com>
Co-authored-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
)

* When restarting workflow, use new context

Otherwise the restart will also fail due to the
expired/canceled context:
E0929 14:06:08.618848   85788 vdiff.go:247] Could not restart workflow commerce2customer: rpc error: code = Canceled desc = context canceled, please restart it manually
E0929 14:06:08.619983   85788 vtctl.go:2630] vdiff returning with error: rpc error: code = Canceled desc = context canceled

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Add retry when restarting workflows on ephemeral errors

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Correct mistake that prevented compilation :face-palm:

Signed-off-by: Matt Lord <mattalord@gmail.com>

Signed-off-by: Matt Lord <mattalord@gmail.com>
notfelineit and others added 14 commits October 3, 2022 15:29
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
…:planetscale/vitess into frances/remaining-vtadmin-parity-tickets

Signed-off-by: notfelineit <notfelineit@gmail.com>
@notfelineit
Copy link
Contributor Author

Closing this for #11438

@notfelineit notfelineit closed this Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.