kubernetes-csi/csi-driver-host-path

State file not updated after stage/publish action

astraw99 opened this issue · 0 comments

According to the code logic, when the NodeStageVolume and NodePublishVolume RPC are called, the volume related state file (state.json) should update instantly.

But after test with the latest code, the state file (state.json) was not updated after stage/publish action.

cat state.json

{"Volumes":[{"VolName":"CSIVolumeName","VolID":"dfd219cb-644c-11ee-91c1-525400def842","VolSize":1048576,"VolPath":"/csi-data-dir/dfd219cb-644c-11ee-91c1-525400def842","VolAccessType":1,"ParentVolID":"","ParentSnapID":"","Ephemeral":false,"NodeID":"","Kind":"","ReadOnlyAttach":false,"Attached":false,"Staged":null,"Published":null}],"Snapshots":null}