Skip to content

(bug) skip stale cluster entries during migration#480

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:migrate-missing-namespace
Jun 23, 2026
Merged

(bug) skip stale cluster entries during migration#480
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:migrate-missing-namespace

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

When upgrading to v1.11.1, the migration init container reads deprecated ClusterInfo entries from each Classifier and updates the corresponding ClassifierReport objects. If a cluster was deleted before the upgrade, its namespace may no longer exist. Attempting to create a ClassifierReport in a missing namespace causes the init container to fail and crash-loop blocking the upgrade entirely.

migrateOneClassifier now checks whether the cluster namespace still exists. Entries whose namespace is gone are logged at debug level and skipped. The deprecated ClusterInfo and MachingClusterStatuses arrays are still cleared at the end, so the migration does not need to be retried for that classifier. All other entries are migrated normally.

When upgrading to v1.11.1, the migration init container reads deprecated ClusterInfo entries
from each Classifier and updates the corresponding ClassifierReport objects. If a cluster was
deleted before the upgrade, its namespace may no longer exist. Attempting to create a
ClassifierReport in a missing namespace causes the init container to fail and crash-loop
blocking the upgrade entirely.

migrateOneClassifier now checks whether the cluster namespace still exists.
Entries whose namespace is gone are logged at debug level and skipped.
The deprecated ClusterInfo and MachingClusterStatuses arrays are still cleared at the
end, so the migration does not need to be retried for that classifier. All other entries are
migrated normally.
@gianlucam76 gianlucam76 merged commit 3958a42 into projectsveltos:main Jun 23, 2026
7 checks passed
@gianlucam76 gianlucam76 deleted the migrate-missing-namespace branch June 23, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant