You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
itemLogger.Error(err, "failed to apply changes to instance")
(for example the Kubernetes API server is temporarily unreachable), an error is printed to the log, and the status.version field of the instance is updated in the reconcile loop here:
return ctrl.Result{}, fmt.Errorf("failed to apply status changes to the OpenTelemetry CR: %w", err)
}
to the latest version regardless (note, the spec is not updated, only the status subresource). Therefore, any future re-starts of the operator also won't attempt to upgrade this instance.
Related, if the collector instance is moved from unmanaged to managed state, the upgrade process also doesn't run.
Expected Result
The upgrade is re-tried.
Actual Result
The status.version field of the instance is updated as part of the reconcile loop, however the spec field didn't get upgraded.
Possible Solutions
Perform the upgrade process in the reconcile loop instead of the operator startup. This resolves the issue of re-trying failed upgrades, and also upgrading instances when they are moved from unmanaged to managed state.
Kubernetes Version
1.31.0
Operator version
0.113.0
Collector version
0.113.0
Environment information
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component(s)
collector
What happened?
Description
The operator does not re-try failed upgrades of managed instances. In case an upgrade fails here:
opentelemetry-operator/pkg/collector/upgrade/upgrade.go
Line 86 in 42a689e
status.version
field of the instance is updated in the reconcile loop here:opentelemetry-operator/internal/status/collector/handle.go
Lines 55 to 69 in 42a689e
spec
is not updated, only thestatus
subresource). Therefore, any future re-starts of the operator also won't attempt to upgrade this instance.Related, if the collector instance is moved from
unmanaged
tomanaged
state, the upgrade process also doesn't run.Expected Result
The upgrade is re-tried.
Actual Result
The
status.version
field of the instance is updated as part of the reconcile loop, however thespec
field didn't get upgraded.Possible Solutions
Perform the upgrade process in the reconcile loop instead of the operator startup. This resolves the issue of re-trying failed upgrades, and also upgrading instances when they are moved from
unmanaged
tomanaged
state.Kubernetes Version
1.31.0
Operator version
0.113.0
Collector version
0.113.0
Environment information
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: