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

[yugabyted] Support for YugabyteDB version upgrades using yugabyted CLI #21888

Closed
1 task done
nchandrappa opened this issue Apr 9, 2024 · 1 comment
Closed
1 task done
Assignees
Labels
area/ecosystem Label for all ecosystem related projects kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage

Comments

@nchandrappa
Copy link
Contributor

nchandrappa commented Apr 9, 2024

Jira Link: DB-10790

Description

Current user journey -

  1. Stop the yugabyted node one at a time
  2. restart the yugabyted node with the new YB release
  3. run the post-upgrade tasks using yugabyted configure admin_operations (wrapper for yb-admin) or directly execute yb-admin commands.

For the 3rd step, yugabyted should perform finalize upgrade natively without having to use the yb-admin commands.

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@nchandrappa nchandrappa added area/ecosystem Label for all ecosystem related projects status/awaiting-triage Issue awaiting triage area/ybd yugabyted project related Github tickets. labels Apr 9, 2024
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue and removed area/ybd yugabyted project related Github tickets. labels Apr 9, 2024
ShikharSahay added a commit that referenced this issue Apr 17, 2024
…abyted CLI.

Summary:
This diff introduces a new top-level command `upgrade_finalize` in yugabyted. This enhancement enables users to run post upgrade tasks specifically to **promote auto flags** and **upgrade ysql catalog**.

The following flag has been added to `upgrade_finalize` command :

`--upgrade_ysql_timeout`: Custom timeout value to upgrade the ysql system catalog.

**User journey to upgrade a YugabyteDB cluster through yugabyted**-

  # Stop the yugabyted node one at a time

  # restart the yugabyted node with the new YB release

  # yugabyted will verify that all nodes are upgraded to the new YB release, after that run `yugabyted upgrade_finalize` to run the post-upgrade tasks.
Jira: DB-10790

Test Plan: Manual Testing

Reviewers: nikhil

Reviewed By: nikhil

Subscribers: yugabyted-dev, shikhar.sahay

Differential Revision: https://phorge.dev.yugabyte.com/D33976
ShikharSahay added a commit that referenced this issue Apr 25, 2024
…on mismatch between the nodes.

Summary:
Made changes to the `/alerts` endpoint to alert the users when the cluster has nodes in different versions. The alert message informs users about the version mismatch and gives details about version of all the nodes.
Jira: DB-10790

Test Plan: Manual Testing

Reviewers: nikhil

Reviewed By: nikhil

Subscribers: yugabyted-dev, shikhar.sahay

Differential Revision: https://phorge.dev.yugabyte.com/D34328
@ShikharSahay
Copy link
Contributor

Code changes landed.

svarnau pushed a commit that referenced this issue May 25, 2024
…on mismatch between the nodes.

Summary:
Made changes to the `/alerts` endpoint to alert the users when the cluster has nodes in different versions. The alert message informs users about the version mismatch and gives details about version of all the nodes.
Jira: DB-10790

Test Plan: Manual Testing

Reviewers: nikhil

Reviewed By: nikhil

Subscribers: yugabyted-dev, shikhar.sahay

Differential Revision: https://phorge.dev.yugabyte.com/D34328
ShikharSahay added a commit that referenced this issue Jul 17, 2024
…pgrades using yugabyted CLI.

Summary:
This diff introduces a new top-level command `upgrade_finalize` in yugabyted. This enhancement enables users to run post upgrade tasks specifically to **promote auto flags** and **upgrade ysql catalog**.

The following flag has been added to `upgrade_finalize` command :

`--upgrade_ysql_timeout`: Custom timeout value to upgrade the ysql system catalog.

**User journey to upgrade a YugabyteDB cluster through yugabyted**-

  # Stop the yugabyted node one at a time

  # restart the yugabyted node with the new YB release

  # yugabyted will verify that all nodes are upgraded to the new YB release, after that run `yugabyted upgrade_finalize` to run the post-upgrade tasks.
Jira: DB-10790

Test Plan: Manual Testing.

Reviewers: nikhil

Reviewed By: nikhil

Subscribers: shikhar.sahay

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D36618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ecosystem Label for all ecosystem related projects kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage
Projects
None yet
Development

No branches or pull requests

3 participants