Skip to content

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

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

Closed
m1kola opened this issue Nov 10, 2023 · 1 comment · Fixed by #537
Assignees
Labels
kind/flake Categorizes issue or PR as related to a flaky test.

Comments

@m1kola
Copy link
Member

m1kola commented Nov 10, 2023

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")
var err error
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
@m1kola m1kola added the kind/flake Categorizes issue or PR as related to a flaky test. label Nov 10, 2023
@m1kola
Copy link
Member Author

m1kola commented Nov 10, 2023

I think I either introduced it in #534 or - more likely - I unmasked it this PR: #534 addresses #512 which was in exact same area of code.

I'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/flake Categorizes issue or PR as related to a flaky test.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant