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

Error: edition not found #717

Open
spyroot opened this issue Mar 27, 2024 · 5 comments
Open

Error: edition not found #717

spyroot opened this issue Mar 27, 2024 · 5 comments
Labels
kind/bug PR/issue related to a bug needs-triage

Comments

@spyroot
Copy link

spyroot commented Mar 27, 2024

Hi Folks,

It doesn't matter what you do; the tool always reports an error that the edition has not been found.

tanzu management-cluster create
Error: edition not found

it is not clear where that key should be in config-ng.yaml ( by default generated) or config.yaml (generated)

in all cases, I tried to add key edition: tag in different spots in the same story.

Docs said it should be set to tkg by default.

tanzu config set edition tkg
[x] : unable to parse config path parameter into parts [edition]  (was expecting 'features.<plugin>.<feature>' or 'env.<env_variable>')
tanzu config set cli.edition tkg
[x] : unsupported config path parameter [cli] (was expecting 'features.<plugin>.<feature>' or 'env.<env_variable>')

The only one it takes env.edition tkg

But none of these options run.
Note I did not indicate the rest --ui, etc. since the error was thrown before, so I suspect it parsed that read config.yaml before the rest of the args.

tanzu version
version: v1.2.0
buildDate: 2024-02-07
sha: f3abe62e
arch: amd64

Trie don mac same story

@spyroot spyroot added kind/bug PR/issue related to a bug needs-triage labels Mar 27, 2024
@marckhouzam
Copy link
Contributor

Hi @spyroot and sorry about the issue you are facing.

CLI version v1.2.0 is not supported with TKG. You need to revert to using v1.1.0

@marckhouzam
Copy link
Contributor

You can confirm what is compatible here: https://interopmatrix.vmware.com/Interoperability?col=1772,&row=0,

@spyroot
Copy link
Author

spyroot commented Mar 27, 2024

Yes, but why does it expect a key edition in the first place? In essence, if you download from the latest from VMware, the first command in docs says tanzu create mc -ui but it will fail with the default config.yaml tool generated itself.
If it does not support that, that is okay, but then it should include a key in the configuration.yaml it expects

In essence what edition supported as key value and how it should look like ?
Because I check unit test it doesn't look like it same format.

@marckhouzam
Copy link
Contributor

The CLI itself no longer writes the edition in the config file but when your run tanzu mc you are running the management-cluster plugin from TKG which has not been updated to no longer look for the edition.

If you want to see what the edition entry should look like in the config you can run an older CLI once (e.g., simply tanzu.1.1.0 version) and it will automatically add the key.

@MAHDTech
Copy link

MAHDTech commented Apr 2, 2024

Thanks for this, hit the same issue 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug PR/issue related to a bug needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants