Skip to content

Commit

Permalink
Fix ONTAP SAN economy driver's unexpected file system expansion faile…
Browse files Browse the repository at this point in the history
…d message

Made mount propagation bi-directional for kubelet dir/plugins directory so that we pick up the correct filesystem size of the newly expanded volume and not the entire pod/ VM
  • Loading branch information
nazneeninc authored Aug 3, 2021
1 parent 6186bee commit 16e84e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/k8s_client/yaml_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ spec:
mountPath: /plugin
- name: plugins-mount-dir
mountPath: {KUBELET_DIR}/plugins
mountPropagation: "Bidirectional"
- name: pods-mount-dir
mountPath: {KUBELET_DIR}/pods
mountPropagation: "Bidirectional"
Expand Down Expand Up @@ -958,6 +959,7 @@ spec:
mountPath: /plugin
- name: plugins-mount-dir
mountPath: {KUBELET_DIR}/plugins
mountPropagation: "Bidirectional"
- name: pods-mount-dir
mountPath: {KUBELET_DIR}/pods
mountPropagation: "Bidirectional"
Expand Down
2 changes: 1 addition & 1 deletion utils/osutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func getDeviceInfoForLUN(
if isDetachCall {
Logc(ctx).WithFields(fields).Debug("No iSCSI hosts found for target.")
return nil, nil
} else {
} else {
return nil, fmt.Errorf("no iSCSI hosts found for target %s", iSCSINodeName)
}
}
Expand Down

0 comments on commit 16e84e6

Please sign in to comment.