-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
roachprod: create admin user and backup schedule for virtual clusters #118851
roachprod: create admin user and backup schedule for virtual clusters #118851
Conversation
5eb5ccc
to
3bbaf2b
Compare
Ran a couple of builds on this branch:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank for fixing this!
3bbaf2b
to
c876254
Compare
Rebased to fix conflicts with recent changes. Worth noting is that I changed the default username/password combination from I'll run a few test runs on this branch, I'm curious if there were any other assumptions on the previous credentials that we missed. |
This changes `DefaultStartOpts` to use `system` as `VirtualClusterName`. This simplifies the starting logic slightly, as it ensures that the field is always non-empty when starting clusters. When using `roachprod start`, the field will correctly be set to `system`; when using `roachprod start-sql`, the field will be the name of the tenant being started. Epic: none Release note: None
We will soon create default backup schedules for tenants as they are started as well. This flag will allow backup management to be controlled the same way as they currently are for the system tenant. Epic: none Release note: None
This commit updates `roachprod start{-sql}` and unifies the set of steps performed on the cluster regardless of whether we are starting the system tenant for the first time or creating a new tenant. Specifically, tenants will also have an admin user configured and a default backup schedule is created when `--schedule-backups` is passed. Epic: none Release note: None
More concretly, build `StartOpts` based on roachtest's implementation of `DefaultStartOpts`, which includes creating a default backup schedule on start. Epic: none Release note: None
c876254
to
3d1995a
Compare
Ran a final run on this branch; failures are unrelated and also happen on master. TFTR! bors r=herkolategan |
Build succeeded: |
This has been running without problems on master, so I'll attempt to backport it. blathers backport 23.2 23.1 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 3cdcfe8 to blathers/backport-release-23.2-118851: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.2 failed. See errors above. error creating merge commit from 3cdcfe8 to blathers/backport-release-23.1-118851: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.1 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This commit updates
roachprod start{-sql}
and unifies the set ofsteps performed on the cluster regardless of whether we are starting
the system tenant for the first time or creating a new tenant.
Specifically, tenants will also have an admin user configured and a
default backup schedule is created when
--schedule-backups
is passed.Epic: none
Release note: None