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

rbd: add check to getVolumeReplicationInfo #5078

Merged
merged 1 commit into from
Jan 14, 2025
Merged

rbd: add check to getVolumeReplicationInfo #5078

merged 1 commit into from
Jan 14, 2025

Conversation

yati1998
Copy link
Contributor

this commit adds a check to getVolumeReplicationInfo to include status not found error while getting the remote status.
This helps the failover to be done even if remote site status is not found

@yati1998 yati1998 requested review from Madhu-1 and nixpanic January 14, 2025 13:12
@mergify mergify bot added the component/rbd Issues related to RBD label Jan 14, 2025
Madhu-1
Madhu-1 previously approved these changes Jan 14, 2025
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jan 14, 2025

@yati1998 please fix the ci problem

this commit adds a check to getVolumeReplicationInfo
to include status not found error while getting the
remote status.
This helps the failover to be done even if remote site status
is not found

Signed-off-by: yati1998 <[email protected]>
@mergify mergify bot dismissed Madhu-1’s stale review January 14, 2025 14:53

Pull request has been modified.

@yati1998 yati1998 requested a review from Madhu-1 January 14, 2025 14:54
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Jan 14, 2025

@nixpanic PTAL

@Madhu-1 Madhu-1 added the backport-to-release-v3.13 Label to backport from devel to release-v3.13 branch label Jan 14, 2025
@@ -876,6 +876,10 @@ func (rs *ReplicationServer) GetVolumeReplicationInfo(ctx context.Context,
if err != nil {
log.ErrorLog(ctx, err.Error())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this line be moved after the new check like in GetGlobalMirroringStatus() or getLastSyncInfo() cases?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this isn't too nice, but the logging of errors in this function is already very inconsistent... It should be cleaned up, but that can be done in an other PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in #5079

@@ -876,6 +876,10 @@ func (rs *ReplicationServer) GetVolumeReplicationInfo(ctx context.Context,
if err != nil {
log.ErrorLog(ctx, err.Error())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this isn't too nice, but the logging of errors in this function is already very inconsistent... It should be cleaned up, but that can be done in an other PR.

@nixpanic
Copy link
Member

@Mergifyio rebase

Copy link
Contributor

mergify bot commented Jan 14, 2025

rebase

☑️ Nothing to do

  • any of:
    • #commits > 1 [📌 rebase requirement]
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]

@nixpanic
Copy link
Member

@Mergifyio queue

Copy link
Contributor

mergify bot commented Jan 14, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 4101b63

@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Jan 14, 2025
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Jan 14, 2025
@mergify mergify bot merged commit 4101b63 into devel Jan 14, 2025
39 of 40 checks passed
@mergify mergify bot deleted the mirrorstatus branch January 14, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-release-v3.13 Label to backport from devel to release-v3.13 branch component/rbd Issues related to RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants