-
Notifications
You must be signed in to change notification settings - Fork 697
Open
Description
-
nvme connectis missing--compat - following simple test case does not pass. all works fine with nvme-cli v2.14 and libnvme v1.14 (without the
--compatoption)
test3() {
echo "---- connect with key in keystore"
"${NVME}" gen-tls-key --hostnqn "${hostnqn}" --subsysnqn "${subsysnqn}" \
--secret "${secret}" --hmac 1 --identity 1 --insert --compat
exec_test "${NVME}" connect ${common_args} --tls --dhchap-secret="${host_secret}" --dhchap-ctrl-secret="${ctrl_secret}" --dump-config --output-format json
cat <<EOF > expected.json
[
{
"hostnqn":"${hostnqn}",
"hostid":"${hostid}",
"dhchap_key":"${host_secret}",
"subsystems":[
{
"nqn":"${subsysnqn}",
"ports":[
{
"transport":"tcp",
"traddr":"${addr}",
"trsvcid":"${port}",
"dhchap_key":"${host_secret}",
"dhchap_ctrl_key":"${ctrl_secret}",
"tls":true
}
]
}
]
}
]
EOF
diff -u expected.json output
rm expected.json
echo ""
"${NVME}" tls --revoke "${identity}"
}Metadata
Metadata
Assignees
Labels
No labels