ceph-iscsi-cli
ceph-iscsi-cli copied to clipboard
add cmd_time_out option to /disks create command
Provide a cmd_time_out option to make configfs attribute cmd_time_out optionally configrable when adding a disk node to the configuration.
Signed-off-by: Zhang Zhuoyu [email protected]
This PR base on https://github.com/ceph/ceph-iscsi-config/pull/36
Tuning specific lun's is a great idea. Maybe instead of adding it to a disk create, we should consider adding a 'ui_command_set' method to the storage.Disk class to specifically handle attrib changes, and set sensible defaults for the majority of luns we create. Thoughts?
@pcuzner
Yes, good idea.
As we discussed with Mike in tcmu-runner PRs, this could be like what the targetcli/rtslib to do, for attributes and parameters the kernel has supported then we could just do the set attribute/parameter command, as you mentioned above.
@pcuzner ui_command_set sounds good, But for now, if disk is created, LUN will also be added to TPGs, and export_count in kernel is increased, which makes cmd_time_out attribute unmodifiable, maybe we should break the coupling between disk creation and adding LUN TPGs, to make 'ui_command_set' possible?
@zhuozh Sorry for the late reply. I was waiting on the targetcli discussion.
At the rtslib level we are going to break up the creation of the object, setting attributes, config settings and parameters, and then enabling it. Here is outline of how it would look like with targetcli:
https://github.com/open-iscsi/targetcli-fb/pull/95#discussion_r147223224
We would probably want to do a similar separate of steps in gwcli and ceph-iscsi-config.