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

HMC Installation Fails on Provisioned Cluster Due to Missing Sveltos Resources and CRDs #847

Open
bnallapeta opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bnallapeta
Copy link
Member

Describe the bug
When attempting to install HMC on a provisioned cluster, the hmc-controller throws an error due to missing Sveltos CRDs and resources in the projectsveltos namespace. This occurs because the HMC event handler is started before the Management object is created and Sveltos is fully installed. The error message observed is:

2024-12-27T13:12:03Z ERROR controller-runtime.source.EventHandler if kind is a CRD, it should be installed before calling Start {"kind": "ClusterSummary.config.projectsveltos.io", "error": "no matches for kind \"ClusterSummary\" in version \"config.projectsveltos.io/v1beta1\""}

This behavior is expected given the current order of operations but leads to a conflict during installation.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Kind cluster.
  2. Deploy HMC on the Kind cluster.
  3. Deploy a ManagedCluster resource, which provisions a new cluster.
  4. Attempt to deploy HMC on the provisioned cluster.

Expected behavior
HMC installation on the provisioned cluster should ensure that Sveltos CRDs and resources are installed before starting the event handler. The process should not result in a conflict or error, and the installation should proceed seamlessly.

Additional context
This issue was possibly introduced in PR #550

@bnallapeta bnallapeta added the bug Something isn't working label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant