diff --git a/service/node.go b/service/node.go index 9eaeb1f8..93a599e2 100644 --- a/service/node.go +++ b/service/node.go @@ -1076,6 +1076,7 @@ func (s *service) NodeGetInfo( } else { // As per the csi spec the plugin MUST NOT set negative values to // 'MaxVolumesPerNode' in the NodeGetInfoResponse response + log.Infof("Node label 'max-powermax-volumes-per-node' is not available. Retrieving the value from yaml file") if s.opts.IsVsphereEnabled { if s.opts.MaxVolumesPerNode <= 0 || s.opts.MaxVolumesPerNode > 60 { log.Errorf("maxPowerMaxVolumesPerNode MUST NOT be greater than 60 or set to any negative value for RDM volumes. Setting to default value 60") @@ -1088,7 +1089,6 @@ func (s *service) NodeGetInfo( } } maxPowerMaxVolumesPerNode = s.opts.MaxVolumesPerNode - log.Infof("Node label 'max-powermax-volumes-per-node' is not available. Using value specified in value.yaml : '%v'", maxPowerMaxVolumesPerNode) } return &csi.NodeGetInfoResponse{ NodeId: s.opts.NodeName,