Wednesday, 2016-04-20

openstackgerritsmile-luobin proposed openstack/smaug: Store ResourceGraph and Plan in checkpoint  https://review.openstack.org/30773703:23
xiangxinyongsaggi: good morning05:54
xiangxinyongsaggi: i have sent a smaug video to you by email.06:14
xiangxinyongif something is need to modify, please let me know. I will modify it and send to you again.06:16
openstackgerritchenying proposed openstack/smaug: Add fullstack test to smaug  https://review.openstack.org/30699606:33
*** yuval has joined #openstack-smaug06:42
*** yuval is now known as Guest1535306:42
*** Guest15353 has quit IRC06:43
*** yuval_ has joined #openstack-smaug06:43
*** yuval_ is now known as yuval06:43
yuvalping xiangxinyong06:51
xiangxinyongyuval: hello06:56
yuvalxiangxinyong: how are you? :)06:56
xiangxinyongfine, thanks06:56
xiangxinyongand you?06:56
yuvalvery well06:56
yuvalI've seen the demo clip06:56
yuvallooks great!06:56
xiangxinyongThanks06:57
yuvalI have few very minor comments06:57
yuval1. comitted -> commited06:57
yuval2. on volume restore, parameter is "replacement public ip", which should be the restore parameter of servers06:58
yuval3. operation logs should have time in the grid06:58
yuval----06:58
xiangxinyongok06:58
xiangxinyongThanks for your suggestion07:00
yuvalSure. It looks very very good07:01
openstackgerritMerged openstack/smaug: Add name property to protectable instances model  https://review.openstack.org/30208607:02
xiangxinyongi will modify it07:05
xiangxinyongyuval: on volume restore, do you have some parameters to suggest to me? thanks07:20
yuvalxiangxinyong: you can try looking here:07:22
yuvalhttps://review.openstack.org/#/c/286458/23/smaug/services/protection/protection_plugins/volume/volume_plugin_cinder_schemas.py07:22
xiangxinyonggot it07:23
xiangxinyongyuval: about the operation logs time, does it mean createtime?07:25
yuvalxiangxinyong: started_at07:27
xiangxinyong:) thanks07:27
yuvalthank you! :)07:27
xiangxinyongi will send a email to all of you later.07:28
yuvalping chenzeng07:34
chenzengyuval:yes07:35
chenzengyuval:how are you?07:35
openstackgerritsmile-luobin proposed openstack/smaug: Store ResourceGraph and Plan in checkpoint  https://review.openstack.org/30773707:35
yuvalchenzeng: good, you?07:35
chenzengyuval:well.07:36
yuvalchenzeng: are you still working on creating clients without the request context?07:37
chenzengyuval:yes. it is the bug submitted by yinwei.07:38
chenzengtoday, i will submit the codes.07:38
yuvalgreat! :)07:38
yuvalwould you like to continue our discussion about the logs?07:38
chenzengyes, thank you07:40
yuvalI asked why not create the log in the operation base class, and you said we risk losing it if the service crashes07:40
chenzengyes07:40
yuvalwouldn't the log be lost if the log is created in the executor also?07:41
chenzengat present, the operations are stored in the queue of executor for a while before they are executed. i mean i don't want to lose the operations in the queue.07:43
yuvalthat is why you created _restore_operations in https://review.openstack.org/#/c/304048/4/smaug/operationengine/manager.py07:44
chenzengyes.07:46
chenzeng _restore_operations is used to register operations which belong to this service to triggers. at same time resume the operations which are not finished.07:48
openstackgerritchenying proposed openstack/smaug: Add fullstack test to smaug  https://review.openstack.org/30699607:51
openstackgerritsmile-luobin proposed openstack/smaug: Implement HeatTemplate for restore  https://review.openstack.org/30754907:55
yinweiishereping xiangxingyong07:58
chenzengyuval:?07:58
yuvalchenzeng: yes07:58
chenzengyuval:are you thinking the logs?07:59
yuvalno, I was reviewing07:59
yuvalwell, I still don't understand what you said about losing the operations08:00
yuvalcan you explain again?08:00
yuvalchenzeng: ?08:05
chenzengyuval:ok08:05
chenzengyuval:In the ThreadPoolExecutor, there is a queue to store the operation ids. if service creashes, then all the ids will  be lost if we don't create a record of ScheduledOperationLog in the db first.08:08
chenzengyuval:the queue is in the futures.ThreadPoolExecutor.08:09
chenzengWhen the service restarts, then we will resume the operation by the records in the db.08:10
chenzengyuval:do you understand?08:11
yuvalI understand the problem, but I don't understand how the logs are related08:13
yuvalDon't we create a ScheduledOperationState just for that?08:13
yuvalAnd if we keep the log creation in the executor, the problem still exists08:14
openstackgerritsmile-luobin proposed openstack/smaug: Store ResourceGraph and Plan in checkpoint  https://review.openstack.org/30773708:15
yuvalIf the operation didn't start when the service crash -> it will be registered again. If it was running when we crashed, register it and resume08:17
openstackgerritMerged openstack/smaug: Add show protectables instance endpoint  https://review.openstack.org/30214408:39
openstackgerritMerged openstack/smaug: Add a field parameters to resource plans  https://review.openstack.org/30273008:39
chenzengyuval:in the db, there is one record of ScheduledOperationState, but there are many records of ScheduledOperationLog. i think we have different understandings. tonight, i will discuss with you again. now , i will submit the codes of clients.08:44
yuvalchenzeng: Ok, I understand. But still, what is the difference between placing the logging in operation and executor?08:49
chenzengThe 'execute' method of the operation class like ProtectOperation just updates the 'extend_info' of ScheduledOperationLog record; but the executor creates the record of ScheduledOperationLog.08:53
chenzengwe must create the log first, then update it.08:53
yuvalBut why should the executor create it? The executor is class which is responsible for executing abstract operations08:55
yuvalConsider the following:08:55
yuvalclass BaseOperation():08:56
yuval  def exectue():08:56
yuval    create_log()08:56
yuval    self._execute()08:56
yuvalthe protect/delete/restore operations overrides the _execute method08:56
xiangxinyongyuval: I modify the video details, please receive the email. thanks08:57
xiangxinyongsaggi: ping09:16
openstackgerritxiangxinyong proposed openstack/smaug-dashboard: [Operation Logs] Submit index view function  https://review.openstack.org/30772909:17
saggixiangxinyong: pong09:58
xiangxinyongsaggi: do you think we need to send the smaug video to mail list?09:59
*** xiangxinyong456 has joined #openstack-smaug10:03
openstackgerritzengchen proposed openstack/smaug: Fix the expiry of token when creating client by context  https://review.openstack.org/30824310:10
yuvalping chenzeng10:11
chenzengyuval & yinwei:i have submitted the first version to fix the expiry of token when creating client by context. please review it. https://review.openstack.org/30824310:11
chenzengyuva:yes10:11
yuvalchenzeng: great, I'm looking into it10:11
yuvalchenzeng: have you seen my comments on https://review.openstack.org/#/c/304048/ ?10:12
chenzengyuval:not yet. i will see it tonight. then discuss with you.10:13
chenzengyuval:now, i have to leave the office.10:13
chenzengyuval:see you later.10:13
yuvalchenzeng: have a good night, thank you!10:13
yuval:)10:13
saggixiangxinyong, please send it to me first10:20
xiangxinyong456saggi: ok10:21
xiangxinyong456saggi: i have already send it to your email10:22
saggiI'll check it now10:22
xiangxinyong456yuval give some suggestions to me.10:22
yuvalxiangxinyong456: I've seen the new version and it looks good10:23
xiangxinyong456saggi: so please check the lastest version10:23
xiangxinyong456yuval: thanks: )10:23
*** yinwei_computer has quit IRC10:25
*** yinwei_computer has joined #openstack-smaug10:26
saggixiangxinyong456: I can't find it. Where did you send it too?10:32
xiangxinyong456please wait a moment10:33
xiangxinyong456saggi: could you search steven gerrard10:34
xiangxinyong456i use my another email10:35
*** yinwei_computer has quit IRC10:38
*** yinwei_computer has joined #openstack-smaug10:38
xiangxinyong456i send it to this email10:38
xiangxinyong456saggi.mizrahi@toganetworks.com10:38
xiangxinyong456saggi: do you find it?10:39
saggixiangxinyong456: nope, I have only 3 emails from today and non of them are from you10:45
xiangxinyong456saggi: is there email title named “smaug-video”10:47
xiangxinyong456yuval: could you help me to send the lastest email to saggi?10:49
xiangxinyong456sorry, i am on my way home10:49
*** xiangxinyong456 has quit IRC11:22
*** xiangxinyong456 has joined #openstack-smaug11:23
*** xiangxi55 has joined #openstack-smaug11:24
*** xiangxinyong456 has quit IRC11:24
*** xiangxi41 has joined #openstack-smaug11:26
*** xiangxi55 has quit IRC11:28
*** xiangxi41 has quit IRC11:35
xiangxinyongsaggi: are you around? i arrive home.11:37
*** WANGFeng has joined #openstack-smaug11:43
xiangxinyongyuval: ping11:48
yuvalxiangxinyong: saggi is here11:51
yuvalxiangxinyong: he saw the video11:51
yuvalxiangxinyong: he thinks it is a bit long11:51
yuvalxiangxinyong: maybe skip the trigger creation (in the end)11:51
xiangxinyongyuval: ok11:53
xiangxinyongi will clip cut the trigger part.11:54
xiangxinyongI will send an email to all of you later11:55
xiangxinyongyuval: is this saggi's email: saggi.mizrahi@toganetworks.com11:55
xiangxinyongyuval: i send a new video to you by email.12:18
xiangxinyongyuval: if it is possible, please tell saggi. thanks.12:20
*** dell has joined #openstack-smaug12:53
*** dell is now known as zengchen13:02
zengchenyuval:good afternoon! are you there?13:02
yuvalzengchen: hey, I'm here13:02
zengchenyuval:are you free now?13:02
yuvalzengchen: yes13:02
zengchenyuval: we have two issues to discuss.13:04
zengchenyuval:first, we talk the comments on the https://review.openstack.org/#/c/304048/4/smaug/operationengine/manager.py. why should filter the operation by 'running'.13:05
yuvalyou pass the "resume=True" to register_operation()13:05
zengchenyes13:06
yuvalthe operation state can be "registered", "triggered", "running", "deleted", "init"13:06
yuvalwhat happens to operations which were in state "triggered" and "running"13:07
zengchenactually, the operations which should be resumed are in running. but at present, i have not used the 'running'.13:07
yuvalso who should use "running"?13:08
zengcheni intend to get the running operations by filter the records of SchedueledOperationLog whose state is 'in_progress'(scheduled_operation_execution_state.py)13:11
zengchenso, i think i should tell you the design at present.13:12
zengchen1.when creating the operation, we will create a record of ScheduledOperationState in db with state 'registered'.13:13
zengchen2.when the operation is triggered, then i will create a record of ScheduledOperationLog in db with state 'in_progress'.13:14
*** chenying_ has joined #openstack-smaug13:16
zengchen3. if the operation is executed, then i will update the record of ScheduledOperationLog in db with state 'success/failed/drop_out_of_window'.13:16
*** zhonghua-lee has quit IRC13:17
*** zhonghua-lee has joined #openstack-smaug13:17
*** chenying has quit IRC13:19
zengchentherefore, 1. I create a record of ScheduledOperationLog when invoke 'exuecute_operation' of RecordOperationLogExecutor, because I use DB to keep the operations which are triggered to avoid lose them.13:21
yuvalping yinweiishere yinwei_computer13:22
zengchen2. becuase there is a state 'in_progress' to indicate that the operation is running. I have not filtered the operation by state 'running' when resuming it.13:24
zengchenyuval:do you understand my words?13:25
yuvalYes, but an executor shall not create a log13:26
yuvalAn operation might13:26
yuvalCurrently, when you restart the service, even tasks which were registered but not in the middle of a run, get resumed13:27
zengchenok, i have one question. suppose there 10 operation ids in the queue of ThreadPoolExecutor, then the service crashes. do we need to resume these 10 operations?13:28
yuvalif the we are still in the time window13:30
yuvalconsider that the service crashes and comes back after 3 hours13:30
yuvalor 1 week13:30
yuvalzengchen:  ?13:33
zengcheni mean how to know which operatoins showld be resumed. your comments give me a way that update the state of ScheduledOperationState record when the operation is triggered.13:33
zengchenbut restart, filter the operation by 'running' and 'triggered'.13:34
zengchenyes, you are right. if the operation is out of window, we will not resume it.13:35
yuvalso I don't understand:13:35
yuval1. why don't 'running' and 'triggered' operations are not sent to resume_operation13:36
zengchenyuval:i understand your idea. it is very good.13:36
yuvalok13:36
zengchenbut, one question.13:36
zengchenwe must make sure there are not two operation ids in the queue.13:37
yuvalyes, important13:38
zengcheni mean if the operation's state is running when it is triggered again. then how do we do? ignore this time?13:39
zengchenat present. the interval between two time points is >= 1h. and the window < interval/2. i think it is hardly to happen that.13:41
zengchenyuval?13:43
yuvalbut an operation can register to two triggers13:44
yuvalfor example, every day at 12:00, and once a week at sunday 12:0013:44
yuvalevery sunday 12:00 they will collide13:45
zengchenthat are two different operations. you can see the api of create operation. we have not supported to bind one operation with tow different triggers.13:46
zengchenone operation is mapping to one trigger.13:46
yuvalI'm not sure we are not supporting that13:52
yuvalbrb13:53
zengchenat present, we don't support that. I will update as you designed.13:56
zengchenyuval:do you have time to review the patch today? https://review.openstack.org/#/c/308243/13:58
yuvalzengchen: I already started writing comments, will post them once I finish14:23
zengchenyuval:thanks for your work. very thanks. see you tomorrow!.14:57
yuvalzengchen: you too, see you :)14:57
*** zengchen has quit IRC14:58
*** yuval has quit IRC15:03
*** mingyu has joined #openstack-smaug16:21
*** mingyu has quit IRC16:47
*** mingyu has joined #openstack-smaug16:54
*** WANGFeng has quit IRC17:12
*** mingyu has quit IRC20:13
*** mingyu has joined #openstack-smaug20:43
*** mingyu has quit IRC20:48
*** mingyu has joined #openstack-smaug22:33
*** mingyu has quit IRC22:37
*** mingyu has joined #openstack-smaug23:48
*** mingyu has quit IRC23:53

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