15:01:25 #startmeeting smaug 15:01:25 Meeting started Tue Jul 26 15:01:25 2016 UTC and is due to finish in 60 minutes. The chair is saggi. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:01:27 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:01:29 The meeting name has been set to 'smaug' 15:01:29 i am on my mobile 15:01:32 Hi everyone 15:01:37 hi 15:01:57 hello 15:01:58 Anyone else here? 15:02:03 hi 15:02:29 OK 15:02:36 Are we waiting for anyone? 15:03:10 saggi: can I bring up something quickly? 15:03:13 Sure 15:03:26 Though there is an open discussion portion at the end 15:03:39 saggi: I can wait to the end 15:03:43 cool 15:03:47 #topic Add pause and resume interface for scheduled operations 15:04:17 IIRC We already have this 15:05:06 already have? 15:05:19 saggi:yes, does everybody take a look at this suggestion 15:06:03 saggi:maybe we have not suppot these two apis 15:06:20 Why not just change the status? 15:06:48 If status is disabled\paused we don't trigger 15:06:56 no need to unregister in the API 15:06:59 because we have registered the opertion to the trigger in the memory 15:07:20 chenzeng: In memory we can unregister. But no in the DB. 15:07:44 saggi:yes, so we have two steps 15:08:26 So if the user modifies the scheduler operation to have status="paused". We will unregister internally. 15:08:33 No need for new API paths 15:09:30 saggi:as i know, we don't have the logic as you said 15:10:30 chenzeng: We can add it. I think it's preferable to having new API paths for pause\resume 15:11:49 saggi:i agree 15:12:02 Good! 15:12:08 Anything else on this topic? 15:12:29 saggi:no 15:12:33 #topic Where to show the status of restoration? 15:12:39 This is an interesting question. 15:12:45 yeah 15:12:46 https://etherpad.openstack.org/p/restorestate 15:12:50 :) 15:13:05 Don't we get this from HEAT? 15:13:21 What does it use? 15:13:32 saggi: yeah. we can get it from heat. 15:13:47 It could be added to the restore model. 15:14:02 we get the information from heat and retrieve it there. 15:14:13 Similar to how we do it for checkpoint. 15:14:42 saggi: it seems we are talking about another question 15:14:52 When the end user restore a checkpoint 15:15:16 This is what I'm talking about. This creates a restore object. 15:15:18 we will add a record into the restore table 15:15:57 could i think the restore object is put into restores table? 15:16:27 Could you rephrase that. I don't understand. 15:16:39 yeah 15:17:24 We have a db table named "Restores" to store the records when we restore from a checkpoint. 15:17:51 ok 15:18:24 It should relate the the corresponding Heat operation 15:18:25 and the DB table "Restores" has a field named "Status" 15:19:02 and also we have a "Status" on the checkpoint 15:19:20 where to restore the status? 15:19:29 the status of checkpoint include "Protecting" "Available" 15:19:48 xiangxinyong: "protecting"? 15:19:54 restoring maybe 15:19:59 yeah 15:20:35 saggi: about this question: Where to show the status of restoration? 15:20:58 do you think we need to show "Restoring" on the checkpoint? 15:21:35 or just onlu show "Restoring" on the DB table "Restores" 15:21:44 or both? 15:21:53 I think just in restores 15:22:00 Since it's not a status for the checkpoint 15:22:17 The restore should point the the checkpoint 15:22:22 not the other way around 15:23:10 so you think the status of checkpoint just only include the protecting and available? 15:23:21 Yes 15:23:52 saggi: so smaug will update the record in Restore table after restoration. am I right? 15:23:57 yes 15:24:05 looks good 15:24:22 saggi:agree 15:25:14 OK. understood. 15:25:24 #topic add policy for checkpoints management 15:25:46 ok 15:26:09 this proposal just want to add a policy for checkpoint management 15:27:01 This is what Schedule Operations are for. You can have one that limits the amount of checkpoints every night to 10. 15:27:11 e.g. the end user want to keep three checkpoints for one plan. 15:27:26 saggi: yes 15:28:00 but how about add this function in checkpoint management moudule? 15:28:15 I don't understand the suggestion 15:28:47 Hey, sorry for being late 15:28:54 I mean we can add a moudule to manage the checkpoints 15:29:40 These kind of operation are by design relegated to the Operation Engine or some external Policy mechanism 15:30:29 what means for external Policy mechanism? 15:31:09 Tricircle 15:31:10 smaug provide a Rest API to delete checkpoint? query checkpoints by plan? 15:31:31 the other module do this operation? 15:32:01 Something can use the Rest API to query and delete. 15:32:03 I perfer to Smaug. 15:32:06 It will need to handle the transaction 15:32:29 The problem with implementing it in Smaug is that we find that many users want to use their own policy mechanisms 15:32:57 saggi: yes 15:33:16 if we add this function into Operation Engine 15:33:28 This is it's purpose. 15:33:41 that will make the policy very complex 15:33:49 Why? 15:34:03 not only for backup policy 15:34:16 but also for checkpoints policy 15:34:53 I'm sorry, but I don't understand the problem. Could you please be more specific? 15:35:06 saggi: zhonghua means that if some users want to keep only 3 checkpoints every plan in the bank 15:35:24 saggi: what's your opinion about question 'just keep 3 checkpoint for a scheduled protection operation which will generate 1 checkpoint every day' 15:36:07 yeah , chenzegn give the example 15:36:10 You can have an advance operation that creates and deletes. The operation engine is built for these kind of transaction. 15:37:24 operation extension sounds the best choice 15:37:28 saggi:so you want to add a new operation? 15:38:17 but how the operation know the new checkpoint created successfully? 15:38:50 this operation will invoke the api to create the checkpoint, and then check the number of checkpoint, if ecceed the 3, delete the oldest 15:39:04 chenzeng: Exactly 15:40:17 but if the user only use the method "protect now"? 15:41:07 It will delete when the scheduled operation runs. 15:41:21 Since this is the point it will check for the number of checkpoints. 15:41:29 xiangxinyong: you mean user create checkpoint manully? 15:41:34 We could add checkpoint MD to make sure they don't get counted. 15:41:42 zhonghua-lee: yeah 15:41:43 zhonghua-lee:the 'create checkpoint' api will return a id of checkpoint if it success 15:42:30 saggi: who will check when ceeating manully? 15:42:39 the caller? 15:43:18 create checkpoint returns an ID from the start. Not only for success. 15:43:29 zhonghua-lee: yes 15:43:36 chenzeng: yeah, but it not really success until the status changed 15:43:37 Whoever calls is responsible for tracking 15:43:47 s/it/it is 15:44:01 zhonghua-lee: Even if it fails the scheduled op needs to log it. 15:45:00 saggi:but the number is not correct 15:45:25 zhonghua-lee:we can ignore the checkpoint which is created this time, just make sure the success checkpoint will not exceed 3. 15:45:25 checkpoint number 15:45:51 of course 15:46:14 so it seems like whoever it invokes "createcheckpoint" will check the checkpoint amount? 15:46:17 chenzeng: you mean we only care about the chenckpoints model numbers 15:47:00 ok, I agree 15:47:49 I'm not sure that manual checkpoints should count. But this is a matter of policy. 15:48:20 In any case, it has to be done in the operation engine. And the details are policy dependent :). 15:48:37 let me think it over 15:48:41 saggi: thanks 15:49:07 #topic Mark the source of checkpoint data 15:49:45 This puts us back with the suggestion of having user defined MD on the checkpoints. 15:50:01 It's fine by me as long as it can only be set on checkpoint creation and can't be modified. 15:50:29 chenying sumbit this topic. 15:50:42 I think it's just for record 15:50:56 This means that scheduled operations can just add an MD key ("CHECKPOINT_SOURCE": "SCHEDULED_OPERATION-123") 15:51:21 saggi: like that. 15:51:21 If it doesn't have this we can assume it was manual or some other source that doesn't wish to identify. 15:51:52 similar to custom volume MD in cinder 15:52:10 add a parameter in the createcheckpoint interface 15:52:29 CHECKPOINT_SOURCE: Scheduled/Now 15:52:36 no 15:52:41 ? 15:52:50 we just add the ability to add any user metadata. 15:53:08 and use the convention for 'smaug-checkpoint-source' to mark the source 15:53:24 if it's missing we assume manual since the scheduled operation will add it 15:53:40 and we would recommend other tools to add their own name in the entry 15:53:52 we need a proper blueprint for this though 15:54:09 I'll write one tomorrow. 15:54:13 saggi: +1 15:54:15 We could comment on that. 15:54:44 ok. we could add the checkpoint source into metadata 15:54:50 :) 15:54:51 yes 15:55:02 We'll continue this on the blueprint when I put it up. 15:55:13 saggi:great 15:55:28 saggi: thanks 15:55:31 #topic open discussion 15:55:48 xyang1: You had something you wanted to discuss 15:55:54 saggi: yes 15:56:14 saggi: about the discussions on cinder replication spec 15:56:35 saggi: We talked about it at our mid cycle last week 15:56:42 Yes 15:57:04 so the suggestion is fir smaug team to submit another spec about this requirement 15:57:20 xyang1: Instead of the current one? 15:57:23 also we like to have an irc meeting to discuss 15:58:14 xyang1: Sure, do you want to do it on the Cinder weekly spot or should we do it out of band? 15:58:17 saggi: the one I am working on is cinder replication group, you should submit another spec on hide namespace 15:58:33 xyang1: Sure 15:58:45 saggi: we could probably add an item to cinder meeting 15:59:10 saggi: if it runs over, we can schedule a separate one to follow up 15:59:24 I could try and have something ready for tomorrow's IRC 15:59:29 It's not complicated 15:59:34 sure 16:00:07 can you add an item to the meeting, I can add it too 16:01:02 hi 16:01:12 saggi: ? 16:01:20 time out. 16:01:24 I have a problom with my network. 16:01:37 * saggi is looking for the meeting wiki 16:02:18 Found it 16:02:42 xyang1: I'll add it now and update tomorrow with an etherpad link for the first bp draft 16:02:48 great 16:03:19 xyang1: So we'll pick it up tomorrow 16:03:26 sure 16:04:10 good night 16:04:17 Goof meeting 16:04:22 Thanks everybody 16:04:26 #endmeeting