Skip to content
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

volsync unit test VolSync_Handler Reconcile ReplicationSource intermittent failure #1812

Open
raghavendra-talur opened this issue Feb 6, 2025 · 1 comment · May be fixed by #1837
Open
Assignees
Labels
test Testing related issue

Comments

@raghavendra-talur
Copy link
Member

• [FAILED] [0.010 seconds]
VolSync_Handler Reconcile ReplicationSource When reconciling RSSpec When the psk secret for volsync exists (will be pushed down by drpc from hub When no running pod is mounting the PVC to be protected [It] Should return a replication source and a RS should be created
/home/runner/work/ramen/ramen/internal/controller/volsync/vshandler_test.go:689

  Timeline >>
  2025-02-05T17:41:21.213Z	INFO	Reconciling RS	{"rsSpec": {"protectedPVC":{"namespace":"vh-5jmvz","name":"mytestpvc","protectedByVolSync":true,"storageID":{"id":""},"replicationID":{"id":""},"storageClassName":"test.storageclass","accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"3Gi"}}}}, "runFinalSync": false}
  2025-02-05T17:41:21.213Z	INFO	Secret exists	{"secretName": "dummycm-owner-fxfxm-vs-secret"}
  2025-02-05T17:41:21.215Z	INFO	ownerRef added to object	{"obj": "Secret/dummycm-owner-fxfxm-vs-secret"}
  2025-02-05T17:41:21.215Z	DEBUG	VolSync secret validated	{"secret name": "dummycm-owner-fxfxm-vs-secret"}
  2025-02-05T17:41:21.215Z	INFO	Fetching VolumeSnapshotClass	{"labelSelector": {}}
  2025-02-05T17:41:21.215Z	INFO	ReplicationSource not found, proceeding with setup
  2025-02-05T17:41:21.217Z	DEBUG	ReplicationSource createOrUpdate Complete	{"rsSpec": {"protectedPVC":{"namespace":"vh-5jmvz","name":"mytestpvc","protectedByVolSync":true,"storageID":{"id":""},"replicationID":{"id":""},"storageClassName":"test.storageclass","accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"3Gi"}}}}, "runFinalSync": false, "op": "created"}
  2025-02-05T17:41:21.217Z	DEBUG	ReplicationSource Reconcile Complete	{"rsSpec": {"protectedPVC":{"namespace":"vh-5jmvz","name":"mytestpvc","protectedByVolSync":true,"storageID":{"id":""},"replicationID":{"id":""},"storageClassName":"test.storageclass","accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"3Gi"}}}}, "runFinalSync": false}
  [FAILED] in [It] - /home/runner/work/ramen/ramen/internal/controller/volsync/vshandler_test.go:701 @ 02/05/25 17:41:21.217
  << Timeline

  [FAILED] Failed after 0.000s.
  Expected
      <*errors.StatusError | 0xc000e8c320>: 
      ReplicationSource.volsync.backube "mytestpvc" not found
      {
          ErrStatus: {
              TypeMeta: {Kind: "", APIVersion: ""},
              ListMeta: {
                  SelfLink: "",
                  ResourceVersion: "",
                  Continue: "",
                  RemainingItemCount: nil,
              },
              Status: "Failure",
              Message: "ReplicationSource.volsync.backube \"mytestpvc\" not found",
              Reason: "NotFound",
              Details: {
                  Name: "mytestpvc",
                  Group: "volsync.backube",
                  Kind: "ReplicationSource",
                  UID: "",
                  Causes: nil,
                  RetryAfterSeconds: 0,
              },
              Code: 404,
          },
      }
  to be nil
  In [It] at: /home/runner/work/ramen/ramen/internal/controller/volsync/vshandler_test.go:701 @ 02/05/25 17:41:21.217
------------------------------
••••••••••••••••••••••••••••••••••••••••••••W0205 17:41:31.[80](https://github.com/RamenDR/ramen/actions/runs/13154707691/job/36737147860?pr=1805#step:4:81)3908   14603 reflector.go:484] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: watch of *v1.Namespace ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W0205 17:41:31.803909   14603 reflector.go:484] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: watch of *v1.PlacementRule ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
W0205 17:41:31.803950   14603 reflector.go:484] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: watch of *v1.Policy ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding


Summarizing 1 Failure:
  [FAIL] VolSync_Handler Reconcile ReplicationSource When reconciling RSSpec When the psk secret for volsync exists (will be pushed down by drpc from hub When no running pod is mounting the PVC to be protected [It] Should return a replication source and a RS should be created
  /home/runner/work/ramen/ramen/internal/controller/volsync/vshandler_test.go:701
@raghavendra-talur
Copy link
Member Author

@BenamarMk Please take a look.

@nirs nirs added bug Something isn't working test Testing related issue and removed bug Something isn't working labels Feb 6, 2025
@pruthvitd pruthvitd linked a pull request Feb 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testing related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants