rancher / rancher

Complete container management platform
http://rancher.com
Apache License 2.0
23.22k stars 2.94k forks source link

Fleet does not deploy to K8S cluster (non-harvester) imported from Virtualization Management page #35049

Open slickwarren opened 2 years ago

slickwarren commented 2 years ago

Rancher Server Setup

Information about the Cluster

StrongMonkey commented 2 years ago

This is caused by back-population from clusters.provisioning.cattle.io(v1 cluster) to clusters.management.cattle.io(v3 cluster). Any label that is from v1 cluster will be copied to v3 cluster. The cluster is treated as a harvester cluster because of label override. This is what happened:

  1. User creates an imported cluster(v1 cluster) from virtualization management. UI adds provider.cattle.io=harvester label to v1 cluster.
  2. For back-compatility issues(ember UI) rancher will create v3 cluster from v1 cluster. Once imported process is finished, it will set status.provider and provider labels(rke/k3s/rke2). The provider detection logic only exists in v3 cluster.
  3. Controller resync v1 cluster to v3 cluster, overriding label provider.cattle.io to harvester.

To fix this we need to stop step 3, and figuring out a way to back-populate the correct provider label from v3 cluster to v1 cluster.

After discussion with @yasker we can releate-note this in 2.6.1 and push it back to v2.6.2.

yasker commented 2 years ago

Release note for v2.6.1:

CC @btat

SheilaghM commented 2 years ago

@yasker - Does the Harvester team plan to support Harvester Cluster for the Continuous Delivery page in UI in the near future?

kkaempf commented 1 year ago

Removing team/fleet as this is a provisioning / Harvester issue