-
Notifications
You must be signed in to change notification settings - Fork 562
Bug 1826443: Pod Config Deployment Hash Error #1472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1685,7 +1685,11 @@ func (a *Operator) updateInstallStatus(csv *v1alpha1.ClusterServiceVersion, inst | |
} | ||
|
||
if strategyErr != nil { | ||
csv.SetPhaseWithEventIfChanged(requeuePhase, requeueConditionReason, fmt.Sprintf("installing: %s", strategyErr), now, a.recorder) | ||
if install.ReasonForError(strategyErr) == install.StrategyErrDeploymentUpdated { | ||
csv.SetPhaseWithEventIfChanged(v1alpha1.CSVPhaseInstallReady, requeueConditionReason, fmt.Sprintf("installing: %s", strategyErr), now, a.recorder) | ||
} else { | ||
csv.SetPhaseWithEventIfChanged(requeuePhase, requeueConditionReason, fmt.Sprintf("installing: %s", strategyErr), now, a.recorder) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the reason There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is somewhat weird given the function signature - you would expect the requeue phase to be used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Discussed offline - this whole state management should probably be refactored to make this behavior clearer, but doing so here would make it difficult to backport. |
||
} | ||
if err := a.csvQueueSet.Requeue(csv.GetNamespace(), csv.GetName()); err != nil { | ||
a.logger.Warn(err.Error()) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,14 @@ import ( | |
"k8s.io/apimachinery/pkg/util/wait" | ||
"k8s.io/client-go/discovery" | ||
|
||
"github.com/operator-framework/api/pkg/lib/version" | ||
"github.com/operator-framework/api/pkg/operators/v1alpha1" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/api/client/clientset/versioned" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/install" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/resolver" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/comparison" | ||
"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/operatorclient" | ||
"github.com/operator-framework/api/pkg/lib/version" | ||
"github.com/operator-framework/operator-lifecycle-manager/test/e2e/ctx" | ||
) | ||
|
||
|
@@ -1212,10 +1212,6 @@ var _ = Describe("Subscription", func() { | |
require.NotNil(GinkgoT(), subscription) | ||
|
||
csv, err := fetchCSV(GinkgoT(), crClient, subscription.Status.CurrentCSV, testNamespace, buildCSVConditionChecker(v1alpha1.CSVPhaseSucceeded)) | ||
if err != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 |
||
// TODO: If OLM doesn't have the subscription in its cache when it initially creates the deployment, the CSV will hang on "Installing" until it reaches the five-minute timeout, then succeed on a retry. It should be possible to skip the wait and retry immediately, but in the meantime, giving this test a little extra patience should mitigate flakes. | ||
csv, err = fetchCSV(GinkgoT(), crClient, subscription.Status.CurrentCSV, testNamespace, buildCSVConditionChecker(v1alpha1.CSVPhaseSucceeded)) | ||
} | ||
require.NoError(GinkgoT(), err) | ||
|
||
proxyEnv := proxyEnvVarFunc(GinkgoT(), config) | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking "out loud" here: it might be nice to (later!) use some of the newer error wrapping features from the standard library in place of the {Reason, Message} that exists today.