Closed kinarashah closed 1 day ago
We got bitten by this during the upgrade of downstream cluster (rancher 2.9.2, rke2 1.28.13) - the issue is that it creates a new entry, with a different hash (in our case), and this then causes the upgrade to stall as it then complains that the psact secret ‘doesn’t contain the expected contents’ - the fix is to remove the duplicate block from the cluster object / ensure the new hash matches the existing entries. The moment you do this, the error goes away and the upgrade progresses
@nicgrobler This was using terraform as well, correct? I wanted to verify as my fix is scoped to terraform. If you see multiple entries being added via API/UI lmk as that'd be a different issue.
Verified on Rancher v2.10.0
with Rancher2 v6.0.0-rc3
:
Scenario | Test Result | Result |
---|---|---|
1. | Provision downstream RKE2 AWS Node driver cluster => edit cluster and force reconciliation => confirm no duplicate entries are seen in machineSelectorFiles.fileSources |
✅ |
Scenario 1 - ✅
active
, modify snapshot_retention
and apply changesactive
, edit YAML
of cluster object and verify machineSeletorFiles.fileSources
machineSelectorFiles.fileSources
after cluster update; as expected
Rancher Server Setup
Information about the Cluster
Provider Information
8356b631d76f5fd69276906c405233571beb6bdc
Describe the bug
dynamic
field using terraform provider should be consistent with Rancher API.dynamic
is false when editing cluster object using API/UI but set totrue
using terraform.fileSources
are added to the cluster object undermachineSelectorFiles
. Only one entry is expected for the same secret and hash value.To Reproduce
default_pod_security_admission_configuration_template_name
. I set it to "rancher-restricted".snapshot_retention
or any other cluster field to trigger cluster reconciliation.fileSource
gets added to the cluster object with duplicate values on every cluster update.Expected Result
Only one unique
fileSource
is added to themachineSelectorFiles
on cluster edits if the secret or the hash value doesn't change.SURE-9071