Comments (7)
Exploring the node plugin.
The NodeStage volume method is called by kublet.
Need to analyse why it is not passing wwn id.
from ibm-powervs-block-csi-driver.
/assign
from ibm-powervs-block-csi-driver.
WWN Key value is empty in req.PublishContext:
I1207 05:04:52.856589 1 node.go:90] NodeStageVolume: called with args {VolumeId:f22eba03-4b9f-4dd2-9d37-d57aa563c39f PublishContext:map[wwn:] StagingTargetPath:/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-9ca714b7-50d5-483c-8685-e9063fca28ac/globalmount VolumeCapability:mount:<fs_type:"xfs" > access_mode:<mode:SINGLE_NODE_WRITER > Secrets:map[] VolumeContext:map[storage.kubernetes.io/csiProvisionerIdentity:1638852069180-8081-powervs.csi.ibm.com] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0}
I1207 05:04:52.856697 1 node.go:134] NodeStageVolume: wwnkey: wwn, req.PublishContext: map[wwn:]
from ibm-powervs-block-csi-driver.
Volume details from IBM Cloud returning empty string for wwn sometimes and taking time to return the actual wwn.
Adding a temporary wait loop in controllerPublishVolume solves the issue.
for i:=0;i<10;i++{
disk, err := d.cloud.GetDiskByID(volumeID)
klog.V(5).Infof("ControllerPublishVolume: disk details/%s : %+v", volumeID, disk)
if err != nil {
if err == cloud.ErrNotFound {
return nil, status.Error(codes.NotFound, "Volume not found")
}
return nil, status.Errorf(codes.Internal, "Could not get volume with ID %q: %v", volumeID, err)
}
if disk.WWN == ""{
klog.V(5).Infof("ControllerPublishVolume: WWN is empty SLEEP 5s")
time.Sleep(5 * time.Second)
}else{
break
}
}
disk, err := d.cloud.GetDiskByID(volumeID)
klog.V(5).Infof("ControllerPublishVolume: disk details/%s : %+v", volumeID, disk)
Need to add a standard wait loop utility method and use it in controller.
from ibm-powervs-block-csi-driver.
Need to add a standard wait loop utility method and use it in controller.
There is a standard wait function present in the k8s here - https://github.com/kubernetes/apimachinery/blob/5f072755815add51938b52f806c555ed8c86a1ce/pkg/util/wait/wait.go#L511, my fav one is PollImmediate
, you can use one of them.
from ibm-powervs-block-csi-driver.
and also we need to understand when this happening and see if we can create an issue with PowerVS team for this one.
from ibm-powervs-block-csi-driver.
Wait loop for disk creation is currently not implemented in the cloud library.
The following justifies: #38
from ibm-powervs-block-csi-driver.
Related Issues (20)
- Remove the usage of io/ioutil package HOT 1
- Undiagnosed panic detected in pod failure
- controller pod restarts many times HOT 1
- too many cloud api calls in node-update-controller HOT 6
- Add e2e tests HOT 4
- create a prow job for release-0.3 and release-0.4 branches HOT 5
- Unable to upgrade k8s.io/kubernetes v1.27.3
- Allow setting webhook server port for controller manager HOT 2
- Add govulncheck target in Makefile
- Prow job to publish unit test coverage HOT 4
- Cannot find enough information on device delete failures in node plugin
- Add documentation for firewall requirements HOT 6
- Bump k8s.io/klog/v2 from 2.100.1 to 2.110.1 fails
- Ability to run the driver on PowerVS staging environment
- Manually bump otelgrpc from 0.45.0 to 0.46.0 HOT 2
- snyk: code issue: Path Traversal
- Support tier0 and tier5k as storage type HOT 2
- Error running IT: too many colons in address HOT 2
- Upgrade go version 1.22 HOT 4
- Liveness-probe reports ImagePullBackOff when deployed using overlays/stable/?ref=main
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibm-powervs-block-csi-driver.