Node folder in config.json is not used. Instead it uses default
In my config everything seems fine but for some reason the volume is created in the default folder.
I thought maybe it was related to the permissions, but when I removed the node config and configured the default in the /mnt/k8s-data folder, everything worked flawlessly.
The 172.17.0.203 is the NAME of the node (also its IP, of course). I mention this because I had another issue with Linstor in another cluser because Linstor got confused with the name of the node.
Maybe is the same issue with local-path-provisioner? Am I doing something wrong?
config.json: |-
{
"nodePathMap":[
{ node":"DEFAULT_PATH_FOR_NON_LISTED_NODES", "paths":["/opt/localstorage"] },
{ "node":"172.18.0.203", "paths":["/mnt/k8s-data"] },
{ -- cut for simplicity -- }
]
}
time="2023-02-04T07:06:36Z" level=debug msg="Applied config: {\"nodePathMap\":[{\"node\":\"DEFAULT_PATH_FOR_NON_LISTED_NODES\",\"paths\":[\"/mnt/k8s-data\"]}]}"
time="2023-02-04T07:06:36Z" level=debug msg="Provisioner started"
I0204 07:06:36.263087 1 controller.go:773] Starting provisioner controller rancher.io/local-path_local-path-provisioner-7b65754f87-5l6qh_b57b7800-bede-4c6c-92b7-6c01cd754d61!
I0204 07:06:36.363181 1 controller.go:822] Started provisioner controller rancher.io/local-path_local-path-provisioner-7b65754f87-5l6qh_b57b7800-bede-4c6c-92b7-6c01cd754d61!
I0204 07:08:54.965446 1 controller.go:1202] provision "local-path-storage/local-path-pvc" class "local-path": started
time="2023-02-04T07:08:54Z" level=debug msg="config doesn't contain node 172.18.0.203, use DEFAULT_PATH_FOR_NON_LISTED_NODES instead"
time="2023-02-04T07:08:54Z" level=info msg="Creating volume pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9 at 172.18.0.203:/mnt/k8s-data/pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9_local-path-storage_local-path-pvc"
time="2023-02-04T07:08:54Z" level=info msg="create the helper pod helper-pod-create-pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9 into local-path-storage"
I0204 07:08:54.989841 1 event.go:281] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"local-path-storage", Name:"local-path-pvc", UID:"531f43ad-17c7-409e-aa84-b7d6619cddd9", APIVersion:"v1", ResourceVersion:"3832258", FieldPath:""}): type: 'Normal' reason: 'Provisioning' External provisioner is provisioning volume for claim "local-path-storage/local-path-pvc"
time="2023-02-04T07:09:00Z" level=info msg="Volume pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9 has been created on 172.18.0.203:/mnt/k8s-data/pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9_local-path-storage_local-path-pvc"
I0204 07:09:00.136468 1 controller.go:1284] provision "local-path-storage/local-path-pvc" class "local-path": volume "pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9" provisioned
I0204 07:09:00.136548 1 controller.go:1301] provision "local-path-storage/local-path-pvc" class "local-path": succeeded
I0204 07:09:00.136570 1 volume_store.go:212] Trying to save persistentvolume "pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9"
I0204 07:09:00.148004 1 volume_store.go:219] persistentvolume "pvc-531f43ad-17c7-409e-aa84-b7d6619cddd9" saved
time="2023-02-04T07:06:36Z" level=debug msg="Applied config: {\"nodePathMap\":[{\"node\":\"DEFAULT_PATH_FOR_NON_LISTED_NODES\",\"paths\":[\"/mnt/k8s-data\"]}]}"
The config with the "node": "172.18...." is not updated yet.
Can you describe your steps to update the nodePathMap?
Ref: https://github.com/rancher/local-path-provisioner#reloading
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.