why the default share type(default) designated required_extra_specs is true

Asked by zhongjun

In the latest version of manila(Kilo). Could you please tell me why the default share type(default) designated driver_handles_share_servers is true?
Such the backend(driver_handles_share_servers is false) will not be called, and the user has no knowledge.

root@ubuntu:~# manila type-list
+--------------------------------------+---------+------------+------------+-------------------------------------+
| ID | Name | Visibility | is_default | required_extra_specs |
+--------------------------------------+---------+------------+------------+-------------------------------------+
| c280abca-5e1e-427a-8498-43a8d068a0d7 | default | public | YES | driver_handles_share_servers : True |
+--------------------------------------+---------+------------+------------+-------------------------------------+

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Shared File Systems Service (Manila) Edit question
Assignee:
No assignee Edit question
Solved by:
Valeriy Ponomaryov
Solved:
Last query:
Last reply:
Revision history for this message
Valeriy Ponomaryov (vponomaryov) said :
#1

Not only default share type has required extra spec "driver_handles_share_servers". ALL share types have it. And this is used for filtering backends as all other possible extra specs for share types such as "share_backend_name", etc...

If you want to create share on backend which does not handle share servers, than just create appropriate share type and use it with share creation.

Revision history for this message
zhongjun (jun-zhongjun) said :
#2

Thank you for answering my question.

I know “Not only default share type has required extra spec "driver_handles_share_servers". ALL share types have it. And how to used about "driver_handles_share_servers"”.

I do not understand why should A as a necessary attribute. And why not set default share type "driver_handles_share_servers" is false?

Revision history for this message
Best Valeriy Ponomaryov (vponomaryov) said :
#3

1) Default share type is set only by admin.
2) Share types are created only by admin.
3) All params/extra specs of share types are set only by admin.
4) If nothing is set, then share creation will fail if share type is not provided with request.
5) Admin can set param "driver_handles_share_servers" to "False" as well as to "True". Any time, any moment.
6) There is no default in manila itself.
7) Devstack is smart enough to setup that value, but it sets both. It depends on set value of first enabled backend. See:

https://github.com/openstack/manila/blob/6785cad99476ded05e47ffe19d2d87153e41bedc/devstack/plugin.sh#L431

Revision history for this message
zhongjun (jun-zhongjun) said :
#4

Thank you very much.

Revision history for this message
zhongjun (jun-zhongjun) said :
#5

Thanks Valeriy Ponomaryov, that solved my question.