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

Upgrade Pre-requisite and dealing with etcdv3/kdd backend error #149

Open
moshiurH opened this issue Oct 21, 2024 · 0 comments
Open

Upgrade Pre-requisite and dealing with etcdv3/kdd backend error #149

moshiurH opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
Docs-A Critical

Comments

@moshiurH
Copy link
Collaborator

moshiurH commented Oct 21, 2024

If the user attempts to upgrade MKE 3 with the typical etcdv3 backend (most common backend for MKE 3), they will run into the following error:

$ mkectl upgrade --hosts-path hosts.yaml --mke3-admin-username admin --mke3-admin-password orcaorcaorca -l debug --config-out new-mke4.yaml --external-address "147.75.202.233"
...
Error: unable to generate upgrade config: unsupported configuration for mke4 upgrade: mke3 cluster is using etcdv3 and not kdd backend for calico

To circumvent this issue, set the following flag in the toml flag as true:
calico_kdd = false
to
calico_kdd = true

$ AUTHTOKEN=$(curl --silent --insecure --data '{"username":"'$MKE_USERNAME'","password":"'$MKE_PASSWORD'"}' https://$MKE_HOST/auth/login | jq --raw-output .auth_token)

$ curl --silent --insecure -X PUT -H "accept: application/toml" -H "Authorization: Bearer $AUTHTOKEN" --upload-file 'mke-config.toml' https://$MKE_HOST/api/ucp/config-toml
{"message":"Calico datastore migration from etcd to kdd successful"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs-A Critical
Projects
None yet
Development

No branches or pull requests

3 participants