*** openstack has joined #openstack-smaug | 00:52 | |
*** chenzeng has quit IRC | 01:15 | |
*** c00281451_ has joined #openstack-smaug | 01:16 | |
*** gampel has joined #openstack-smaug | 06:57 | |
openstackgerrit | Merged openstack/smaug: basic API service https://review.openstack.org/247440 | 07:12 |
---|---|---|
*** yinweiishere has joined #openstack-smaug | 07:30 | |
x00350071 | welcome yinwei | 07:33 |
*** x00350071 is now known as edison | 07:33 | |
chenying_ | welcome. | 07:33 |
yinweiishere | thanks! | 07:34 |
openstackgerrit | Eran Gampel proposed openstack/smaug: Initial devstack script https://review.openstack.org/253233 | 07:34 |
yinweiishere | it's my honor to join you guys | 07:34 |
zhonghua-lee | welcome | 07:51 |
chenying_ | hi saggi Good morning. | 08:03 |
openstackgerrit | Merged openstack/smaug: Initial devstack script https://review.openstack.org/253233 | 08:12 |
*** gampel has quit IRC | 08:19 | |
saggi | chenying_: good morning | 08:33 |
chenying_ | Hi saggi I note that class Operation was changed to be extendable. Does the Operation API need to be changed? | 08:46 |
saggi | chenying_: Yes | 08:53 |
saggi | it's completely different now. Since creating an Operation Would not longer start it. It's a definition. | 08:55 |
c00281451_ | saggi:so when to execute the operation? | 09:00 |
*** c00281451_ is now known as cheneng | 09:00 | |
*** cheneng is now known as chenzeng | 09:00 | |
saggi | chenzeng: When it is triggered. When the trigger executes all the scheduled operations are executed. | 09:04 |
saggi | The operation will perform some action depending on their type | 09:04 |
saggi | But unlike the old design the can be invoked multiple times. They will just repeat the operation. Which means they will create another checkpoint or restore from the same checkpoint to the same target, etc. | 09:05 |
saggi | They define the operation instead of being it | 09:05 |
*** openstack has joined #openstack-smaug | 09:07 | |
chenying_ | Do you mean that we do not need manual operation? All the operations are executed using ScheduledOperation restapi? | 09:08 |
chenying_ | the old design when a Operation api is called the operation will start immediately. | 09:12 |
saggi | Yes, things are less coupled. To immediately create a checkpoint you need to create a new checkpoint object through REST. To immediately delete a Checkpoint you need to just delete it. Operations are just cached definitions to be able to do those things in a scheduled manner. | 09:15 |
*** gampel has joined #openstack-smaug | 09:18 | |
gampel | welcome yinwei | 09:18 |
*** chenying has joined #openstack-smaug | 09:19 | |
*** chenying_ has quit IRC | 09:21 | |
gampel | we landed the two patches today Api and devstack you could install the project via devstack | 09:22 |
gampel | so you could build the project via devstack now | 09:22 |
gampel | git clone https://git.openstack.org/openstack-dev/devstack | 09:22 |
chenzeng | greate | 09:22 |
edison | ^-^ | 09:22 |
gampel | cp ../smaug/devstack/local.conf.sample local.conf ; ./stack.sh | 09:22 |
*** edison is now known as xiangxinyong | 09:23 | |
*** openstackgerrit has quit IRC | 09:32 | |
*** openstackgerrit has joined #openstack-smaug | 09:32 | |
chenying | Hi saggi I have a another question. how to define the operation database table? you know that the old design wo only need define one table opertion to include all ActionType opertions. | 09:33 |
chenying | still define one table question include all ActionType opertions parameters? | 09:36 |
*** saggi has quit IRC | 09:45 | |
*** openstackgerrit has quit IRC | 10:02 | |
*** openstackgerrit has joined #openstack-smaug | 10:02 | |
*** saggi has joined #openstack-smaug | 10:16 | |
openstackgerrit | Eran Gampel proposed openstack/smaug: First patch of the API documentation need to be aligned with our latest changes After alignment all the images will be adjusted https://review.openstack.org/255211 | 11:31 |
xiangxinyong | Hello saggi | 12:10 |
xiangxinyong | ping saggi | 12:11 |
saggi | hello xiangxinyong | 12:18 |
xiangxinyong | Will the create operation of Rest API be seprated into lots of API? | 12:25 |
xiangxinyong | for example. Create Protect Operation is a api, Create Restore Operation is a api and Create Delete Operation is a api? | 12:26 |
saggi | no | 12:26 |
saggi | You will use a type | 12:26 |
saggi | similar to how triggers are created | 12:26 |
xiangxinyong | OK. We Can use the same API, but we can distinguish them by operation type. | 12:28 |
xiangxinyong | differenet operation type has different paramters? | 12:28 |
saggi | yes | 12:30 |
xiangxinyong | OK | 12:30 |
xiangxinyong | Also how to define the operation database table? | 12:30 |
xiangxinyong | you know that the old design we only need define one table opertion to include all ActionType opertions. | 12:31 |
saggi | yes | 12:31 |
saggi | it will have to be similar to how we do triggeres | 12:31 |
xiangxinyong | Understood. ^-^. | 12:31 |
xiangxinyong | It means we still need one operation table at present? | 12:32 |
*** saggi has quit IRC | 12:38 | |
*** gampel has quit IRC | 12:38 | |
*** oshidoshi has quit IRC | 12:39 | |
*** gampel has joined #openstack-smaug | 12:41 | |
*** saggi has joined #openstack-smaug | 12:51 | |
*** xiangxinyong456 has joined #openstack-smaug | 12:59 | |
xiangxinyong456 | hi saggi, we see that there are some directory in the bank like : <checkpoint_id>/<definition_id>/plugindata | 13:02 |
saggi | yes | 13:02 |
xiangxinyong456 | for example in the swift, one bank is one swift container. | 13:03 |
saggi | yes, but you can name files like <checkpoint_id>/<definition_id>/plugindata/blah.json | 13:04 |
saggi | so it's ok | 13:04 |
saggi | it doesn't really need to be directories | 13:04 |
saggi | it's just a way for us to namespace all the files | 13:04 |
xiangxinyong456 | ok. but can the swift use / in a object name? | 13:05 |
saggi | yes. http://docs.openstack.org/developer/swift/api/object_api_v1_overview.html | 13:06 |
saggi | And if the bank doesn't allow some chars it will have to just escape them some way. | 13:07 |
xiangxinyong456 | ok. a swift object name length can not greater than 256 | 13:07 |
xiangxinyong456 | is this right? | 13:08 |
xiangxinyong456 | ItemMaximum valueNotes | 13:09 |
xiangxinyong456 | Number of HTTP headers90 | 13:09 |
xiangxinyong456 | Length of HTTP headers4096 bytes | 13:09 |
xiangxinyong456 | Length per HTTP request line8192 bytes | 13:09 |
xiangxinyong456 | Length of HTTP request5 GB | 13:09 |
xiangxinyong456 | Length of container names256 bytesCannot contain the / character. | 13:09 |
xiangxinyong456 | Length of object names1024 bytesBy default, there are no character restrictions. | 13:09 |
xiangxinyong456 | oh i think i find the answers by your given link | 13:10 |
xiangxinyong456 | ^-^ | 13:12 |
saggi | we use about 100 chars for namespacing. That leaves us more than enough for the pulgin data. | 13:13 |
xiangxinyong456 | OK. we think there are some informations like source info and targetinfo in the plugin data,is it? | 13:16 |
xiangxinyong456 | source info and target info and so on | 13:16 |
saggi | Everything the pulgin needs for restore | 13:17 |
saggi | They can save how many files they want and use whatever format. | 13:17 |
saggi | But we would recommend using json of course. | 13:17 |
xiangxinyong456 | good experience. | 13:18 |
xiangxinyong456 | our teammate zengyingzhe will go to israel tommorrow. | 13:24 |
xiangxinyong456 | it is our pleasure to work with you and eran | 13:26 |
*** chenying has quit IRC | 13:29 | |
*** chenying has joined #openstack-smaug | 13:30 | |
*** xiangxinyong456 has quit IRC | 13:35 | |
*** zhonghua-lee has quit IRC | 13:40 | |
*** zhonghua-lee has joined #openstack-smaug | 13:41 | |
*** gsagie has joined #openstack-smaug | 13:44 | |
*** gsagie has left #openstack-smaug | 13:44 | |
*** CrayZee has joined #openstack-smaug | 14:24 | |
*** CrayZee1 has joined #openstack-smaug | 14:31 | |
*** CrayZee1 has left #openstack-smaug | 14:43 | |
*** CrayZee1 has joined #openstack-smaug | 14:43 | |
*** CrayZee has quit IRC | 14:45 | |
*** xiangxinyong456 has joined #openstack-smaug | 14:46 | |
*** xiangxinyong456 has quit IRC | 14:47 | |
*** saggi has quit IRC | 16:00 | |
*** gampel has quit IRC | 17:02 | |
*** gampel has joined #openstack-smaug | 18:40 | |
openstackgerrit | Eran Gampel proposed openstack/smaug: API documentation [wip] Change-Id: I5606a17aff5a6fd0e4104ad5be2176c209909835 https://review.openstack.org/255211 | 18:44 |
*** gampel has quit IRC | 20:43 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!