Tuesday, 2019-11-19

*** goldyfruit has joined #openstack-karbor00:39
*** goldyfruit has quit IRC01:43
*** goldyfruit has joined #openstack-karbor02:41
*** goldyfruit has quit IRC04:00
*** sri_ has joined #openstack-karbor05:38
sri_jiaopengju, hi05:39
sri_jiaopengju, when i try to restore from backup i am getting error's from cinder volume backup saying it's not able to find volume-id-snap06:14
sri_jiaopengju, i am using ceph as cinder backup driver06:15
sri_jiaopengju, is cinder backup driver should be karbor ?06:15
openstackgerritinspurericzhang proposed openstack/karbor master: Replace git.openstack.org with opendev.org  https://review.opendev.org/69493408:16
jiaopengjucinder backup driver is independent with karbor09:52
jiaopengjukarbor do not concern which driver that cinder backup use09:53
jiaopengjusri_, is there some errors in karbor protection log when you do restore?09:53
sri_jiaopengju, there no error message in protection log09:54
sri_jiaopengju, but volume goes error_restoring state09:55
jiaopengjuthis means the request has been sent to cinder, but cinder failed to do the restore09:55
sri_jiaopengju, ack, I will look into it09:56
sri_jiaopengju, how do i setup multi site setup for karbor ?09:56
sri_jiaopengju, I've two regions so region-two karbor point to region-one database ?09:58
jiaopengjumulti site means the checkpoint store in the same bank, not using the same db10:06
sri_jiaopengju, so if both sites pointing to same bank we can do the restore ?10:07
sri_Yesterday you asked me i am using same DB ? that's way i am confused10:08
jiaopengjusri_,  if both sites pointing to same bank we can do the restore10:45
jiaopengjudb only store the plan, and secheduled strategy, etc. checkpoints are stored in bank10:46
sri_jiaopengju, understood10:46
sri_jiaopengju, can you check the this process is this look ok ? http://paste.openstack.org/show/786332/10:47
sri_the complete restore process10:47
jiaopengjuwhy I asked if you are using same DB, is because you said 'when we create a proction paln in one openstack-A it's automatically shows'sup in openstack-B !'10:47
jiaopengjuare you using cinder snapshot plugin?10:49
sri_jiaopengju, Ok, i mean both openstack-A and openstack-b point to same Bank ! i think we miss understood10:50
sri_no i'm not using cinder plugin10:50
jiaopengjuplease show me your provider configuration file, I can not find it in the history message10:51
sri_jiaopengju, http://paste.openstack.org/show/786334/10:52
jiaopengjucan you show me the result of 'cinder backup-list' after the checkpoint was created successfully10:55
sri_jiaopengju, http://paste.openstack.org/show/786335/10:56
jiaopengjucan you restore the volume from cinder backup after you delete the server and the volume but not using karbor10:58
sri_jiaopengju, ok let me do10:59
sri_it's failing with same error Error Restoring11:00
jiaopengjuyou can see the log file of cinder backup, to find what happened11:01
sri_but when create backup of volume without karbor i can restore successfully11:01
sri_jiaopengju, cinder backup logs http://paste.openstack.org/show/786336/11:02
jiaopengjuI see11:03
jiaopengjuThis means you are using snapshot to do backup, but you delete the base volume, this will make the snapshot can not be use11:04
sri_jiaopengju, how can i fix that ?11:05
sri_jiaopengju, I've tried to restore without deleting volume but still same issue11:06
jiaopengjuare you using the cinder version from community?11:06
sri_jiaopengju, yes11:06
jiaopengju I've tried to restore without deleting volume but still same issue ----------- in this case, what happened?11:06
jiaopengjuplease show me the configuration file of cinder backup11:07
sri_jiaopengju, cinder backup config file http://paste.openstack.org/show/786337/11:08
jiaopengjusri_, https://github.com/openstack/cinder/blob/master/cinder/backup/drivers/ceph.py#L94611:16
jiaopengjuplease see this: If the source volume is an RBD we will attempt to do an11:16
jiaopengju        incremental/differential backup, otherwise a full copy is performed.11:16
jiaopengju        If this fails we will attempt to fall back to full copy.11:16
jiaopengjuthe source volume and the backup backend are both ceph rbd, so it will using snapshot. In this case, if you delete the source volume, the backup can not be restored11:17
jiaopengju 'I've tried to restore without deleting volume but still same issue' ----------- in this case, what happened?11:18
jiaopengjuI want to know what happened in this case11:18
sri_jiaopengju, same error ImageNotFound: [errno 2] error opening image volume-xxxxxxxbackup.base at snapshot None11:18
sri_jiaopengju, let me do the quick test now11:19
sri_jiaopengju, this time i keep the volume but same issue http://paste.openstack.org/show/786339/11:31
sri_jiaopengju, this is only happening when karbor creating the backup11:32
jiaopengjucan you check if it work without using karbor? only do backuo and restore in cinder11:32
sri_jiaopengju, i did it works11:33
jiaopengjulet me see11:35
sri_jiaopengju, http://paste.openstack.org/show/786341/11:38
jiaopengjucan you do annotation from line 244 to 250 in this py file? then restart the karbor protection.https://github.com/openstack/karbor/blob/master/karbor/services/protection/protection_plugins/volume/cinder_protection_plugin.py#L24411:39
jiaopengjuI think i have find out the reason11:39
jiaopengjuthis seems to be a bug if using ceph driver11:39
jiaopengjufor cinder backup.11:40
jiaopengjuyou can report it on storyboard, and we will try to fixed it11:40
sri_jiaopengju, i am running karbor in container i need find out how to make change to python file11:41
sri_jiaopengju, sure i will file bug in storyboard11:41
sri_jiaopengju, is there any quick fix i can do ?  " can you do annotation from line 244 to 250 in this py file? then restart the karbor protection.https://github.com/openstack/karbor/blob/master/karbor/services/protection/protection_plugins/volume/cinder_protection_plugin.py#L244"11:42
sri_is that it ?11:42
jiaopengjumaybe, karbor will first do snapshot for the volume and then do backup from the snapshot, after all finished, will delete the snapshot. But in ceph rbd backend of cinder backup, the snapshot maybe can not be deleted11:44
jiaopengjuyou can change using other cinder backup driver11:45
sri_jiaopengju, sure let me try11:45
jiaopengjufor example swift interface11:46
jiaopengjuhttps://github.com/openstack/cinder/tree/master/cinder/backup/drivers11:46
jiaopengjuhere are all the supported drivers11:46
sri_jiaopengju, I don't have swift running in my env but i will try setup swift and give it a try11:47
jiaopengjuhttps://github.com/openstack/cinder/blob/master/cinder/backup/drivers/posix.py11:47
jiaopengjuposix maybe easier if you only use it for testing11:48
sri_jiaopengju, ok let me test that11:48
jiaopengjuyou can config the file path for cinder backup, many examples on the internet :)11:49
sri_jiaopengju, ok i will give it try11:50
jiaopengjusri_, can you tell me where you are from and which company if it's convenient? :)11:51
sri_I am currently in Nirobi kenya11:51
sri_the company I work for Sybyl11:52
jiaopengjucool11:52
sri_originally i am from India11:52
jiaopengjuif you have some thoughts or new ideas about karbor, please let me know11:53
jiaopengjuMaybe I can't reply IRC message in time. You can email me jiaopengju@cmss.chinamobile.com or jiaopengju@qq.com11:53
sri_jiaopengju, sure I've just started looking into karbor i am happy to help11:54
jiaopengjuwelcome :)11:54
sri_i really appreciate your work, i know you're fighting alone with Karbor war11:55
jiaopengjuthanks :)11:56
sri_jiaopengju, this this looks right ? i've changed cinder backup driver to posix http://paste.openstack.org/show/786342/12:01
jiaopengjumaybe not right, PosixBackupDriver should be contained in the driver name12:02
sri_jiaopengju, yes you're right "backup_driver = cinder.backup.drivers.posix.PosixBackupDriver"12:03
sri_jiaopengju, cinder-backup container is not happy :(12:06
sri_jiaopengju, i think it's late for you, we will catch up tomorrow12:08
*** goldyfruit has joined #openstack-karbor12:18
*** goldyfruit has quit IRC13:08
*** sri_ has quit IRC13:45
*** goldyfruit has joined #openstack-karbor14:19
*** goldyfruit_ has joined #openstack-karbor14:28
*** goldyfruit has quit IRC14:30
*** goldyfruit___ has joined #openstack-karbor19:55
*** goldyfruit_ has quit IRC19:57
*** openstackgerrit has quit IRC20:35
*** goldyfruit_ has joined #openstack-karbor20:58
*** goldyfruit___ has quit IRC21:00
*** goldyfruit_ has quit IRC23:59

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