Skip to content

E2E flake - object is being deleted: catalogs.catalogd.operatorframework.io "test-catalog" already exists #536

Description

@m1kola

I think this happens because we delete the test catalog here:

Expect(c.Delete(ctx, operatorCatalog)).To(Succeed())

And then without waiting we re-create the catalog with the same name here:

By("creating an Operator catalog with the desired package")
varerrerror
operatorCatalog, err=createTestCatalog(ctx, testCatalogName, os.Getenv(testCatalogRefEnvVar))


Example is here:

 [FAILED] Unexpected error:
<*errors.StatusError | 0xc00032fc20>: object is being deleted: catalogs.catalogd.operatorframework.io "test-catalog" already exists
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {
SelfLink: "",
ResourceVersion: "",
Continue: "",
RemainingItemCount: nil,
},
Status: "Failure",
Message: "object is being deleted: catalogs.catalogd.operatorframework.io \"test-catalog\" already exists",
Reason: "AlreadyExists",
Details: {
Name: "test-catalog",
Group: "catalogd.operatorframework.io",
Kind: "catalogs",
UID: "",
Causes: nil,
RetryAfterSeconds: 0,
},
Code: 409,
},
}
occurred
In [It] at: /home/runner/work/operator-controller/operator-controller/test/e2e/install_test.go:176 @ 11/10/23 15:56:52.44

Metadata

Metadata

Assignees

Labels

kind/flakeCategorizes issue or PR as related to a flaky test.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions