-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid use of discovery.sendtargets parameters #291
Comments
@Patricol definitely its on |
Perhaps I'm misunderstanding, but NixOS's The package is built here, it basically just clones https://github.com/open-iscsi/open-iscsi and runs its regular build; only setting a few directory locations. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Summary:
csi-driver-iscsi
tries to update values that don't exist; and just keeps retrying - never successfully mounting anything.What happened:
exit status 7 is
ISCSI_ERR_INVAL - invalid argument
., and sure enough; when running directly I get(It'll mention whichever arg is first in the list; all 5 are invalid.)
Relevant function is here:
csi-driver-iscsi/pkg/iscsilib/iscsiadm.go
Line 127 in 2214d71
Replacing all the
discovery.sendtargets
prefixes withnode.session
works; so it's likely an issue of myiscsiadm
(which is v2.1.10) not populating thediscovery.sendtargets
fields; so they're not there to be updated.What you expected to happen:
Not actually sure if or where the
discovery.sendtargets
should be added; theiscsiadm
docs show rather limited uses of-o update
with-n
and-v
. (Updating name/value pairs.) So that does imply that it might just need to be skipped; or the initial population of args should be adjusted to ensure they are set.How to reproduce it:
Used both
discoveryCHAPAuth=true
andsessionCHAPAuth=true
; specified all 8 values in thesecret
json. Ran on a fresh node; so the rescan etc. failed (which isn't an issue.) Used the example nginx yaml from this repo.Anything else we need to know?:
Environment:
2214d7113eb76501a189c7948937fe2cc19ec8b8
)kubectl version
):v1.30.3
; kubectl isv1.31.0
.nixos 24.11.20240824.d0e1602
uname -a
):6.10.6
v2.1.10
.The text was updated successfully, but these errors were encountered: