mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 03:03:40 +00:00
Checking Cinder disk when tickers are delivered
Cinder's WaitForAttach() runs probeAttachedVolume() 2 times per second, that triggers SCSI rescan and generates many udev "change" events.
This commit is contained in:
@@ -240,7 +240,6 @@ func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath
|
|||||||
defer timer.Stop()
|
defer timer.Stop()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
probeAttachedVolume()
|
|
||||||
select {
|
select {
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
glog.V(5).Infof("Checking Cinder disk %q is attached.", volumeID)
|
glog.V(5).Infof("Checking Cinder disk %q is attached.", volumeID)
|
||||||
|
Reference in New Issue
Block a user