Skip to content

Conversation

wendy-ha18
Copy link
Contributor

@wendy-ha18 wendy-ha18 commented Jul 22, 2025

This PR uses to update the document for migrate etcd v2 to etcd v3 at this issue: #798

  • Add prerequisites.
  • Define all variables and flags used in the examples in a bulleted list.
  • Describe process of migration.
  • Add note to guide user that etcdctl migrate command was removed in etcd v3.5.0 (pull/12971). They must use etcdctl v3.4 or earlier to perform the migration (CHANGELOG-3.5). Reference this issue: Missing command: migrate etcd#14058

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: wendy-ha18
Once this PR has been reviewed and has the lgtm label, please assign ivanvc for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wendy-ha18
Copy link
Contributor Author

Hi @nate-double-u @jberkus @ronaldngounou, this PR is ready to review. I'm a bit hesitate to backport to v3.7 cause I want to get feedbacks for it first. Please help me revise the migration process here. Thanks everyone!

@wendy-ha18 wendy-ha18 force-pushed the etcd-website-revise-how-to-migrate branch from f3be252 to 8434658 Compare July 22, 2025 23:05
@nate-double-u
Copy link
Contributor

I think there are a couple paths here:

  1. if we don't want to support migration from v2 to v3.5 and above, then we should remove migration from v3.5, v3.6, and v3.7.
  2. if we do want to keep supporting migration then it looks like the path is to go from v2 to v3.4, then do a stepwise upgrade from there (v3.4 to v3.5, v3.5 to v3.6 and so on). I don't think think this is a great user experience, and would rather go with option 1.

@wendy-ha18 wendy-ha18 marked this pull request as draft August 9, 2025 13:44
@wendy-ha18 wendy-ha18 force-pushed the etcd-website-revise-how-to-migrate branch from 2752911 to 544aa62 Compare August 9, 2025 14:40
@wendy-ha18 wendy-ha18 marked this pull request as ready for review August 9, 2025 14:45
@wendy-ha18 wendy-ha18 marked this pull request as draft August 9, 2025 14:46
@wendy-ha18 wendy-ha18 force-pushed the etcd-website-revise-how-to-migrate branch from 544aa62 to cbab8de Compare August 9, 2025 15:06
@wendy-ha18
Copy link
Contributor Author

Q: Should we keep the Visual guide GIF here? this's quite hard to maintain and I'm not sure about the accuracy of it now as it was created 3 years ago.

12_etcdctl_migrate_2016061602

@wendy-ha18
Copy link
Contributor Author

Warning: My cluster is already running etcd v3 only with etcd v3.6 so I'm still trying to figure out how to test this process. Are there any suggestion for it?

@wendy-ha18 wendy-ha18 marked this pull request as ready for review August 13, 2025 22:18
@ivanvc
Copy link
Member

ivanvc commented Aug 13, 2025

Q: Should we keep the Visual guide GIF here? this's quite hard to maintain and I'm not sure about the accuracy of it now as it was created 3 years ago.

I spoke about the GIFs in the tutorial pages with James before. I agree that the problem is that they can get outdated, and there's no easy way to update/reproduce them. An alternative could be to use a tool like VHS, write a script for each GIF, and use our official Docker images to reproduce the same GIFs later on.

@@ -0,0 +1,98 @@
---
title: How to migrate etcd from v2 to v3
Copy link
Member

@ivanvc ivanvc Aug 15, 2025

Choose a reason for hiding this comment

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

Suggestion to add "store" to the page title to avoid confusion.

Suggested change
title: How to migrate etcd from v2 to v3
title: How to migrate etcd from v2 store to v3

@jberkus
Copy link
Contributor

jberkus commented Aug 20, 2025

One more cleanup item: please fix the header for the how-to-migrate page so it shows up in 3.4's TOC.

@jberkus
Copy link
Contributor

jberkus commented Aug 20, 2025

Two more things per Ivan's comments.

  • Most mentions of "v2" should actually say "v2store". A lot of mentions of v3 should also say v3store.
  • There should be a couple sentences at the top that explain how v2store relates to etcd v2.X

Also: mention that there's also a change of API, and link to this document: https://etcd.io/docs/v3.4/op-guide/v2-migration/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants