Monday, 2016-06-13

*** zhurong has joined #openstack-smaug01:16
*** zhonghua-lee has joined #openstack-smaug01:20
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint basic function  https://review.openstack.org/32880701:23
*** chenhuayi has joined #openstack-smaug01:27
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint js function  https://review.openstack.org/32881001:32
openstackgerritchenpengzi proposed openstack/smaug-dashboard: implement checkpoint detail page  https://review.openstack.org/32881201:42
*** chenpengzi has joined #openstack-smaug01:58
*** zhangshuai has joined #openstack-smaug02:13
*** zhangshuai has quit IRC02:16
*** zhangshuai has joined #openstack-smaug02:25
*** chenhuayi_ has joined #openstack-smaug02:31
*** zhangshuai has quit IRC02:33
*** chenhuayi has quit IRC02:34
*** chenhuayi_ has quit IRC02:35
*** zhurong has quit IRC02:35
*** zhangshuai has joined #openstack-smaug02:37
*** chenpengzi has quit IRC02:44
*** chenpengzi has joined #openstack-smaug02:47
*** zhurong has joined #openstack-smaug02:48
*** chenpengzi has quit IRC02:56
*** chenpengzi has joined #openstack-smaug02:56
*** zhurong has quit IRC02:58
*** chenpengzi has quit IRC02:59
*** zhurong has joined #openstack-smaug02:59
openstackgerritMerged openstack/smaug-dashboard: Remove unused POT file  https://review.openstack.org/32684803:10
openstackgerritMerged openstack/smaug: Updated from global requirements  https://review.openstack.org/32547003:12
openstackgerritMerged openstack/smaug: Add fullstack tests of the resource protectables RESTAPI  https://review.openstack.org/32316603:13
*** zhangshuai has quit IRC03:49
*** zhangshuai has joined #openstack-smaug03:52
*** zhangshuai has quit IRC04:05
*** zhangshuai has joined #openstack-smaug04:21
*** zhangshuai_ has joined #openstack-smaug04:31
*** zhangshuai has quit IRC04:33
*** zhangshuai_ has quit IRC04:35
*** zhangshuai_ has joined #openstack-smaug04:40
*** zhangshuai_ has quit IRC04:45
*** zhangshuai_ has joined #openstack-smaug04:45
*** yuval has joined #openstack-smaug04:56
yuvalHello everybody04:57
yuvalping chenying__05:46
*** gsagie has joined #openstack-smaug05:57
gsagiechenying__ : just so you know, if you want to start working on Dragonflow we will always accept you!06:07
gsagieFor us, you are the missing Dragon06:08
*** gampel has joined #openstack-smaug06:15
gsagieyuval: same for you..06:16
gsagiewe have 2 Dragon spots06:17
chenying__Hi06:19
chenying__Hi <yuval> <gsagie> How are you?06:19
yuvalhey chenying__06:27
yuvalhow are you?06:27
chenying__Fine06:27
yuvalwould you mind if I'll make some minor English corrections to your patch?06:28
chenying__I have addressed you comment. If you want, you could update the usage example in this patch.https://review.openstack.org/#/c/327730/ I will abandon my patch.06:28
yuvalchenying__: no need for you to abandon the patch06:30
yuvalchenying__: just minor english corrections06:30
chenying__Ok You could update the patch.06:30
yuvalthanks :)06:31
openstackgerritYuval Brik proposed openstack/smaug: Add a usage example for smaug  https://review.openstack.org/32871206:32
openstackgerritMerged openstack/smaug-dashboard: make breadcrumb consistent with horizon  https://review.openstack.org/32873706:33
yuvalchenying__: btw, I saw you passed the cinder delete patch. I thought we said the actual deletion of checkpoints is done by the garbage collector06:34
chenying__actual deletion of checkpoints is done by the garbage collector is not included in that patch. I think a new patch should be submitted.06:34
gsagiechenying__: in Dragonflow no one will send english corrections of your patches, just saying!06:39
chenying__gsagie :Ok, I see.06:45
gsagiechenying__: just kidding :) yuval always tells me how you are very good contributor and i am trying to get some good patches to Dragonflow as well :)06:46
chenying__:)06:48
*** zhangshuai_ has quit IRC06:53
*** gsagie has left #openstack-smaug06:56
*** zengchen has quit IRC07:03
*** c00281451 has joined #openstack-smaug07:04
yinwei_computeryuval, sorry, I didn't get why checkpoints are deleted by GC07:25
yuvalconsider one protection service restoring from a checkpoint, while another deletes07:26
yuvalfor example07:26
yinwei_computerI recalled the initial design for GC is to collect only those zombie checkpoints07:26
yuvalwhat is a zombie checkpoint?07:26
yuval(does it look for brains to eat? :) )07:27
yinwei_computerfor your case, the checkpoint is not allowed to be deleted while it's restoring07:27
yinwei_computerthat's why we put restore status in checkpoint, same as cinder backup07:27
yuvaldidn't we already agree that we don't put a restore status in the checkpoint?07:28
yinwei_computerbut even we have restore to maintain this status, we still need API service to do some status checking07:28
yinwei_computeryou could refer the lease design doc07:29
yuvalI know it, can't see how it is related07:29
yinwei_computerwhere we described which case should be handled by API status checking, while which are handled by lease timedout and GC07:29
yuvalyinwei_computer: wait a second. regarding the 'protecting' status in checkpoint - do we agree that such status should not exist?07:34
yinwei_computerno07:35
yinwei_computerwhy07:35
yuval1. because checkpoints are immutable07:35
yinwei_computerprotecting is valid, I agree to move restore status somewhere else.07:35
yinwei_computercheckpoints are immutable only when it becomes available07:35
yuval2. what if two restores happen from the same checkpoint? who decides when to turn the status back to 'available'?07:35
yinwei_computerprotecting, not restoring07:36
yinwei_computerthe status is protecting->available->deleting->deleted07:36
yuvalI meant 'restoring', my bad07:36
yinwei_computerok07:36
yinwei_computernp07:36
yinwei_computerwe're on the same page then07:37
yuvalyinwei_computer: wait a second. regarding the 'restoring' status in checkpoint - do we agree that such status should not exist?07:37
yuval(sorry for that)07:37
yinwei_computeryes, I agree to move restoring to restore object07:37
yinwei_computerthat's ok.07:37
yuvalgreat07:37
yuvalso, how do we prevent deletion of a checkpoint that is currently restoring?07:37
yinwei_computerzombie checkpoints are those protecting checkpoints which actually hang07:38
yinwei_computeryes, that checking work could be done by API07:38
yinwei_computerand we can make decision in frontend request handling07:38
yinwei_computerI don't see the point to have GC check all checkpoints in background07:39
yuvalwhat if a restore hangs? that no one can delete the checkpoint?07:39
yuval*then no one07:39
yinwei_computerthen it looks to me that we need lease for restore as well.07:39
yuvalOk, I understand you07:40
yinwei_computeronly maintain status in checkpoint seems much simpler :(07:40
yuvalbut it doesn't work well for multiple concurrent restores07:41
yinwei_computerhmm, how does cinder backup work?07:41
yinwei_computerwhich looks to me the same :)07:42
yinwei_computernp07:43
yinwei_computerwe could have restore to keep lease on checkpoint as well07:44
yinwei_computerso the lease becomes to reference instead of 0/107:44
*** yamamoto_ has joined #openstack-smaug07:44
yinwei_computerand delete checkpoint rpc will fail if the lease reference is non zero.07:44
yinwei_computerGC will check checkpoint lease existence to update zombie protecting checkpoints to error status and thus delete them; while GC will also verify zombie restoring restores lease reference on checkpoint, and thus update restore status to error and recycle restores.07:48
yinwei_computerhow about this?07:48
yinwei_computerGC only check zombie checkpoint and restore, and recycle them.07:49
yinwei_computerdelete checkpoint validity is maintained both by checkpoint status and lease references.07:49
yinwei_computeryuval?07:49
yinwei_computerwhat do you think, chenying__07:50
* yuval reading07:50
*** saggi1 has joined #openstack-smaug07:52
yuvalyinwei_computer: cinder backup has a 'restoring' status, so I'm not sure it is a good example07:53
yuvalyinwei_computer: the plus of marking the checkpoint as 'deleted' and delete later using GC, is that delete is immediate, and the cleanup is done later07:54
yuvalif restore takes a lease - this inherently means there will be only 1 concurrent restore, which takes us back to the simpler approach of setting 'protecting' status in the checkpoint07:55
chenying__I have missed lots of discussion.07:57
yinwei_computeryuval, each restore takes one lease07:58
yinwei_computerto check if the checkpoint is deleatable, we check the lease dir is empty or not07:59
yinwei_computereven if one restore is on-going, the lease dir is not empty, and the lease reference on the checkpoint is not none07:59
yinwei_computerwait for a moment, let me see how to map this to current lease mechanism08:01
*** c00281451 is now known as zengchen08:07
chenying__yuval Do we realy need actual deletion of checkpoints? If we delete checkpoint, we can not get the protection history log?08:07
yuvalchenying__: didn't understand you08:11
yuvalyinwei_computer: deleting the checkpoint can immediately turn the checkpoint status to 'deleting'. the GC will run immediately or periodically (doesn't really matter for now). it will check if there is a restore lease for this checkpoint. once there is not, it will perform the actual deletion of the checkpoiint08:13
saggi1chenying__: We can leave the index file, but this might end up clogging up the object store. We might just want to put history in the local database.08:15
chenying__I mean the index file or the checkpoint records.08:16
saggi1if we keep it in the bank it's the checkpoint index file if we only keep the db records than the record.08:19
openstackgerritMerged openstack/smaug: Add list function to scheduled operation log  https://review.openstack.org/32364808:31
chenying__Saggi What about the operation_log API? Can we record the protection action log to operation_log db. Now we only can get the protection history log from the checkpoint data.08:33
zengchenhi, guys, please review thses two patches, thanks! https://review.openstack.org/323722, https://review.openstack.org/30989808:33
*** zhangshuai has joined #openstack-smaug08:41
openstackgerritzhangshuai proposed openstack/smaug-dashboard: create protection plan js function  https://review.openstack.org/32876509:08
openstackgerritzhangshuai proposed openstack/smaug-dashboard: implement protection plan detail page  https://review.openstack.org/32876609:13
yinwei_computeryuval, I mean we can have protection service+API service to accept or refuse delete as the first layer. If they find the checkpoint is delete-able,  then go ahead delete it. Otherwise, just refuse it.09:26
yinwei_computerThe case for the checkpoint NOT delete-able, it could be protecting, reference>0 (restoring).09:27
yinwei_computerwhat GC does is to check those NOT delete-able checkpoints and verify if thery're actually not delete-able.  It will correct the status of checkpoint and restore.09:28
yinwei_computerNot sure if we will have GC to recycle those error restores and checkpoints.  Or we only have GC correct their status and leave user to decide delete them or not.09:29
yinwei_computersay, user tries to delete checkpoint at t1, but actually it is protecting or udner restoring.  Shall we just refuse delete? or we need persist the delete 'intent' and wait to delete the checkpoint until all references gone (GC to recycle it)?09:33
yinwei_computerper my understanding, I prefer option 1.  Just refuse it to tell it's under use.  Have a try next time.  We will correct wrong status(if there's any) and allow you to delete next time.  Here we use GC to correct status.09:34
yinwei_computersaggi1 and yuval: pls. check the nova protection plugin and list checkpoints patch09:35
openstackgerritYuval Brik proposed openstack/smaug: Fix default provider config for fullstack  https://review.openstack.org/32892709:46
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint basic function  https://review.openstack.org/32880709:54
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint js function  https://review.openstack.org/32881009:55
openstackgerritchenpengzi proposed openstack/smaug-dashboard: implement checkpoint detail page  https://review.openstack.org/32881209:57
*** zhangshuai_ has joined #openstack-smaug10:00
*** zhangshuai has quit IRC10:00
*** zhurong has quit IRC10:03
*** zhangshuai_ has quit IRC10:06
*** zhangshuai_ has joined #openstack-smaug10:06
*** zhangshuai_ has quit IRC10:11
*** yamamoto_ has quit IRC10:19
*** yinwei_computer has quit IRC10:20
*** yinwei_computer has joined #openstack-smaug10:21
openstackgerritYuval Brik proposed openstack/smaug: Fix default provider config for fullstack  https://review.openstack.org/32892710:32
openstackgerritYuval Brik proposed openstack/smaug: devstackgaterc for controlling fullstack config  https://review.openstack.org/32894110:47
chenying__hi yuval11:01
openstackgerritYuval Brik proposed openstack/smaug: devstackgaterc for controlling fullstack config  https://review.openstack.org/32894111:27
yuvalchenying__: hey11:27
chenying__I note that you configure the config of swift_client in your patch. Does it work?11:29
yuvalchenying__: nope11:30
yuvalchenying__: on it11:30
*** yamamoto has joined #openstack-smaug11:33
*** zhurong has joined #openstack-smaug11:36
openstackgerritYuval Brik proposed openstack/smaug: Fix default provider config for fullstack  https://review.openstack.org/32892711:38
chenying__I plan to configure swift_client in devstack\plugin.sh. If it work, I need't submit the patch.11:38
yuvalchenying__: I didn't understand11:40
chenying__I plan to configure swift_client like this.11:41
chenying__            echo "Configuring Swift Client"11:41
chenying__            # Configure Swift Client11:42
chenying__            iniset $SMAUG_PROVIDER_CONF swift_client swift_auth_url11:42
chenying__                ${KEYSTONE_AUTH_PROTOCOL}://${KEYSTONE_AUTH_HOST}:5000/v2.0/11:42
chenying__            iniset $SMAUG_PROVIDER_CONF swift_client swift_auth_version 211:42
chenying__            iniset $SMAUG_PROVIDER_CONF swift_client swift_user $admin_user11:42
chenying__            iniset $SMAUG_PROVIDER_CONF swift_client swift_key $SERVICE_PASSWORD11:42
chenying__            iniset $SMAUG_PROVIDER_CONF swift_client swift_tenant_name $admin_user11:42
yuvalgreat, I was about to do the same11:43
*** yamamoto has quit IRC11:44
yuvalchenying__: you can submit that if you like. I suggest that you wait for the fullstack to pass successfully on https://review.openstack.org/328927 , I will then abandon it11:45
chenying__Ok I will submit it soon.11:47
yuvaljust note that the swift_user is 'swift', the password is 'secretservice' and the tenant name is 'service'11:49
yuvalchenying__: these are the configuration currently set in the patch I've submitted. If fullstack passes, you should use them11:50
yuvalchenying__: could you review my docs patch: https://review.openstack.org/327730 ?11:51
chenying__I reviewed it yestoday. I think it is good. It can be merged.11:53
*** yamamoto has joined #openstack-smaug11:53
yuvalchenying__: and this one https://review.openstack.org/32894111:55
chenying__ yuval The defaut password of swift in jenkins devstack is secretservice?  Where these vaules come from?12:06
chenying__If these config are fixed values, I think your patch is better.12:07
*** yamamoto has quit IRC12:13
zengchenyuval:could you please review thses two patches at your free time, they are important for operation engine. thanks! https://review.openstack.org/323722, https://review.openstack.org/309898.12:16
chenying__ping saggi112:17
chenying__I note that these is a comment about the mission of smaug in the big-tent patch. Have you seen it?12:19
chenying__But I don't think the description is fine.12:22
saggi1chenying__: I'll fix the description12:26
openstackgerritchenying proposed openstack/smaug: Add Swift client configuration  for provider config  https://review.openstack.org/32898212:28
yuvalchenying__: credentials I gave you didn't pass12:30
chenying__swift_user $admin_user swift_key $SERVICE_PASSWORD swift_tenant_name $admin_user Have you test these values?12:31
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint basic function  https://review.openstack.org/32880712:33
chenying__could you help me do a test about the patch? The network is slow. Installing a devstack need several hours here.12:35
openstackgerritchenpengzi proposed openstack/smaug-dashboard: restore checkpoint js function  https://review.openstack.org/32881012:35
chenying__https://review.openstack.org/32898212:35
openstackgerritYuval Brik proposed openstack/smaug: docs: update mission statement, diagram, toc  https://review.openstack.org/32773012:38
yuvalchenying__: it depends on the credentials of devstack-gate12:38
yuvalchenying__: see openstack-infra/devstack-gate12:39
yuvaldevstack-vm-gate.sh12:39
openstackgerritchenpengzi proposed openstack/smaug-dashboard: implement checkpoint detail page  https://review.openstack.org/32881212:40
yuvalchenying__: (btw, try to mention me when you message, so I could see the notification)12:41
chenying__yuval:  I configure the swift client using keystone Auth values.12:41
yuvalchenying__: are you sure these are the keystone values for the gate's devstack?12:42
yuval(look here for example: http://logs.openstack.org/27/328927/3/check/gate-smaug-dsvm-fullstack-nv/0ee34c8/logs/devstack-early.txt.gz )12:42
chenying__yuval :  Yes. You can see the function configure_auth_token_middleware in the file devstack\lib\keystone.12:44
chenying__yuval. But we also need do a test about it.12:45
*** yamamoto has joined #openstack-smaug12:46
*** yamamoto has quit IRC12:47
yuvalchenying__: patch failed12:53
*** yamamoto has joined #openstack-smaug12:56
*** yamamoto has quit IRC12:57
*** yamamoto has joined #openstack-smaug13:13
*** yamamoto has quit IRC13:16
*** yamamoto has joined #openstack-smaug13:28
openstackgerritYuval Brik proposed openstack/smaug: Fix default provider config for fullstack  https://review.openstack.org/32892713:29
*** yamamoto has quit IRC13:31
*** yamamoto has joined #openstack-smaug13:32
*** yamamoto has quit IRC13:48
*** gsagie has joined #openstack-smaug13:50
gsagiezengchen!!!13:50
*** yamamoto has joined #openstack-smaug13:54
*** yamamoto has quit IRC14:24
*** zhurong has quit IRC14:25
*** yamamoto has joined #openstack-smaug14:25
*** yamamoto has quit IRC14:28
*** yamamoto has joined #openstack-smaug14:32
*** yamamoto has quit IRC14:35
openstackgerritYuval Brik proposed openstack/smaug: Fix default provider config for fullstack  https://review.openstack.org/32892714:40
*** yamamoto has joined #openstack-smaug14:49
*** yamamoto has quit IRC14:53
*** yuval has quit IRC14:55
*** yamamoto has joined #openstack-smaug14:56
*** yamamoto has quit IRC15:05
*** yamamoto has joined #openstack-smaug15:07
*** yamamoto has quit IRC15:10
*** yamamoto has joined #openstack-smaug15:12
*** yamamoto has quit IRC15:17
*** xiangxinyong has quit IRC15:46
*** xiangxinyong has joined #openstack-smaug15:46
*** saggi1 has quit IRC16:07
*** smcginnis has quit IRC16:58
*** smcginnis has joined #openstack-smaug16:58
*** saggi has joined #openstack-smaug17:19
*** saggi has quit IRC17:26
openstackgerritOpenStack Proposal Bot proposed openstack/smaug-dashboard: Updated from global requirements  https://review.openstack.org/32303221:56

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