Wednesday, 2020-08-05

*** jv__ has joined #openstack-glance00:30
*** gyee has quit IRC00:30
*** jv__ has quit IRC00:46
openstackgerritnorman shen proposed openstack/glance-specs master: Use asynchronous writes for ceph RBD  https://review.opendev.org/74481801:56
*** rcernin has joined #openstack-glance03:07
*** tkajinam has quit IRC03:51
*** tkajinam has joined #openstack-glance03:52
*** m75abrams has joined #openstack-glance04:25
*** udesale has joined #openstack-glance04:33
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-glance04:33
*** ratailor has joined #openstack-glance04:56
*** ratailor has quit IRC04:59
*** ratailor has joined #openstack-glance04:59
*** udesale_ has joined #openstack-glance05:45
*** udesale has quit IRC05:47
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix active image when all uploads fail  https://review.opendev.org/74401006:02
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix active image without data  https://review.opendev.org/74401106:02
abhishekkdansmith, jokke smcginnis I just fixed unit tests failure and proposed patches again so that we can save the time of running check jobs during hot time06:03
openstackgerritAbhishek Kekane proposed openstack/glance-specs master: Make cinder driver compatible with multiple stores  https://review.opendev.org/69515206:16
*** udesale_ has quit IRC06:24
*** udesale has joined #openstack-glance06:52
*** rcernin has quit IRC06:58
*** rcernin_ has joined #openstack-glance06:59
*** rcernin_ has quit IRC07:05
*** nikparasyr has joined #openstack-glance07:06
*** rcernin has joined #openstack-glance07:06
*** k_mouza has joined #openstack-glance08:29
*** ralonsoh has joined #openstack-glance08:30
*** rcernin has quit IRC09:04
*** rcernin has joined #openstack-glance09:04
*** rcernin has quit IRC09:05
*** rcernin has joined #openstack-glance09:05
*** ralonsoh has quit IRC09:50
* abhishekk will be back around 1430 UTC09:56
*** tkajinam has quit IRC10:15
*** rcernin has quit IRC10:23
*** ralonsoh has joined #openstack-glance11:08
*** rcernin has joined #openstack-glance11:25
*** rcernin has quit IRC11:30
*** jv__ has joined #openstack-glance11:32
*** k_mouza has quit IRC11:54
*** rcernin has joined #openstack-glance11:56
*** rcernin has quit IRC12:02
*** rcernin has joined #openstack-glance12:17
*** rcernin has quit IRC12:22
*** udesale has quit IRC12:37
*** udesale has joined #openstack-glance12:38
*** rcernin has joined #openstack-glance13:00
jokkedansmith: you around yet?13:06
*** priteau has joined #openstack-glance13:09
*** rcernin has quit IRC13:15
*** udesale has quit IRC13:21
*** udesale has joined #openstack-glance13:22
dansmithjokke: brewing coffee but, yup13:22
dansmithsorry about missing that flow name change13:22
jokkedansmith: ha, I was just gonna hit that task but couple of quick questions just trying to understand the format inspector13:23
jokkeL 387 you unpack the whole 16 bytes, but those foo and bar are never being used, any reason why not just grab the first 8 bytes and get what you need?13:25
dansmithno, and I probably do that in several places,13:26
dansmiththat comes from reading specs and generally wanting to parse a whole header or record as a unit, and at least while debugging, compare those values to make sure they look legit13:27
jokkeok, it's not a big deal, I just wanted make sure I understood those foo and bar didn't have some special meaning after all what I ended up missing13:27
dansmithif I named them something useful, it also makes it nicer if I name them what they are before I ignore them, in case they're useful in the future if we need to pull more information or something13:27
jokkeyeah13:28
dansmithin this case, both are bitfields with information that don't really matter to us, and most of the bits are "reserved anyway"13:28
jokkeanother readability thing, specific reason why VDI inspector uses 0x indexing on the ranges where everything else is just numbers?13:29
jokkedansmith: kk, yeah I was just wondering why you didn't do 'II' +16, +24 instead of the 'IIII' +16, +3213:30
dansmithbecause the header is larger than most and the struct I was looking at marked offsets in hex :)13:30
dansmithI can go back through and convert those to decimal as well as comment what the offsets are that I'm looking for in each of the formats13:31
dansmithin general, I'm fine with mixing hex and decimal especially if they're consistent with the relevant spec document's offsets, but happy to make those consistent if you want13:32
jokkeI'm not even sure which I prefer, it was just something that caught my eye while reading the code as I don't think we have indexes in 0x anywhere in our code ... gotta admit the later specially is fairly sisable numbers13:33
jokkeand the last question if you don't mind. Any reason why you did not specify the byte order in VHDX but in every other parser?13:35
dansmithI'll add a block comment to each format with the layout we're looking for and the offsets13:35
dansmithoh I did in one place, but not the later two, good catch13:35
dansmithif those are your only questions about that big batch of complex parsing code, I'm pretty happy :)13:36
jokkeWell some of the constant magic numbers you're referring there I have no idea about, but the rest made sense and I was able to follow. Just few things that I was scrathing my head like "Is there a reason for this"13:37
dansmithack13:38
jokkeit's not exactly fun code to read but thanks for keeping it fairly easy ot follow and very nice feature to have13:40
dansmithomg, you're calling my code "not fun"? I'm so offended!13:41
*** ratailor has quit IRC13:42
dansmiththe vhdx was the least fun, obviously, but I was pretty happy that it was well-documented. I was expecting them all to be as simple and obvious as qcow, but alas :)13:43
*** k_mouza has joined #openstack-glance13:46
jokkethat code is going to be running in sidechannel, right?13:53
jokkeSo it's not directly in the datapath13:53
*** Liang__ has joined #openstack-glance13:59
*** Liang__ is now known as LiangFang14:00
dansmithI dunno what that means really.. the InfoWrapper sits directly in the data stream of course, but it just passes the chunks to this stuff to look at. It happens synchronously and in the data path, but... it doesn't modify anything if that's what you mean14:01
*** k_mouza has quit IRC14:02
*** k_mouza has joined #openstack-glance14:04
jokkeyeah, that's what I thought so data streams through the wrapper, and just copy of it is passed to this code from the stream. I was just thinking how much extra work (in follow up) would cause to pull some of the decompression stuff from the task plugin and get that info extracted from the cmpressed file format too ;)14:05
jokkeI'll have a look into that at some point14:05
dansmithactual decompression or de-sparsification?14:05
jokkeactual decompression. We support couple of streamable formats so could detect those, decompress just enough from the beginning to get the headers and pass it down to your code14:06
jokkes/formats/algorithms/14:07
dansmithah, yeah I asked on the spec if we cared about anything other than "bare" container_format.. are the compression types those, or yet another thing?14:09
dansmithI guess I imagined you'd just use http gzip to compress the stream, in which case it'd be un-gzip'd by the time it made it here14:09
dansmithif I have a flag, I can un-gzip in the stream for sure, at least14:10
jokkewe have 'compressed' this was for cinder use that supports passing compressed image to cinder to reduce nwbandwidth14:10
jokkejust an idea that once this is working streamable decompression of the beginning is not difficult piece to add there14:11
jokkeso those images are sitting in the store actually compressed14:11
dansmithsure, is it just gzip or something else?14:12
jokkeI think it might be just gzip14:12
dansmiththat's easy to integrate into this and to stop unzipping when we get far enough14:13
dansmithbut yes, let's build that on this, I'd say, it's complex enough to review right now14:13
jokkeyup14:13
jokkethat's what I thought14:13
jokkeand python has direct support for zip, lha and gzip. they are all very trivial to detect14:14
jokkelha is not that much used 'though14:14
dansmithare we not told whether or not it's compressed?14:15
jokkeyes, but that's all it's just 'compressed' container format ... we never thought we would need any other info about it14:15
jokkeI wrote the decompression module so people can point web-download directly to compressed image link, never thought we would poke to see what's actually in there ;)14:16
dansmithheh14:16
jokkeSo it just looks the magic numbers at the headers to see if it can detect those three algos, decomresses the image before uploading to store if the container_format is not 'compressed'14:17
jokkeand the plugin does it inplace so we can then run conversion on it if needed14:18
jokkeit doesn't do it on the stream14:19
dansmithack14:19
abhishekksmcginnis, rosmaita kindly have look when you have some time, https://review.opendev.org/#/c/695152/14:29
rosmaitaack14:29
abhishekkrelated to cinder multiple stores support14:29
abhishekkdansmith, I have modified the specs related to introspect feature14:30
dansmithI saw, I'll look in a bit14:33
abhishekkack14:34
openstackgerritMerged openstack/python-glanceclient master: Fixes "stores" property added to the image  https://review.opendev.org/74402414:36
*** jv__ has quit IRC14:40
openstackgerritErno Kuvaja proposed openstack/python-glanceclient stable/ussuri: Fixes "stores" property added to the image  https://review.opendev.org/74491714:43
openstackgerritDan Smith proposed openstack/glance master: Stream-friendly disk format inspection module  https://review.opendev.org/74420514:43
openstackgerritDan Smith proposed openstack/glance master: Inspect upload stream and set virtual_size on upload  https://review.opendev.org/74423414:43
dansmithjokke: lots of format doc ^14:44
jokkedansmith: ack, thnx14:44
*** jv_ has joined #openstack-glance14:53
openstackgerritDan Smith proposed openstack/glance master: Stream-friendly disk format inspection module  https://review.opendev.org/74420514:55
openstackgerritDan Smith proposed openstack/glance master: Inspect upload stream and set virtual_size on upload  https://review.opendev.org/74423414:55
*** jv__ has joined #openstack-glance15:01
*** jv_ has quit IRC15:02
*** jv__ has quit IRC15:09
*** jv__ has joined #openstack-glance15:10
*** LiangFang has quit IRC15:13
*** jv__ has quit IRC15:17
openstackgerritDan Smith proposed openstack/glance master: Inspect upload stream and set virtual_size on upload  https://review.opendev.org/74423415:23
dansmithabhishekk: ^ added a functional test per the spec15:23
abhishekkdansmith, jokke just need one opinion as now this Introspect work is not related to import plugin any more, i have changed the blueprint title to https://blueprints.launchpad.net/glance/+spec/calculate-virtual-size15:23
dansmithI still need make import do it15:24
abhishekkdansmith, sorry, you need to tag this blueprint now15:24
dansmithah okay15:24
dansmithI'll work on the import part and then will change the blueprint tag of the whole set15:24
abhishekkdansmith, in functional or import workflow to calculate virtual size?15:24
dansmiththe import flow doesn't include this inspector yet, just the regular upload15:25
dansmither, wait..maybe it does?15:25
dansmithmaybe under all the layers we call through the same location.py bit? I'll have to check15:25
abhishekkdansmith, that's what I am saying15:28
abhishekkit should work for import as well15:28
abhishekkbut we just need to make sure that if there are multiple imports and virtual size is set then we should not calculate it again15:28
dansmithack, will write that test to confirm.. i just hadn't even looked yet15:28
dansmithack15:29
dansmith{0} glance.tests.functional.v2.test_images.TestImages.test_image_upload_qcow_virtual_size_calculation [4.037527s] ... ok15:31
dansmith{1} glance.tests.functional.v2.test_images.TestImages.test_image_import_qcow_virtual_size_calculation [4.538418s] ... ok15:31
dansmithyup :)15:31
abhishekk:D15:32
abhishekkjust need to add check for multiple imports or copying to other stores15:32
dansmithyeah, so, is virtual_size an image property or an "extra_properties" ?15:33
dansmiththe automatic delegation makes it hard to tell that, and the ImageStub in those tests isn't complete of course15:34
abhishekkI guess it is image property15:34
dansmithah I see it in domain/proxy15:35
*** nikparasyr has left #openstack-glance15:36
abhishekkon that note, I will take dinner break :P15:36
* abhishekk dinner break, will be back in 45 mins15:36
openstackgerritDan Smith proposed openstack/glance master: Stream-friendly disk format inspection module  https://review.opendev.org/74420515:42
openstackgerritDan Smith proposed openstack/glance master: Inspect upload/import stream and set virtual_size  https://review.opendev.org/74423415:42
dansmithabhishekk: when you get back, can you change the owner to my openstack persona (danms) ?15:43
*** m75abrams has quit IRC15:43
abhishekkdansmith, done15:59
* abhishekk back15:59
dansmiththanks16:00
abhishekkdansmith, I am changing the same in the specs as well (for assignee )16:09
dansmithcool16:10
openstackgerritAbhishek Kekane proposed openstack/glance-specs master: Calculate virtual size of image  https://review.opendev.org/74112116:12
*** jv__ has joined #openstack-glance16:31
*** jv__ has quit IRC16:32
*** udesale has quit IRC16:32
*** gyee has joined #openstack-glance16:48
*** jdillaman has quit IRC17:23
* abhishekk signing out for the day17:33
*** priteau has quit IRC17:38
*** k_mouza has quit IRC17:43
*** ralonsoh has quit IRC18:12
*** k_mouza has joined #openstack-glance18:13
*** k_mouza has quit IRC18:16
openstackgerritMerged openstack/glance master: Fix active image when all uploads fail  https://review.opendev.org/74401018:58
*** gyee has quit IRC20:36
*** gyee has joined #openstack-glance20:38
*** smcginni1 has joined #openstack-glance20:47
*** smcginnis has quit IRC20:50
*** smcginni1 is now known as smcginnis20:50
jokkesmcginnis: around by any chance?21:11
smcginniso/21:11
jokkesmcginnis: if you have a bit extra time on your hands, stable/ussuri client patch https://review.opendev.org/#/c/74491721:12
smcginnisjokke: Done!21:15
jokkety!21:15
smcginnisAny time jokke.21:15
*** gyee has quit IRC21:24
*** gyee has joined #openstack-glance21:25
openstackgerritMerged openstack/glance master: Add "stores" to disallowed properties  https://review.opendev.org/74403021:30
*** rcernin has joined #openstack-glance21:35
*** rcernin has quit IRC21:36
*** rcernin has joined #openstack-glance21:36
openstackgerritErno Kuvaja proposed openstack/glance stable/ussuri: Add "stores" to disallowed properties  https://review.opendev.org/74499421:40
*** rcernin has quit IRC22:03
*** rcernin has joined #openstack-glance22:17
openstackgerritErno Kuvaja proposed openstack/glance stable/ussuri: Fix active image when all uploads fail  https://review.opendev.org/74499722:23
*** jmlowe has quit IRC22:27
*** jmlowe has joined #openstack-glance22:31
*** rcernin has quit IRC22:40
*** rcernin has joined #openstack-glance22:40
*** rcernin has quit IRC22:40
*** rcernin has joined #openstack-glance22:44
openstackgerritMerged openstack/python-glanceclient stable/ussuri: Fixes "stores" property added to the image  https://review.opendev.org/74491722:51
*** tkajinam has joined #openstack-glance23:00
*** josephillips has joined #openstack-glance23:26
josephillipshey guys23:26
josephillipssomeone had issues using glance-cache-manage23:26
josephillipswith 401 error23:26
josephillipsbut using glance works well23:26
*** irclogbot_3 has quit IRC23:34
*** irclogbot_2 has joined #openstack-glance23:37
*** yoctozepto3 has joined #openstack-glance23:44
*** yoctozepto has quit IRC23:45
*** yoctozepto3 is now known as yoctozepto23:45
jokkejosephillips: which version of glance?23:45
josephillipstrain version23:51
jokkehmm-m ... we do have patch to glance-cache-manage coming in train (probably released tomorrow) but that should not cause 401. you might want to check that the command is ran with correct permissions based on how your policy is set23:56
openstackgerritErno Kuvaja proposed openstack/glance stable/ussuri: Fix active image when all uploads fail  https://review.opendev.org/74499723:58

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!