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: can exit early if image-meta.json does not exist #3788

Merged
merged 1 commit into from
May 2, 2023

Conversation

microyahoo
Copy link
Contributor

Describe what this PR does

Provide some context for the reviewer

Is there anything that requires special attention

Do you have any questions?

Is the change backward compatible?

Are there concerns around backward compatibility?

Provide any external context for the change, if any.

For example:

  • Kubernetes links that explain why the change is required
  • CSI spec related changes/catch-up that necessitates this patch
  • golang related practices that necessitates this change

Related issues

Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.

Fixes: #issue_number

Future concerns

List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.


Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)
  • /retest all: run this in case the CentOS CI failed to start/report any test
    progress or results

@microyahoo microyahoo changed the title nit: can exit early if imgae_meta.json does not exist nit: can exit early if image-meta.json does not exist Apr 28, 2023
@Madhu-1
Copy link
Collaborator

Madhu-1 commented Apr 28, 2023

@microyahoo microyahoo changed the title nit: can exit early if image-meta.json does not exist rbd: can exit early if image-meta.json does not exist Apr 29, 2023
@mergify mergify bot added the component/rbd Issues related to RBD label Apr 29, 2023
@@ -1127,6 +1127,8 @@ func (ns *NodeServer) NodeExpandVolume(
imgInfo, err := lookupRBDImageMetadataStash(volumePath)
if err != nil {
log.ErrorLog(ctx, "failed to find image metadata: %v", err)

return nil, status.Error(codes.Internal, 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.

It would be nice to have a little more context around err.Error(). If the error gets returned (and logged somewhere), having details about the failure can be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lookupRBDImageMetadataStash has recorded detailed error context and log will print it.

@nixpanic nixpanic requested a review from a team May 1, 2023 12:47
@Madhu-1 Madhu-1 added the ok-to-test Label to trigger E2E tests label May 2, 2023
@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

/test ci/centos/upgrade-tests-cephfs

@github-actions
Copy link

github-actions bot commented May 2, 2023

/test ci/centos/upgrade-tests-rbd

@github-actions github-actions bot removed the ok-to-test Label to trigger E2E tests label May 2, 2023
@nixpanic
Copy link
Member

nixpanic commented May 2, 2023

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented May 2, 2023

rebase

✅ Branch has been successfully rebased

@nixpanic nixpanic added the ok-to-test Label to trigger E2E tests label May 2, 2023
@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

@github-actions
Copy link

github-actions bot commented May 2, 2023

/test ci/centos/upgrade-tests-cephfs

@github-actions
Copy link

github-actions bot commented May 2, 2023

/test ci/centos/upgrade-tests-rbd

@github-actions github-actions bot removed the ok-to-test Label to trigger E2E tests label May 2, 2023
@mergify mergify bot merged commit 5a07912 into ceph:devel May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants