Skip to content

Commit 63fc86a

Browse files
committed
Better messaging for missing volume components on host to perform mount
1 parent 3f05350 commit 63fc86a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/volume/cinder/cinder.go

+7
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,13 @@ func (b *cinderVolumeMounter) GetAttributes() volume.Attributes {
281281
}
282282
}
283283

284+
// Checks prior to mount operations to verify that the required components (binaries, etc.)
285+
// to mount the volume are available on the underlying node.
286+
// If not, it returns an error
287+
func (b *cinderVolumeMounter) CanMount() error {
288+
return nil
289+
}
290+
284291
func (b *cinderVolumeMounter) SetUp(fsGroup *int64) error {
285292
return b.SetUpAt(b.GetPath(), fsGroup)
286293
}

0 commit comments

Comments
 (0)