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
There are several situations where a user may create a secret or some other resource and tell us to use that (i.e. as an image pull secret). However, if that secret was specified in the CR, but not actually created in the cluster, the operator will log an error when it tries to reconcile (adding controller reference and/or backup labels). In that case the error will look something like this:
{"level":"error","ts":1645495683.0733871,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"manageiq-controller","request":"manageiq/manageiq",
"error":"an empty namespace may not be set during creation",
"stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error ..."}
This happens because a stub object is passed to createOrUpdate and since the object is missing and can't be updated, it tries to create it, but doesn't have enough details filled in. We shouldn't attempt to create the object because we usually can't know the content (pull secrets).
Possible solutions:
Stick with createOrUpdate, rescue this error and re-raise a more specific error including the object type and name
Switch to update (may need to update libraries?)
May complicate the code for cases where we create default objects
We may still have to rescue some error message and re-raise it with more details
This issue has been automatically marked as stale because it has not been updated for at least 3 months.
If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.
There are several situations where a user may create a secret or some other resource and tell us to use that (i.e. as an image pull secret). However, if that secret was specified in the CR, but not actually created in the cluster, the operator will log an error when it tries to reconcile (adding controller reference and/or backup labels). In that case the error will look something like this:
This happens because a stub object is passed to
createOrUpdate
and since the object is missing and can't be updated, it tries to create it, but doesn't have enough details filled in. We shouldn't attempt to create the object because we usually can't know the content (pull secrets).Possible solutions:
createOrUpdate
, rescue this error and re-raise a more specific error including the object type and nameupdate
(may need to update libraries?)@miq-bot add-label enhancement
The text was updated successfully, but these errors were encountered: