-
Couldn't load subscription status.
- Fork 580
rbd: add check before calling Destroy #5446
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
Conversation
|
@Rakshith-R @nixpanic i had to push one more commit to refactor other part of code in this function to fix CI problem. PTAL |
Pull request has been modified.
01c95d7 to
238dfa1
Compare
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
|
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
|
/test ci/centos/k8s-e2e-external-storage/1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/mini-e2e-helm/k8s-1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.32 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/mini-e2e/k8s-1.33 |
|
/test ci/centos/upgrade-tests-cephfs |
🛑 The pull request has been removed from the queue
|
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
@Mergifyio dequeue |
|
This pull request has been removed from the queue for the following reason: Pull request #5446 has been dequeued by a You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. |
✅ The pull request has been removed from the queue
|
|
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at e0ecbea |
|
@Mergifyio rebase |
☑️ Nothing to do, the required conditions are not met
|
|
/retest ci/centos/mini-e2e/k8s-1.31 |
|
/test ci/centos/k8s-e2e-external-storage/1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.31 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/mini-e2e-helm/k8s-1.33 |
|
/test ci/centos/mini-e2e-helm/k8s-1.31 |
|
/test ci/centos/mini-e2e/k8s-1.33 |
|
/test ci/centos/k8s-e2e-external-storage/1.32 |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e/k8s-1.31 |
|
/test ci/centos/mini-e2e-helm/k8s-1.32 |
|
/test ci/centos/mini-e2e/k8s-1.32 |
It seems possible that the .Destroy() function is called on a nil pointer. This would cause a panic in the node-plugin.
Depending on how far GenVolFromVolID() comes, the returned rbdVolume can be connected. If an error occurs, the
rbdVolume should not be connected at all, so call the .Destroy() function in those cases too.
small part of #4564 taken to fix the exact problem for now.
Fixes: #4562