Thursday, 2016-04-14

*** zhongjun___ has joined #openstack-smaug02:06
*** zhongjun__ has quit IRC02:09
*** zhongjun___ has quit IRC03:10
*** zhongjun_ has joined #openstack-smaug03:12
*** yinweiishere has quit IRC04:04
*** yinweiishere has joined #openstack-smaug04:04
*** zhongjun_ has quit IRC04:32
*** zhongjun_ has joined #openstack-smaug04:32
openstackgerritMerged openstack/smaug: Implement Graph pack and unpack  https://review.openstack.org/30416005:12
*** zhangshuai has joined #openstack-smaug06:09
zhangshuaii am here06:12
xiangxinyong:)06:26
*** AndroUser has joined #openstack-smaug06:28
*** AndroUser is now known as cpz06:29
*** CrayZee has quit IRC06:36
*** yuval has joined #openstack-smaug06:41
*** cpz has quit IRC06:48
*** CrayZee has joined #openstack-smaug07:04
*** zhangshuai has quit IRC07:04
xiangxinyongyuval: Good morning07:56
*** gampel has quit IRC08:17
yuvalxiangxinyong: hey08:18
yuvalxiangxinyong: good afternoon :)08:19
xiangxinyongyuval: :)08:19
xiangxinyongyuval: I have a question about the resources in the checkpoint. could you help me?08:21
yuvalxiangxinyong: sure, what is it?08:21
xiangxinyongwhen we show the checkpoint details to the users. we will invoke a interface like this. https://etherpad.openstack.org/p/toyuval08:22
xiangxinyongyinweiishere told me that in a checkpoint the resources will be shown like a graph08:23
xiangxinyongDo you rember the dashboard i show you and eran?08:24
yuvalyes08:24
xiangxinyongat present, we show the resource in a checkpoint like a tree, not a graph08:25
xiangxinyongso i want to know about the data structure about the resources in a checkpoint08:26
yuvalsure, let me explain:08:26
yuvalfirst, a few definitions08:26
xiangxinyongafter this, i could decide how to show the resources in a checkpoint08:26
yuvala tree is an undirected graph with no cycles08:26
xiangxinyongand decide how to show the resources when the users launch a restore08:26
yuvalthe resources are represented using a directed graph. each node 'depends' (has children' on other nodes08:27
yuvalthis resource graph has no cycles, by our definition08:27
yinweiisherehi, guys08:28
yuvalthis means that our resources are represented in what is called a 'rooted tree'08:28
yuvalhey yinweiishere08:28
yinweiishereI think the difference between graph and tree is one node could have multiple parents in our directed graph08:29
xiangxinyongoh, the point is no cycles, is it right?08:29
yinweiisherebut tree doesn't08:29
yinweiishereif we show it in the format of tree, node with multiple parents will show multiple times in the tree?08:29
yuvalyinweiishere: this is correct, I discussed this issue with saggi08:30
yinweiishereso i suggest to present a graph instead of a tree in checkpoint08:31
xiangxinyongyinweiishere: it should like multiple extent in the python. a class extened multiple parent classes08:31
yuvalyinweiishere: can you give an example of a graph presentation in webui?08:31
yuval(by the way, in a directed tree, it is totally acceptable for a node to have 2 parents)08:32
yinweiisherewe could refer the presentation of network topology in horizon UI, which gives a good eg. on how to show a dependency graph08:32
yinweiishereactually I have sent one picture to xinyong and Eran08:32
yinweiishereI could send it to your mailbox.  your mailbox is?08:33
yuvalyuval@brik.org.il08:34
yinweiisheredone08:36
xiangxinyongyinweiishere: this resource graph has no cycles, by our definition08:37
yinweiisheresure08:37
yuvalby the way, multiple parents = not a tree, yinweiishere is correct08:37
yuvalmy bad08:37
yinweiishereit has no cycles, check directed path08:37
yinweiisherexiangxinyong, are you talking about the picture I shared to you?08:38
xiangxinyongyinweiishere: nope08:38
yinweiishereok08:38
yinweiishereyes, there's no cycle08:38
xiangxinyongyuval and yinweishere, if there's no cycle, i think it is ok by using a resource tree08:39
yinweiisherewhy?08:39
yuvalyinweiishere: got your mail08:40
xiangxinyonglike you say: <yinweiishere> if we show it in the format of tree, node with multiple parents will show multiple times in the tree?08:40
yinweiisheresay, 3 severs depend on the same image. If we show it through tree, this means you have to make 3 nodes for the image08:40
openstackgerritYuval Brik proposed openstack/smaug: Add croniter as requirement, devstack providersd  https://review.openstack.org/30566408:41
yinweiisherebut the 3 nodes are actually one resource08:41
yinweiisherethis looks confusing to me08:41
yinweiishereit's not explicit to show what resources we protect08:41
yinweiishereyuval, what do you think?08:42
yuvalyinweiishere: one minute08:42
yuvalyinweiishere: how would the graph look when we have, say, 100 or 200 servers, all depending on the same image?08:44
yuval(btw, please vote for: https://review.openstack.org/305664 , it blocks Smaug's devstack)08:45
yinweiishereso there will be 100 or 200 directed paths from server nodes to one image node08:45
yinweiisheremaybe not pretty in a graph :(08:46
*** gampel-cell has joined #openstack-smaug08:46
yuvalalso, what about hirearchy? say, I want to look at a 'closed' project, 'open' it, and view all of its child resources08:46
gampel-cellI agree with yuval I think it should be a tree08:47
xiangxinyongyinweiishere:yes. the checkpoint resource tree should be like the resource tree when we create a plan08:47
xiangxinyongwhen we create a plan, the dashboard will show a resouce tree, it should be possible to appeat the case "node with multiple parents"08:48
xiangxinyong appear the case "node with multiple parents"08:49
gampel-cellIncluding the newly auto dustcover resource s08:49
openstackgerritYuval Brik proposed openstack/smaug: Add croniter as requirement, devstack providersd  https://review.openstack.org/30566408:49
yuvalmaybe we can split the view into two: a list of concrete resources, and a dependency view, using a tree08:50
yuvalbut I'm not sure about that08:50
xiangxinyongyuval:hi, i make a comment into this patch. https://review.openstack.org/#/c/30566408:54
xiangxinyongyuval: please take a look at it. thanks08:55
yuvalxiangxinyong: thanks. editor is configured for spaces instead of tabs only in python, not bash scripts :\08:56
openstackgerritYuval Brik proposed openstack/smaug: Add croniter as requirement, devstack providersd  https://review.openstack.org/30566408:56
yinweiisherehmm, so the node with multi parents will appear multi times in a tree?08:56
yinweiishereor usually we don't show the dependency and it just looks like a list?08:57
yinweiishereyuval, hierachy is a 'has a/many' relationship08:57
yinweiisherewhile depedency is a dependent relationship08:58
yinweiisheredepends on what we want to show08:58
openstackgerritYuval Brik proposed openstack/smaug: Add croniter as requirement, devstack providersd  https://review.openstack.org/30566408:58
yuvalI have to go, I'll be back in an hour. I lean towards a tree view09:04
openstackgerritMerged openstack/smaug: Add croniter as requirement, devstack providersd  https://review.openstack.org/30566409:15
openstackgerritMerged openstack/smaug-dashboard: [Triggers] Submit create view function  https://review.openstack.org/30379509:48
openstackgerritMerged openstack/smaug-dashboard: [Triggers] Submit detail view function  https://review.openstack.org/30379909:48
openstackgerritMerged openstack/smaug-dashboard: [Protection Providers] Submit index view function  https://review.openstack.org/30397309:49
openstackgerritMerged openstack/smaug-dashboard: [Protection Providers] Submit detail view function  https://review.openstack.org/30398309:49
*** gampel-cell has quit IRC09:56
yuvalping yinweiishere10:28
yuvalping xiangxinyong10:28
openstackgerritYuval Brik proposed openstack/smaug: Fix serialized_meta in SwiftBankPlugin  https://review.openstack.org/30142710:43
xiangxinyongyuval: hello10:45
yuvalxiangxinyong: hey10:45
xiangxinyongyuval: :)10:47
yuvaldid you and yinweiishere continued the discussion?10:47
xiangxinyongnope10:48
xiangxinyongyuval: do you have some ideas?10:48
yuvaldo you think we should use a tree to represent the checkpoint resources?10:48
xiangxinyongi think it is ok10:48
yuvalthat means that the same resource can appear multiple times10:49
xiangxinyongyeah10:49
xiangxinyongthe resource will list all the dependency resouces10:50
xiangxinyongIt will be represent like this. https://review.openstack.org/cat/262264%2C15%2Cdoc/images/available_protectables.svg%5E010:56
xiangxinyongyuval: maybe we can split the view into two: a list of concrete resources, and a dependency view, using a tree11:02
xiangxinyongyuval: could you descript it more?11:02
*** chenying has joined #openstack-smaug11:13
*** chenying_ has quit IRC11:14
yuvalxiangxinyong: I'll try to make a mockup and send it to you11:32
yuvalping yinweiishere11:32
xiangxinyongyuval: thanks very much.11:34
*** CrayZee has quit IRC11:38
xiangxinyongyuval: do you mean like this. http://www.cnblogs.com/edisonxiang/p/5392651.html12:43
xiangxinyongyuval:  resources A B C is the selected resources.12:43
*** xiangxinyong456 has joined #openstack-smaug12:46
*** xiangxi3 has joined #openstack-smaug12:47
*** xiangxinyong456 has quit IRC12:47
*** xiangxinyong456 has joined #openstack-smaug12:49
*** xiangxi3 has quit IRC12:49
*** xiangxi37 has joined #openstack-smaug12:51
*** xiangxinyong456 has quit IRC12:51
*** xiangxinyong456 has joined #openstack-smaug12:57
*** xiangxi37 has quit IRC12:57
*** xiangxinyong456 has quit IRC12:57
yuvalxiangxinyong: not sure. it is kind of confusing the same resource twice13:05
yuvalxiangxinyong: what is your mail address?13:29
xiangxinyongyuval: xiangxingyong@qq.com13:53
xiangxinyongyuval: thanks13:53
*** dell has joined #openstack-smaug14:54
*** dell is now known as chenzeng14:54
chenzengyuval:are you there?14:55
yuvalchenzeng: yes14:55
chenzengyuval:great.14:55
chenzengyuval:gampel gives me a comment about using db directly in the Operation Engine.14:56
yuvalchenzeng: yes14:56
chenzengyubal:according to the original design, we can use DB in the Operation Engine.14:57
chenzengi don't know why can't use DB directly.14:59
chenzengif can not use, how to access db?14:59
chenzengwhat is your opinion?14:59
yuvalI'm about to head off, so I'll try to summarize: consider we have 3 types of services - api, protection, and operationengine. Each of these services can be separate, and each service should only access or change objects under its responsibility. we want to minimize the places where we use the db directly, and use api wrappers over it15:01
chenzengso, you agree with gampel, do you?15:03
chenzengbut, at right moment. we don't have a wraper or service offering the api of db.15:05
yuvalI spoke with him, and I think we can let this patch pass and change it to use the api latter15:06
chenzengdo we need to access db like nova which have a conductor service?15:06
yuvalNo need to hold this one off15:06
yuvalI really need to go, otherwise I'll miss my ride15:06
chenzengok.15:07
chenzengthankd.15:07
chenzengthanks.15:07
yuvalthank you :)15:07
yuvalsee you15:07
*** yuval has quit IRC15:07
*** chenzeng has quit IRC15:28
openstackgerritchenying proposed openstack/python-smaugclient: Remove the project_id in the url of smaugclient resource  https://review.openstack.org/30594315:38
openstackgerritchenying proposed openstack/smaug: Add name property to protectable instances model  https://review.openstack.org/30208617:02
*** gampel has joined #openstack-smaug17:16
openstackgerritchenying proposed openstack/smaug: Add show protectables instance endpoint  https://review.openstack.org/30214417:27
openstackgerritchenying proposed openstack/smaug: Add a field parameters to resource plans  https://review.openstack.org/30273017:31
openstackgerritchenying proposed openstack/smaug: The versioned object and db operation of operation_log  https://review.openstack.org/30421217:41
openstackgerritchenying proposed openstack/smaug: The RESTAPI of resource operation_logs  https://review.openstack.org/30456717:47
*** chenying_ has joined #openstack-smaug20:16
*** chenying has quit IRC20:19
*** gampel has quit IRC20:46
*** gampel1 has joined #openstack-smaug20:46
*** gampel1 has quit IRC20:49
*** gampel has joined #openstack-smaug20:49
*** gampel has quit IRC21:03
*** c00281451_ has quit IRC21:34
*** c00281451_ has joined #openstack-smaug21:35
*** chenying has joined #openstack-smaug21:52
*** chenying_ has quit IRC21:55
*** yinweiishere has quit IRC21:58
*** yinweiishere has joined #openstack-smaug21:59
*** yuval has joined #openstack-smaug22:15
*** chenying has quit IRC22:29
*** chenying has joined #openstack-smaug22:30
*** chenying_ has joined #openstack-smaug22:58
*** chenying has quit IRC23:02
*** yuval has quit IRC23:44

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