Friday, 2017-05-12

*** kaisers1 has quit IRC00:35
*** kaisers1 has joined #openstack-manila00:37
*** gouthamr has quit IRC00:50
*** dsariel_ has quit IRC01:04
*** dsariel has quit IRC01:04
*** kaisers_ has joined #openstack-manila01:15
*** catintheroof has quit IRC01:18
*** kaisers has quit IRC01:19
*** zhonghua has joined #openstack-manila01:35
*** gcb has quit IRC02:01
*** gcb has joined #openstack-manila02:01
*** jiaohaolin1 has joined #openstack-manila02:17
jiaohaolin1102:17
jiaohaolin1hey guys, my boss would like me to write a Manila driver for our storage . So I check the wiki of manila. But I can't get any useful infomation of Drivers .It doesn't like Cinder Driver, the wiki of Cinder can tell me how to contribute a driver and the Minimum Features that driver should implement. The manila wiki doesn't say anything02:28
jiaohaolin1So , my question is which features should I implement in the manila driver ? Or I should implement all functions of 'driver.py'?02:29
jiaohaolin1hello ? Dose anybody not in bad ?02:33
bswartzjiaohaolin1:  https://docs.openstack.org/developer/manila/devref/driver_requirements.html02:35
*** catintheroof has joined #openstack-manila02:40
jiaohaolin1bswartz: Thank you so much !02:48
*** gouthamr has joined #openstack-manila02:58
*** gouthamr has quit IRC03:22
*** gouthamr has joined #openstack-manila03:26
*** catintheroof has quit IRC03:57
*** kaisers_ has quit IRC04:03
*** kaisers has joined #openstack-manila04:03
*** jmlowe has quit IRC04:04
*** kaisers has quit IRC04:05
*** kaisers has joined #openstack-manila04:05
*** kaisers has quit IRC04:10
*** kaisers has joined #openstack-manila04:11
*** hoonetorg has quit IRC04:13
*** gouthamr has quit IRC04:16
*** hoonetorg has joined #openstack-manila04:26
*** swapnil-nilangek has joined #openstack-manila04:52
*** pcaruana has joined #openstack-manila06:14
*** jprovazn has joined #openstack-manila06:23
*** kaisers has quit IRC06:29
*** kaisers has joined #openstack-manila06:30
toabctljiaohaolin1, it's also a good idea to look into the current driver implementations07:25
toabctlvponomaryov, bswartz re bug 1690159. I wonder what the expected behaviour is in a multi-backend case? So eg. for one backend, init_host() works and for the second backend it does not07:27
openstackbug 1690159 in Manila "cephfs (possibly others): manila-share does not retry/restart if init_host() fails " [Undecided,New] https://launchpad.net/bugs/169015907:27
toabctlshould manila-share be restarted or not?07:27
toabctlbtw. the behaviour was changed due to https://bugs.launchpad.net/manila/+bug/169015907:27
toabctlehm, sorry. due to https://bugs.launchpad.net/manila/+bug/1500964 I mean07:28
openstackLaunchpad bug 1500964 in Manila "Manila-shr is auto restarted if exception is thrown in do_setup()" [Medium,Fix released] - Assigned to Jordan Pittier (jordan-pittier)07:28
toabctlI wonder if https://review.openstack.org/#/c/230018/ should be reverted....07:28
jiaohaolin1toabctl: thanks , I'm doing this now , but it can not determine which features must be implemented, which features are optional,so I chose the functions that every driver has implement as  requirement of our driver.07:37
jiaohaolin1I hope that the core members can define the functions that must be implemented like Cinder-Driver. So the new driver Contributors can refer to it to make their own driver faster.07:40
toabctljiaohaolin1, it is defined in the docs bswartz mentioned.07:53
jiaohaolin1toabctl: sorry, what is that mean ? bswartz ?07:59
toabctljiaohaolin1, bswartz = Ben = PTL of manila. and he mentioned https://docs.openstack.org/developer/manila/devref/driver_requirements.html already07:59
zhongjunjiaohaolin1: If you have any question about this doc(  https://docs.openstack.org/developer/manila/devref/driver_requirements.html) and your question, please let our know. :)08:10
zhongjunbswartz: ye, there are many changes in this patch, and some of driver can not be tested. You was considering splitting apart the LVM stuff. So will you split the patch when you have free time?08:11
jiaohaolin1toabctl: sorry~ But this page only said the 'share create/delete' and 'share extending' must be  implemented . I didn't find other functions have to be impemented,08:14
*** a-pugachev has joined #openstack-manila08:15
jiaohaolin1toabctl: And my english is not very well ,maybe I should check this page carefully again.08:15
zhongjunjiaohaolin1: At least one driver mode (DHSS true/false)08:20
zhongjunAt least one file system sharing protocol08:20
zhongjunAccess rules08:20
zhongjunShares08:20
zhongjunShare extending08:20
zhongjunCapabilities08:20
zhongjunContinuous Integration systems08:20
zhongjunUnit tests08:20
zhongjunDocumentation08:20
jiaohaolin1zhongjun: thanks ~08:21
zhongjunjiaohaolin1: please see the doc tittle, there are need to be implement08:22
zhongjunjiaohaolin1:  You should keep attention onmanila new driver submission deadline.08:34
zhongjunjiaohaolin1: https://releases.openstack.org/pike/schedule.html08:35
zhongjunjiaohaolin1:  You should pay attention on manila new driver submission deadline. :)  Jun 05 - Jun 0908:35
jiaohaolin1zhongjun: ...08:39
jiaohaolin1zhongjun: I guess we will submit it in next version. we just start it08:42
zhongjunjiaohaolin1: cool, then you can forget about the deadline in Pike version.08:45
*** lpetrut has joined #openstack-manila09:22
*** gcb has quit IRC10:14
*** jiaohaolin1 has left #openstack-manila10:14
*** gcb has joined #openstack-manila10:16
*** jprovazn has quit IRC10:27
*** jprovazn has joined #openstack-manila11:35
*** chlong has quit IRC11:36
*** jprovazn has quit IRC11:46
*** jprovazn has joined #openstack-manila11:47
openstackgerritMerged openstack/manila-ui master: Fix NotImplementedError and use new way to define action_present/past  https://review.openstack.org/46285411:50
*** gcb has quit IRC12:52
*** jmlowe has joined #openstack-manila13:03
*** dustins has joined #openstack-manila13:04
*** scottda has joined #openstack-manila13:10
*** xyang1 has joined #openstack-manila13:30
bswartztoabctl: we should discuss that at the next weekly meeting or sooner13:30
toabctlbswartz, hey. I'm already working on a fix. I think the best thing todo (in a multi-backend scenario) is to loop for the broken backends13:31
toabctlbswartz, looks like that is not complicated. I post a patch soon13:31
bswartztoabctl: and endless restart loop seems like a bad approach13:34
toabctlbswartz, there is imo no other way in a multi-backend setup13:34
toabctlbswartz, if 1 backend works and another one is broken - what do you want todo?13:35
toabctlbswartz, currently it is completely broken because it does a) not abort and b) not loop13:35
bswartzI wonder if we can distinguish between failures that should be restarted and permanent failures13:35
-openstackstatus- NOTICE: The Gerrit service on http://review.openstack.org is being restarted to address hung remote replication tasks.13:37
toabctlbswartz, and I think it does not harm if we loop during init_host() per backend. this is not an endless restart loop13:38
toabctlit is more like a "wait for the backend "13:38
toabctlbswartz, btw. how was the summit? how many people were there?13:39
vponomaryovtoabctl: what do you mean by "loop for the broken backends"?13:57
bswartztoabctl: In cases where the driver crashes and we know it's a temporary failure, then I think restarting automatically is a good idea. Likewise in cases where we know it's a permanent failure, then we should not restart. The problem is that it's hard to know which case any given error is, and in some cases it's impossible to know.13:57
vponomaryovtoabctl: one backend - one process13:57
toabctlgive me 5 min and I push the patch. then you can comment there...13:57
bswartztoabctl: therefore we need some good default behavior to cover errors which might be permanent and might be temporary13:57
toabctlbswartz, the current behavior is wrong. that's for sure :)13:58
bswartzI would advocate some limited number of retries with a exponential backoff time between the retries13:58
vponomaryov+1 for  limited number of retries with a exponential backoff time between the retries13:58
toabctlno. then you end up in the same situation.13:58
toabctljust after some time13:59
bswartztoabctl: what is the situation you're most worried about?13:59
bswartzthe situation where the service is dead and nothing is trying to restart it?13:59
toabctlbswartz, that you have configured a backend, manila-share starts, init_host() fails and manila-share runs endlessly but can not be used.14:00
toabctlbswartz, and that is what we have currently14:00
bswartzyes we definitely don't want that14:00
bswartzbut there are only 2 choices to fix the problem14:01
toabctlbswartz, commit 4b87f6f40d1f09b4 introduced that (for a good reason, the multi-backend case)14:01
bswartz1) allow the process to die and leave it up to the user to fix14:01
bswartz2) retry and risk it failing again and again for the same reason14:01
toabctlbswartz, yes. but the downside for 1) is, that there might be a working backend and if you let the process die, nothing ever works14:02
bswartzthat's why I'm arguing for a middle ground14:02
toabctlso imo 1) is not a good solution because it blocks everything if only a single backend is broken14:02
bswartzI don't see how it blocks everything14:03
bswartzit only blocks requests to that backend14:03
bswartzthe rest of manila is fine if one m-shr service can't start up14:03
toabctlbswartz, does 1) mean to you that you kill the whole m-shr process? Or just the "backend process" managed by m-shr ?14:05
bswartztoabctl: oh I see what you're getting at14:05
bswartzwhen you configure multibackend, there is a parent process which does nothing but spawn child m-shr processes14:05
bswartzso which one should die14:06
toabctlyeah. for me "killing manila-share" means killing the parent and all its childs.14:06
toabctllike "systemctl stop openstack-manila-share"14:06
bswartzthe child should definitely die if it can't initialize the driver, but the parent should probably keep running as long as one backend is working okay14:06
bswartzlet me think about that14:07
toabctlbswartz, yes. that's what my fix will do.14:07
toabctland retry for the backend that did not work14:07
bswartztoabctl: how many retries? endless?14:07
bswartzwill it sleep between retries?14:07
toabctlbswartz, yes. I don't see a problem with that. currently I thought "try every 10 seconds". could be configurable of course by I don't see why for the moment14:08
bswartzI would advocate for exponential backoff time bewteen retries no matter whether it's limited or unlimited retries14:08
toabctlyes. time.sleep(10) which does not block anything else afaikc14:08
*** chlong has joined #openstack-manila14:09
bswartzso that if it's a temporary failure it will be fixed very quickly by a fast retry, but if it's a permament failure, the log spam will be kept to a minimum14:09
toabctlyeah. that sounds also good to me.14:09
bswartzlike the retry time should start out at some small number and then keep doubling up to a maximum time14:09
openstackgerritThomas Bechtold proposed openstack/manila master: Retry backend initialization  https://review.openstack.org/46420514:13
toabctlbswartz, vponomaryov ^^ here is the patch. I'll rework the time.sleep and add your exponential backoff proposal14:14
*** xyang1 has quit IRC14:19
*** xyang1 has joined #openstack-manila14:19
*** jprovazn has quit IRC14:47
openstackgerritThomas Bechtold proposed openstack/manila master: Retry backend initialization  https://review.openstack.org/46420514:52
*** lpetrut has quit IRC15:09
*** gouthamr has joined #openstack-manila15:18
*** gouthamr has quit IRC15:57
*** kaisers has quit IRC16:06
*** pcaruana has quit IRC16:12
*** gouthamr has joined #openstack-manila16:14
*** kaisers has joined #openstack-manila16:31
*** chenying_ has quit IRC17:06
*** chenying__ has joined #openstack-manila17:06
*** a-pugachev has quit IRC17:41
*** harlowja has quit IRC19:02
*** a-pugachev has joined #openstack-manila19:04
*** gouthamr has quit IRC19:50
*** a-pugachev has quit IRC20:30
*** dustins has quit IRC20:36
*** xyang1 has quit IRC21:57
*** harlowja has joined #openstack-manila22:40
*** kaisers has quit IRC22:58
*** chlong has quit IRC23:00
*** kaisers has joined #openstack-manila23:25

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!