Open liushaobot opened 7 years ago
The rbd image addition to tcmu-runner failed.
Whats in /var/log/tcmu-runner.log and the kernel log at this time?
And what kernel version is this with?
When I use targetcli
to create iscsi target, everything is OK. However, I get the above error when using gwcli
.
And I get following error in /var/log/tcmu-runner.log
2017-11-21 09:58:09.601 894 [WARN] timer_check_and_set_def:229 rbd/rbd.iscsi-test-16T: osd op timeout ((null)) must be larger than osd heartbeat grace (20) + interval (6)!
2017-11-21 09:58:09.601 894 [WARN] timer_check_and_set_def:248 rbd/rbd.iscsi-test-16T: Will set the osd op timeout to 31 instead!
2017-11-21 09:58:09.641 894 [ERROR] tcmu_rbd_image_open:298 rbd/rbd.iscsi-test-16T: Could not open image ha-image/osd_op_timeout=30. (Err -2)
2017-11-21 09:58:09.645 894 [ERROR] add_device:496: handler open failed for uio0
@mikechristie
Does your version of tcmu-runner have this patch
https://github.com/open-iscsi/tcmu-runner/commit/897242e66517ff869bf81ab83bee94a68fb24277
1.3.0-rc3 and newer will have it.
Yes, I use the newest tcmu-runner-1.3.0-rc4.
All packages are the newest release versions: tcmu-runner-1.3.0-rc4 ceph-iscsi-config-2.3 ceph-iscsi-cli-2.5
The image name should be iscsi-test-16T
. However, there is a suffix /osd_op_timeout=30
.
https://github.com/open-iscsi/tcmu-runner/issues/335#issuecomment-345902674 I am wondering on which versions the mismatch issue between tcmu-runner and ceph-iscsi-config/ceph-iscsi-cli will be resolved/has been resolved. @mikechristie
You need to use the ceph-iscsi-config from GitHub master. It has this patch:
https://github.com/ceph/ceph-iscsi-config/commit/5d8396b5f3abab5a00b4795e0c17839d30f233f2
which 2.3 does not.
Thanks!
After creating iSCSI gateways successfully, I add RBD disk by using
Then, I got the following error
The rbd-target-api daemon is
And the log file: /var/log/rbd-target-api.log
And I tried
touch
a new file in/sys/kernel/config/target/
, but I failed.What is it? How could I solve the problem? Thanks!