Skip to main content
NetApp Knowledge Base

Why does Trident daemonset use "/" path for host-dir?

Views:
3
Visibility:
Public
Votes:
0
Category:
trident-kubernetes
Specialty:
snapx
Last Updated:

Applies to

Astra Trident

Answer

The host-dir access with "/" path is needed to access Linux utility packages like iscsi-tools.

Additional Information

Runinng kubectl get daemonset -n <namespace> -o yaml shows the parameters:
...
hostPath:
        path: /sys
        type: Directory
        name: sys-dir
hostPath:
        path: /
        type: Directory
        name: host-dir
...


Modifying the parameter is not recommended and will cause mount issues as iscsi-tools will be inaccessible:
Warning  FailedMount  8s (x6 over 24s)  kubelet            MountVolume.MountDevice failed for volume "pvc-1171fffb-9a22-4773-8fcf-236903e54a22" : rpc error: code = Internal desc = rpc error: code = Internal desc = failed to stage volume: unable to attach: open-iscsi tools not found on host

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.