Wednesday, 2016-03-30

*** ddieterly has joined #openstack-freezer00:04
*** ddieterly is now known as ddieterly[away]01:11
*** ddieterly[away] is now known as ddieterly01:11
*** ddieterly is now known as ddieterly[away]01:12
*** EinstCrazy has joined #openstack-freezer01:13
*** EinstCrazy has quit IRC01:34
*** EinstCrazy has joined #openstack-freezer01:34
*** ddieterly[away] has quit IRC02:12
*** EinstCrazy has quit IRC04:50
*** EinstCrazy has joined #openstack-freezer05:08
*** EinstCra_ has joined #openstack-freezer05:59
*** EinstCrazy has quit IRC06:02
*** daemontool has joined #openstack-freezer06:37
daemontoolMorning06:49
*** daemontool has quit IRC07:30
*** daemontool has joined #openstack-freezer07:41
*** reldan has joined #openstack-freezer07:41
daemontoolreldan,  ping07:45
*** EinstCra_ has quit IRC08:15
*** EinstCra_ has joined #openstack-freezer08:15
*** reldan has quit IRC08:24
daemontoolslashme,  ping08:31
*** reldan has joined #openstack-freezer08:49
reldandaemontool: Hi! How are you?08:49
daemontoolall good08:53
daemontoolfor the restore...08:53
daemontoolI think I need to add a small header at the beginning of the binary blob08:54
daemontoolotherwise I cannot identify if the backup is done with rsync or tar08:54
daemontooldid you see the first bytes08:55
daemontoolin the tar metadata with listed-incremental?08:55
daemontoolsomething like that08:55
daemontoollike08:55
daemontoolfreezer_rsync-1.008:55
daemontoolso when I download the data for restore08:56
daemontoolI can read those bytes08:56
daemontooland execute the restore accordingly08:56
reldandaemontool: Yes, or we can store this information to metadata08:57
reldandaemontool: I even prefer approach with metadata08:59
daemontoolreldan,  yes09:11
daemontoolbut then we need the metadata to restore09:11
daemontoolwith tar that is not required now09:12
reldanYes, you are right. So we have 3 options: 1) Add signature to file 2) Wait for metadata 3) During restore provide engine manually (like now we should provide compressiona algorithm)09:13
reldanI would prefer 3-rd for now and then second09:14
daemontoolotherwise we need to modify the names09:14
daemontoolincrementalengine_hostname_....09:14
daemontoolincrementalengine_metadata_hostname....09:14
daemontoolthe file names09:14
reldanYes, we are going to have it, but not in names - in sub-folders09:15
reldanlike engine/backup_name(or id)/timestamp_of_level_0/timestamp_level/{data-file engine-metafile freezer-metafile}09:15
daemontoolok09:15
daemontoolI have a long meeting today09:16
daemontoolvannif,  ping09:16
daemontoolvannif,  per chance, do you think we can give the source code walkthrought tomorrow?09:16
daemontoollaterz09:16
*** daemontool has quit IRC09:17
reldandaemontool: I send a PR for restore https://review.openstack.org/#/c/298817/09:17
reldandaemontool: But then gave me +2 then uploaded some path, then abandoned it09:17
reldanthen have created two https://review.openstack.org/#/c/298867/ and https://review.openstack.org/#/c/298869/09:19
reldandaemontool: Your comment here is good https://review.openstack.org/#/c/298869/ , and should work. But here is potental bug with sslerror during getting stream09:20
reldanin this case it will produce wrong stream09:20
*** vannif has quit IRC09:29
*** kelepirci has joined #openstack-freezer09:30
*** vannif has joined #openstack-freezer09:31
openstackgerritMemo Garcia proposed openstack/python-freezerclient: Display message for empty lists  https://review.openstack.org/29924809:41
szaherHey guys, Anyone can add +A here plz https://review.openstack.org/#/c/298859/ ?09:50
EinstCra_Hello guys, Anyone can review https://review.openstack.org/298588 and https://review.openstack.org/298628 ?10:07
openstackgerritEinst Crazy proposed openstack/freezer: Restore cindernative volume pass right params and call right api  https://review.openstack.org/29927710:27
*** EinstCra_ has quit IRC10:28
slashmeAhhrrrrr, sorry for the mess Eldar on the swift client patch10:33
slashmeI'll restore it...10:33
reldanslashme: No problem at all :) If you need any help - I can create new pull request or reopen old one10:34
openstackgerritMerged openstack/freezer: Fix creation of jobs with stopped state  https://review.openstack.org/29885910:41
*** daemontool has joined #openstack-freezer10:57
openstackgerritPierre Mathieu proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881711:06
*** ccesario has quit IRC11:08
openstackgerritFerhat Ozkasgarli proposed openstack/freezer: New Better & Well Formatted Docs with Sphinx  https://review.openstack.org/29644811:42
*** ddieterly has joined #openstack-freezer11:46
*** openstackgerrit has quit IRC11:47
*** openstackgerrit has joined #openstack-freezer11:48
*** ddieterly is now known as ddieterly[away]11:52
*** EinstCrazy has joined #openstack-freezer11:59
*** kelepirci has quit IRC12:00
*** ddieterly[away] is now known as ddieterly12:03
*** ccesario has joined #openstack-freezer12:07
*** ddieterly is now known as ddieterly[away]12:15
*** daemontool has quit IRC12:27
*** daemontool has joined #openstack-freezer12:32
*** openstackgerrit has quit IRC12:33
*** openstackgerrit has joined #openstack-freezer12:33
slashmeFYI, We are impacted by this tar behaviour when using incremental: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=64804812:38
openstackDebian bug 648048 in tar "tar: incremental restore fails when a directory is renamed as a name of a deleted directory" [Important,Open]12:38
daemontoolslashme,  ah, ok12:40
daemontoolfreezer mitaka-rc2 https://review.openstack.org/#/c/299368/12:45
daemontoolslashme,  why on https://review.openstack.org/#/c/298869/ are we recreating the swiftclient for each chunk12:49
*** ddieterly[away] has quit IRC12:50
slashmedaemontool: 1 sec, I'm  getting the traces13:09
daemontoolslashme,  np take your time13:10
daemontoolunfortunately that is going to slow down the process13:11
daemontoolas for each chunk, a new token will be requested13:11
slashmehttp://paste.openstack.org/show/492436/13:14
*** openstackgerrit has quit IRC13:18
*** openstackgerrit has joined #openstack-freezer13:19
daemontoolso if we recreate the swift client and it works13:30
daemontoolit is probably because13:30
daemontoolthe client object is closed by some other process?13:30
daemontoolreldan,  ping13:32
reldandaemontool: I suppose just because of expiration13:33
daemontoolexpiration of the ssl session or the token?13:34
reldandaemontool: I actually don’ know exactly13:34
daemontoolif it does not fail for every chunk,13:34
daemontoollet's try something like this https://review.openstack.org/#/c/298869/1/freezer/storage/swift.py13:34
daemontoolin the comment13:34
daemontoolthat method is used for restore, right?13:35
daemontool def backup_blocks(self, backup):13:35
reldandaemontool: we can write something like that13:36
reldantry:13:36
daemontoolcause like that is going to slow down considerably the restore13:37
reldanchunks = self.swift().get_object ….13:37
reldanexcept SSLError:13:37
reldanchunks=self.swift().create_swift().get_object13:37
reldanAnd then13:38
reldanfor chunk in chunks:13:38
reldanyield chunk13:38
reldandaemontool: Good?13:38
daemontoolmmhhhh13:38
daemontoolwhat's chunks?13:38
daemontoola list of what?13:38
daemontoolof just binary data?13:38
reldanyes13:38
daemontoolbinary data?13:39
reldanbinary data13:39
reldanlike we have code now13:39
daemontoolso with python, a for loop on a binary data13:39
reldanbut we split it in two13:39
reldan1) get chunks with try13:39
reldan2) yield each chunk13:39
daemontooliterate 1 byte at the time13:39
EinstCrazyHello guys, Anyone can review https://review.openstack.org/298588 and https://review.openstack.org/298628 ?13:39
reldandaemontool: the same way it works now13:39
reldandaemontool: https://review.openstack.org/#/c/298817/4/freezer/storage/swift.py13:40
daemontoolmmhhh nope, because get_object avoid that13:40
daemontoolthat is what resp_chunk_size is for13:40
daemontoolreldan,  did you see the code in my comment_13:40
daemontool?13:40
reldandaemontool: yes13:41
daemontoolwell it would restart the backup13:41
reldandaemontool: check comment here https://review.openstack.org/#/c/298817/4/freezer/storage/swift.py13:41
reldanmy comment13:41
daemontoolbut I'd like to understand why the ssl error is happening...13:41
reldanIs it good for you?13:41
daemontoolchecking13:42
reldandaemontool: Me niether, I cannot reproduce it. But Pierre says that it fixes his problem13:42
slashmeIt does fix the problem13:42
daemontoolreldan,  yes13:42
daemontoolif chunks is an iterator13:43
daemontoolit's OK13:43
daemontoolotherwise not13:43
daemontoolcan you print len(chunk) inside the for loop?13:43
*** ddieterly has joined #openstack-freezer13:43
reldandaemontool: Great. So in this case we can solve both of our problem. We can be sure, that our stream is correct or fail.13:43
reldandaemontool: yes, it is equal to chunk size13:43
daemontoolreldan,  ok13:43
daemontoolah perfect13:43
daemontool:)13:43
reldan:)13:43
slashmeTesting that13:45
daemontoolI'd even put that inside a while True13:46
daemontoolin case while chunks is iterated and the keystone token expires it would be caught13:46
reldancaemontool: We cannot do this, otherwise we repeat some chunks in stream13:47
reldandaemontool13:47
daemontoolyes13:47
daemontoolthat's true13:47
daemontoolit would be complicated13:47
daemontoolto manage13:47
daemontoolwith counters etc13:48
daemontoolI think your solution is brilliant13:48
openstackgerritEinst Crazy proposed openstack/freezer: Restore cindernative volume pass right params and call right api  https://review.openstack.org/29927713:49
reldandaemontool: Thank you!13:50
*** ddieterly is now known as ddieterly[away]13:55
*** ddieterly[away] is now known as ddieterly14:00
*** EinstCrazy has quit IRC14:07
*** sohail__ has joined #openstack-freezer14:30
daemontoolhi sohail__14:30
daemontoolreldan,  vannif slashme al, sohail__  works in Ericsson he's doing a thesis14:31
daemontoolinterested on working in openstack and contributing on freezer14:31
sohail__Hi All14:32
daemontoolslashme,  ^^14:33
reldanHi soahil__14:33
sohail__Hi reldan14:33
daemontoolsohail__, would you like to test our documentation?14:33
daemontoolabout what you do not understand14:33
vannifhi sohail__14:33
daemontooland so on14:33
daemontoolso you can improve it?14:33
daemontool:)14:33
daemontoolor feel free to ask to the guys14:33
daemontoolfor some task to do14:34
sohail__Yes I can do that14:34
openstackgerritDeklan Dieterly proposed openstack/freezer-api: Add Freezer API Tempest Tests  https://review.openstack.org/29736014:34
ddieterlysohail__ you can write tests14:34
openstackgerritEldar Nugaev proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881714:34
daemontoolsohail__, needs to improve his python skills14:35
daemontool:)14:35
sohail__I know very little about python14:35
daemontooltime to improve that dude :)14:35
ddieterlydo you want to learn python?14:35
sohail__yes14:35
ddieterlyok, then writing tests is the best way to learn14:35
sohail__If you guide me I can do my best14:39
slashmeHi sohail__ Welcome :)14:42
slashme+1 ddieterly tests is a great way of stepping into python and freezer14:43
slashmeDon't hesitate to ask question :)14:43
*** ddieterly is now known as ddieterly[away]14:49
daemontoolI think sohail__  needs some more guidance14:50
daemontoolsohail__, try to install the freezer-agent14:51
daemontooland execute some backup on your desktop14:51
daemontoolfollowing th edocumentation14:51
daemontooland let us know what's not right with it14:51
daemontoolso the doc can be improved14:51
daemontooland you learn things14:51
daemontoolafter few days14:51
daemontoolyou can do some other task if that is OK for you14:52
slashmeYup. That's a first step. After a few days, trying to install a devstack and the rest of the freezer infra would be insteresting as well.14:52
*** ddieterly[away] is now known as ddieterly14:52
slashmeThis would give you a good understanding of the global concepts before starting to look at the code.14:53
daemontoolsohail__, I think you need to understand about openstack-infra ci14:54
daemontoolalso14:54
slashmeyes14:56
slashmeIf you already know git, then this link explain how code managment work in OpenStack: http://docs.openstack.org/infra/manual/developers.html14:57
*** ddieterly is now known as ddieterly[away]15:12
*** ddieterly[away] is now known as ddieterly15:15
openstackgerritPierre Mathieu proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881715:16
*** dschroeder has joined #openstack-freezer15:21
openstackgerritPierre Mathieu proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881715:22
slashmedaemontool: tested that fix. It works. I narrowed the error to only request.exception.SSLError If in the future see other error causing the same behabiour, we will add them here.15:23
openstackgerritPierre Mathieu proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881715:25
slashmeDefinitly nicer than recreating the client every chunk. :)15:26
sohail__Hi daemontool and ddieterly thanks for your help15:27
sohail__if you give the documentation that i can use for backup and restore.15:27
sohail__i can use it to test15:28
ddieterlysohail__ the doc is in the readme file15:28
openstackgerritDeklan Dieterly proposed openstack/freezer-api: Add Freezer API Tempest Tests  https://review.openstack.org/29736015:43
*** ddieterly is now known as ddieterly[away]16:10
slashmeWaiting for review:16:12
slashme  - SSL Master: https://review.openstack.org/#/c/298817/16:12
slashme  - SSL Mitaka: https://review.openstack.org/#/c/298869/16:12
slashme  - SSL Liberty: https://review.openstack.org/#/c/298867/16:12
slashme  - Booleans Mitaka: https://review.openstack.org/#/c/29778016:12
slashme  - Cinder 1 : https://review.openstack.org/29858816:12
slashme  - Cinder 2 : https://review.openstack.org/29862816:12
slashme  - Percent LVM: https://review.openstack.org/#/c/298745/16:12
*** ddieterly[away] is now known as ddieterly16:16
*** daemontool has quit IRC16:18
*** openstack has joined #openstack-freezer17:07
*** ddieterly is now known as ddieterly[away]17:08
*** reldan has joined #openstack-freezer17:20
*** sohail__ has quit IRC17:24
daemontoolddieterly[away],  https://github.com/openstack/freezer/blob/master/freezer/job.py#L9317:24
daemontooland https://github.com/openstack/freezer/blob/master/freezer/job.py#L10317:25
*** reldan has quit IRC17:32
slashmedaemontool: Which level for the SSL error in the logs. Debug ?17:34
daemontoolLOG.exception I think17:40
daemontoolas it is generated by an exeption17:40
slashmeI don't think exception is a loggin level.17:43
slashmeLevel are Critical, Error, Warning, Info, Debug17:43
daemontoolisn't this available in oslo.log? https://docs.python.org/2/library/logging.html#logging.Logger.exception17:44
daemontoolif not sorry17:44
daemontoollog.error?17:44
daemontoollike the example here http://stackoverflow.com/questions/5191830/best-way-to-log-a-python-exception17:45
daemontoolbut we do not have to use it necessarly17:45
daemontoolError or Warning17:45
slashmeYou are right, exception is available.17:46
slashme     Debug: Shows everything and is likely not suitable for normal production operation due to the sheer size of logs generated17:48
slashme    Info: Usually indicates successful service start/stop, versions and such non-error related data17:48
slashme    Audit: (An OpenStack invented, level, still not sure what we should be doing with it)17:48
slashme    Warning: Indicates that there might be a systemic issue; potential predictive failure notice17:48
slashme    Error: An error has occurred and an administrator should research the event17:48
slashme    Critical: An error has occurred and the system might be unstable; immediately get administrator assistance17:48
slashmeException will generate a ERROR level17:48
jokke_exception is ERROR level log with stack trace17:49
daemontoolwarning or exception17:49
daemontoolare good for me17:49
slashmeI'd go for warning17:49
daemontoolo17:49
daemontoolk17:49
slashmethx17:49
daemontoolwe whould have a feedback from reldan about this https://review.openstack.org/#/c/298588/17:52
slashmeYup17:53
openstackgerritPierre Mathieu proposed openstack/freezer: Recreation swift client for each chunk during swift incremental restore  https://review.openstack.org/29881717:56
*** reldan has joined #openstack-freezer18:02
slashmedaemontool: Do you understand why this one fails ? https://review.openstack.org/29889518:04
*** daemontool has quit IRC18:07
*** ddieterly[away] has quit IRC18:08
*** ddieterly has joined #openstack-freezer18:11
*** ddieterly is now known as ddieterly[away]18:11
*** ddieterly[away] is now known as ddieterly18:13
*** ddieterly is now known as ddieterly[away]18:15
openstackgerritPierre Mathieu proposed openstack/freezer: Adding the freezer logo to the README  https://review.openstack.org/29956718:16
*** ddieterly[away] is now known as ddieterly18:18
openstackgerritPierre Mathieu proposed openstack/freezer: Adding the freezer logo to the README  https://review.openstack.org/29956718:18
slashmeWe officialy have a logo !18:27
slashmehttps://wiki.openstack.org/wiki/FreezerLogo18:27
ddieterlythat's great18:39
ddieterlyer... c'est magnifique!18:40
*** ddieterly is now known as ddieterly[away]18:54
*** ddieterly[away] is now known as ddieterly18:55
*** openstackgerrit has quit IRC20:48
*** openstackgerrit has joined #openstack-freezer20:48
*** reldan has quit IRC20:57
*** ddieterly is now known as ddieterly[away]22:13
*** ddieterly[away] is now known as ddieterly22:15
*** ddieterly is now known as ddieterly[away]22:24
*** ddieterly[away] is now known as ddieterly22:25
*** ddieterly is now known as ddieterly[away]22:26
*** ddieterly[away] has quit IRC22:39
*** ddieterly has joined #openstack-freezer23:17
*** ddieterly is now known as ddieterly[away]23:30
*** ddieterly[away] is now known as ddieterly23:49

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