1. upgrade go version from v1.14 to v.1.19
2. upgrade csi_spec from v1.5.0 to v1.7.0
3. upgrade golang.org/x/net from v0.4.0 to v0.5.0
4. upgrade google.golang.org/grpc from v1.49.0 to v1.51.0
5. upgrade klog from v1.0 to v2.80.1
6. upgrade k8s.io/utils from 2022 to 2023
7. remove logrus
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
* fix: make multiple connections to one same nqn possible in a single node
Multiple connections to one same nqn in a single node return -EALREADY error.
So, we should use a hostnqn to make every connections seperate. It is appropriate
to use a target path from a volume request as a hostnqn.
* fix: make ro and rw mounts for one same nqn possible in a single node
ReadOnly and ReadWrite mounts for one same nqn in a single node return -EBUSY error.
So, we should remove readonly and readwrite options when mounting a block device in a
csi driver. A cri runtime makes a mount as readonly inside containers if needed.
* fix: add fallback supports for no hostnqn sysfs file supports
Directories per each nqn will be created in /run/nvmf and files per each hostnqn
will be created in /run/nvmf/{nqn}. If linux kernel has no hostnqn sysfs file
supports, we will disconnect all connections for a nqn at once when a directory for
the nqn is empty.
* refactor: rename sysfs_nqn_path to sysfs_subsysnqn_path
* refactor: use filepath.Join instead of strings.Join
* fix: add explicitly UnsupportedHostnqnError for fallback supports
If linux kernel has no hostnqn sysfs file supports, return UnsupportedHostnqnError
and switch to fallback mode which will disconnect all connections at once when
a last controller in a nqn is disconnected.
* fix: return directly after fallback mode
* fix: mount the host's /run/nvmf directory to csi-node-driver
1. modify go.mod module name.
2. move disk.go and mounter.go into nvmf.go
3. make Connector as an objective
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
1. add .prow.sh
2. add a symlink in Makefile related to release-tools.
3. modify some code style to pass fmt test.
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>