Skip to content
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

add cmd_time_out option to /disks create command #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhuozh
Copy link

@zhuozh zhuozh commented Nov 15, 2017

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 zhangzhuoyu@cmss.chinamobile.com

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 <zhangzhuoyu@cmss.chinamobile.com>
@zhuozh
Copy link
Author

zhuozh commented Nov 15, 2017

This PR base on ceph/ceph-iscsi-config#36

@pcuzner
Copy link
Collaborator

pcuzner commented Nov 15, 2017

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?

@lxbsz
Copy link
Member

lxbsz commented Nov 20, 2017

@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.

@zhuozh
Copy link
Author

zhuozh commented Nov 20, 2017

@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?

@mikechristie
Copy link
Contributor

@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:

open-iscsi/targetcli-fb#95 (comment)

We would probably want to do a similar separate of steps in gwcli and ceph-iscsi-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants