Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Workload cluster creation failure due to missing Azure Tenant ID #4337

Open
devozs opened this issue Feb 7, 2023 · 2 comments
Open

Workload cluster creation failure due to missing Azure Tenant ID #4337

devozs opened this issue Feb 7, 2023 · 2 comments
Assignees
Labels
area/cc ClusterClass related area/lcm Related to Cluster Lifecycle management

Comments

@devozs
Copy link

devozs commented Feb 7, 2023

Bug description
I am creating management and workload clusters on Azure.
Management cluster created successfully (meaning the Azure tenant, client and secret are ok).
Configuring a Workload Cluster With an Object Spec File is failing due to missing Azure Tenant ID

Expected behavior
Generated valid Object Spec yaml including Azure Tenant ID (as it was populated in legacy Configuration File)

Steps to reproduce the bug / Relevant debug output

  • Create management cluster on Azure (using valid Azure tenant, client and secret)
  • Using Configuration File as described in Azure template
  • populating the property AZURE_TENANT_ID
  • Running tanzu cluster create my-cluster --file my-cluster-config.yaml --dry-run > my-cluster-spec.yaml with legacy Configuration File yaml
  • Running tanzu cluster create --file with the generated Object Spec File yaml
    Getting the following message
    Error: workload cluster configuration validation failed: Azure config validation failed: failed to initialize Azure client: failed to get Azure Tenant ID

As a workaround running tanzu config set features.cluster.auto-apply-generated-clusterclass-based-configuration true
And running the same above legacy Configuration File and the deployment is working fine.

It seems like the generated Object Spec File is missing Azure Tenant ID property although it was populated in the legacy Configuration File.

Output of tanzu version
version: v0.28.0
buildDate: 2023-01-20
sha: 3c34115-dirty

Environment where the bug was observed (cloud, OS, etc)
I am usign Ubuntu 22.04.1 LTS
and deploying into Azure

@vuil vuil transferred this issue from vmware-tanzu/tanzu-cli Feb 7, 2023
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Hey @devozs! Thanks for opening your first issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on Tanzu Framework.

@vuil
Copy link
Contributor

vuil commented Feb 7, 2023

Thanks @devozs. Issues pertaining to the CLI for version v0.28.0 is still being tracked in this repository.

@vuil vuil added area/lcm Related to Cluster Lifecycle management area/cc ClusterClass related labels Feb 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/cc ClusterClass related area/lcm Related to Cluster Lifecycle management
Projects
None yet
Development

No branches or pull requests

3 participants