Commit Graph

26 Commits

Author SHA1 Message Date
Meinhard Zhou
576dccb738 fix: update go mod
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>
2023-11-20 19:23:31 +08:00
Kubernetes Prow Robot
ea5c2acba7
Merge pull request #24 from testwill/string
chore: use String() instead of fmt.Sprintf
2023-06-27 01:12:31 -07:00
guoguangwu
7129ec591b chore: use String() instead of fmt.Sprintf 2023-06-27 13:32:05 +08:00
haruband
41bbaf9cfb
Fix multiple connections problems to one same nqn in a single node (#23)
* 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
2023-05-04 11:20:38 +08:00
Meinhard Zhou
0bf764e9e2
Merge pull request #20 from MeinhardZhou/chore/components
Example: update componments to the latest version.
2023-03-30 17:51:08 +08:00
Meinhard Zhou
d888332416
Merge pull request #16 from MeinhardZhou/fix/attacher
Example: add va/status to rbac role's rule
2023-03-30 17:48:00 +08:00
Meinhard Zhou
bfea0e8ade chore: update componments to latest version.
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2023-02-17 11:08:06 +08:00
Meinhard Zhou
e122809913 fix: add volumeattachments/status to rbac role's rule
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2023-02-17 11:05:31 +08:00
Kubernetes Prow Robot
caa1f81133
Merge pull request #14 from lajiao117/master
Fix some problems
2022-10-23 20:22:24 -07:00
zhangdi
305dddba10 Fix some problems
1.fix path error in deploy/kubernetes/csi-nvmf-node.yaml
2.delete glog from the code
3.check vol uuid param before attach nvmf volume
2022-10-21 21:17:34 +08:00
Kubernetes Prow Robot
9864cbfc93
Merge pull request #13 from MeinhardZhou/docs/fix_setup
chore: fix some error in setup
2022-09-28 10:34:35 -07:00
Meinhard Zhou
996d83f3b3 chore: fix some error in setup
1. add SPDK target setup in README.
2. fix setup_kernel_nvmf_target command error.
3. fix pv.yaml's storageclass name.

Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2022-09-28 15:24:01 +08:00
Kubernetes Prow Robot
a2c52a6e60
Merge pull request #11 from MeinhardZhou/fix/mount_nvmf_error
fix: make example available
2022-08-20 01:35:35 -07:00
Meinhard Zhou
411117889a fix: make example available
1. fix path error in pkg/nvmf/fabrics.go
2. add nvmf kernel target setup guide
3. update example and deploy yaml

Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2022-08-19 18:04:40 +08:00
Kubernetes Prow Robot
430f2e209b
Merge pull request #7 from MeinhardZhou/PR_TEMPLATE
docs: add PR and ISSUE TEMPLATE.
2022-05-09 05:15:19 -07:00
Meinhard Zhou
4b5491d86f docs: add PR and ISSUE TEMPLATE.
Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
2022-04-27 18:27:35 +08:00
Kubernetes Prow Robot
c7af172f36
Merge pull request #5 from MeinhardZhou/refactor_backup
refactor: refactor some code to make it more readable
2022-03-17 23:17:16 -07:00
Meinhard Zhou
f770bb3802 refactor: refactor some code to make it more readable
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>
2022-03-17 13:48:06 +08:00
Kubernetes Prow Robot
7d1d0e2ec9
Merge pull request #4 from MeinhardZhou/master
add release-tools into master.
2022-03-16 05:23:49 -07:00
Meinhard Zhou
3e07ae4e60 style&chore: modity Makefile and some code style
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>
2022-03-16 12:43:44 +08:00
Meinhard Zhou
a62f221f93 Merge commit 'd8b4be456d22eb649bde2924982cee54ee3ee20e' as 'release-tools' 2022-02-21 16:39:02 +08:00
Meinhard Zhou
d8b4be456d Squashed 'release-tools/' content from commit 335339f
git-subtree-dir: release-tools
git-subtree-split: 335339f059da0b8b1947794a8c75d9e5b973cb79
2022-02-21 16:39:02 +08:00
Meinhard Zhou
7c3fb06bb0
Merge pull request #3 from MeinhardZhou/master
chorei&docs: optim Makefile and README
2021-11-12 17:46:58 +08:00
zhouenhua
2792dd2391 chorei&docs: optim Makefile and README
1. add container image build in Makefile
2. reorganized test guide
3. renamed csi-driver yaml.

Signed-off-by: zhouenhua <zhouenhua@bytedance.com>
2021-11-12 17:29:39 +08:00
zhouenhua
847c06d6c6 Update boilerplate text and OWNER_ALIASES
Signed-off-by: zhouenhua <zhouenhua@bytedance.com>
2021-10-27 17:54:52 +08:00
zhouenhua
6a6ac61e01 init csi-driver-nvmf
Signed-off-by: zhouenhua <zhouenhua@bytedance.com>
2021-09-10 11:50:07 +08:00