Friday, 2020-08-07

*** Liang__ has joined #openstack-glance01:15
*** jmlowe has quit IRC02:42
*** wxy has quit IRC03:13
*** ratailor has joined #openstack-glance04:28
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-glance04:33
*** gyee has quit IRC04:48
*** udesale has joined #openstack-glance05:24
*** tkajinam has quit IRC05:34
*** tkajinam has joined #openstack-glance05:35
*** tkajinam has quit IRC05:50
*** tkajinam has joined #openstack-glance05:51
abhishekkdansmith, ack05:51
openstackgerritMerged openstack/glance-specs master: Calculate virtual size of image  https://review.opendev.org/74112106:01
openstackgerritMerged openstack/glance stable/ussuri: Fix active image when all uploads fail  https://review.opendev.org/74499706:26
*** bhagyashris is now known as bhagyashris|off07:13
*** k_mouza has joined #openstack-glance07:27
*** k_mouza has quit IRC07:27
*** Liang__ has quit IRC07:51
*** ralonsoh has joined #openstack-glance07:54
*** Liang__ has joined #openstack-glance08:00
*** ratailor has quit IRC08:21
*** rosmaita has quit IRC08:37
openstackgerritMerged openstack/glance master: Stream-friendly disk format inspection module  https://review.opendev.org/74420508:48
*** rosmaita has joined #openstack-glance08:49
*** tkajinam has quit IRC09:17
*** ratailor has joined #openstack-glance09:24
*** ratailor_ has joined #openstack-glance09:32
*** k_mouza has joined #openstack-glance09:33
*** ratailor has quit IRC09:35
*** k_mouza has quit IRC10:43
openstackgerritAbhishek Kekane proposed openstack/glance_store master: PoC Cinder multiple stores  https://review.opendev.org/74237110:45
*** k_mouza has joined #openstack-glance10:51
*** Liang__ has quit IRC10:58
*** k_mouza has quit IRC11:46
*** k_mouza has joined #openstack-glance11:56
*** k_mouza has quit IRC12:00
*** rcernin has quit IRC12:32
*** ratailor_ has quit IRC12:43
*** udesale_ has joined #openstack-glance12:44
*** udesale has quit IRC12:47
*** takamatsu has quit IRC12:52
*** jmlowe has joined #openstack-glance13:00
*** dirk has quit IRC13:31
*** rcernin has joined #openstack-glance13:32
*** rcernin has quit IRC13:37
openstackgerritMerged openstack/glance_store master: requirements: Drop os-testr  https://review.opendev.org/74022613:50
*** k_mouza has joined #openstack-glance13:56
*** k_mouza has quit IRC14:14
*** k_mouza has joined #openstack-glance14:15
abhishekkdansmith, jokke if you are around and have some time kindly have a look at https://review.opendev.org/695152 cinder multiple stores specs15:01
abhishekkI need to get it merged today15:01
dansmithsorry, I forgot you require all cores to ack those15:02
abhishekkno problem15:03
*** ralonsoh has quit IRC15:08
*** ralonsoh has joined #openstack-glance15:08
dansmithabhishekk: two quick questions in there15:09
abhishekklooking15:09
abhishekkdansmith, replied to your comments, makes sense to break that in two different sections will do it immediately15:16
dansmithabhishekk: okay, sorry to make you rev again, but I think it'll look better15:16
abhishekkagree, not an issue, just wondering I should mention "original ussuri config" or "config before upgrade" and "config after upgrade"15:17
abhishekkdansmith, ^^15:19
dansmithI think it'd help yeah15:19
dansmithI would probably avoid saying the release name,15:24
dansmithjust to make it more timeless15:24
dansmithbecause someone upgrading from train->W won't have an "ussuri config"15:24
openstackgerritAbhishek Kekane proposed openstack/glance-specs master: Make cinder driver compatible with multiple stores  https://review.opendev.org/69515215:25
abhishekkdansmith, ^^15:26
abhishekkwill carry forward rosmaita and smcginnis +2 as it's just a cosmetic change15:26
dansmithcool15:28
dansmithabhishekk: have you seen this error before? https://ed75466bb08c2322add8-83eda0bc1935c183e842d53b008f8f00.ssl.cf5.rackcdn.com/743597/12/check/openstack-tox-functional-py36/8bb36d0/testr_results.html15:28
dansmithspecifically this: 2020-08-06 18:38:34.524 3668 ERROR glance.async_.taskflow_executor FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpxt2cb_bz/images_3/e3debcaf-3c14-4ea4-ba82-2c1c14a8970a'15:28
dansmithit's similar to an error I'm seeing in my test where my database file seems to disappear from underneath me15:28
abhishekknope15:28
dansmithhrm15:29
dansmithif I run --until-failure for about ten minutes I can reproduce one of the two of those15:29
abhishekkimages_3 is one of your filesystem store from multiple stores rigjt15:30
dansmithyes, but this isn't my test, this was here already15:32
dansmithtest_copy_image_revert_lifecycle15:32
*** rcernin has joined #openstack-glance15:33
abhishekkdansmith, hmm15:34
dansmithalso, I wonder if we could squelch the stevedore.extension logging in the test base class so that we don't get such a huge dump on each failure?15:35
dansmithI mean, I think we can, I wonder if that would be a welcome change :)15:35
abhishekkabsolutely15:36
*** rcernin has quit IRC15:38
abhishekkdansmith, I would suggest we should skip this test or remove it and it is flaky and depends on removing one of the configured filestore to produce the failure15:38
abhishekkThis test needs to be rewritten more carefully (similar to something how you have written test to bust lock or something like that)15:40
dansmithso, looking at the test, I guess you're trying to delete the file?15:40
dansmithmaybe the test is just racing with the task and checks the stores before the task has finished?15:40
abhishekkI am trying to delete the file store directory itself15:40
dansmithright okay15:40
dansmithlooks really similar to my failure, but maybe it's not the same15:41
abhishekkyes, when I added it, it was running ok for couple of weeks and suddenly started failing occasionally15:42
abhishekkand there was not a easy way to produce failure in the functional tests than this :(15:42
dansmithoh okay I thought you didn't recognize the fail? or you just didn't recognize that FileNotFoundError part of it?15:45
abhishekkI do recognized it now earlier I replied just based on your error message you pasted here15:46
dansmithgotcha, okay15:48
dansmiththis patch hit it too: https://review.opendev.org/#/c/744011/15:48
dansmithin the last day15:48
abhishekkyeah15:49
abhishekkI think its better to skip/remove that test at it is not full proof15:50
dansmithcan we put a retry in there maybe?15:50
abhishekkmay be but not sure it will help15:52
dansmithwell, if it's a race with the task finishing I would think it would.. I'll try to poke at it a bit when I'm done revising this set15:53
abhishekkack15:55
* abhishekk going for dinner will be back in 45 mins16:07
openstackgerritDan Smith proposed openstack/glance master: Heartbeat the actual work of the task  https://review.opendev.org/74342616:31
openstackgerritDan Smith proposed openstack/glance master: Update task message during import  https://review.opendev.org/74342716:31
openstackgerritDan Smith proposed openstack/glance master: Implement time-limited import locking  https://review.opendev.org/74359716:31
*** udesale_ has quit IRC16:41
openstackgerritDan Smith proposed openstack/glance master: Squelch the stevedore.extension debug logging in functional tests  https://review.opendev.org/74537416:44
dansmithabhishekk: ^16:45
abhishekkdansmith, ack16:45
smcginnisdansmith: Where are those logs happening? I haven't noticed anything in our functional test logs.16:47
abhishekkdansmith, one question about https://review.opendev.org/#/c/743597/13/glance/api/v2/images.py line #12216:47
dansmithsmcginnis: when something starts an api and then the test fails, let me get you a link]16:48
dansmithsmcginnis: check this out: https://ed75466bb08c2322add8-83eda0bc1935c183e842d53b008f8f00.ssl.cf5.rackcdn.com/743597/12/check/openstack-tox-functional-py36/8bb36d0/testr_results.html16:48
smcginnisdansmith: Ah, I was only looking at a successful run. That makes sense.16:48
smcginnisYeah, pretty noisy and useless.16:48
dansmithyeah and when they fail running locally, it blows my terminal buffer all to pieces :)16:48
dansmithabhishekk: shoot16:49
abhishekkWill it be a possibility that someone might have actually deleted the image?16:49
abhishekkthe message and error response might be misleading or it will be very very corner case?16:49
dansmithabhishekk: yes, image delete will cause you to hit that if timed right,16:51
dansmithbut I think the messages all still make sense.. meaning "we lost the race to delete it" still makes sense if the task lock is gone because the image is gone, I think16:51
abhishekkhmm, I am more doubtful about Conflict response here16:52
dansmithand, the user doesn't know if the 409 is because the image is still locked with a valid lock, which is why we emulate the "lock is still valid" error there, since we didn't get to it before the other thread did ... something with it16:52
dansmitha user that gets a 409 just needs to know "this isn't ready yet", and if someone deletes the whole image right after that (or seemingly at the same time), or grabs the lock because it expired and they grabbed it first, it's the same thing from the client's perspective16:54
abhishekkok16:54
dansmithI think the important thing is to make the "what do I do if I get this error" behavior the same for the user, regardless of the actual reasoning, which is why I raise 409 there as well16:55
dansmith409 means "you can't have this right now, check back later"16:55
abhishekkyeah, I was just thinking that after sometime I will get 404 :D16:55
dansmiththe image was valid when we entered POST /import, so we don't need to return a 404 I think16:55
abhishekkyes, makes sense16:56
dansmithyep, but you can always get a 404 pretty much any time I think16:56
abhishekkMay be I was thinking we should add "or Image is deleted between the process" to the warning message but its ok IMO16:57
dansmithwell, we can't really differentiate between the image being gone and the lock being gone atomically without a lot of work, and if we checked a second time, we might report the wrong thing because it was deleted between the two checks16:59
abhishekkyep, makes sense17:00
*** ralonsoh has quit IRC17:02
dansmithabhishekk: ahh, I see that copy_image_revert_lifecycle test is trying to delete the images_3 during the task execution before it gets that far to trigger a failure, right?17:04
dansmithso it's kinda racy by definition17:05
abhishekkdansmith, yes17:05
dansmithabhishekk: can't we do the delete before we even initiate the import? then it will succeed on the first store, and when _ImportToStore('images_317:05
dansmith') runs it will fail?17:05
dansmiththat will be less racy I think17:05
abhishekkjust a min let me have a look at that again17:06
*** k_mouza has quit IRC17:06
dansmithseems to work locally17:07
dansmithmaybe I will push up that change and we can recheck it a bunch of times17:07
abhishekkyes I think we should delete it earlier17:07
abhishekkeven after the second line of test it self where we actually starting the services17:07
openstackgerritDan Smith proposed openstack/glance master: Fix non-deterministic copy_image_revert_lifecycle test  https://review.opendev.org/74537917:09
dansmithwell, I think it's better right before the import so it's clear why we're doing it17:10
dansmithbut let's see if we can get that ^ to fail17:10
abhishekkack17:10
dansmithI guess we might as well just merge that since it works, and then we'll get all the testing of everything else running on top of master17:11
abhishekkmakes sense17:13
abhishekkdansmith, also adding data_files in glance_store/setup.cfg sounds more reasonable17:17
dansmithif people will need that for real, then... definitely :)17:17
abhishekkyes they will17:18
dansmithI'm super glad you're working on a job to make that all get tested.. in addition to just proving that it works, it helps uncover things like this too17:19
abhishekk++17:20
*** rcernin has joined #openstack-glance17:34
*** rcernin has quit IRC17:39
*** k_mouza has joined #openstack-glance17:44
openstackgerritMerged openstack/glance-specs master: Make cinder driver compatible with multiple stores  https://review.opendev.org/69515217:48
*** k_mouza has quit IRC17:49
dansmithabhishekk: I think it's safe to merge that determinism change and let the full stream run on it18:04
abhishekkdansmith, sounds good18:05
abhishekkI have also ran it locally multiple times and it is working (hope it will work in gates as well :D)18:10
dansmithyeah18:13
openstackgerritDan Smith proposed openstack/glance master: Add functional test for task status updating  https://review.opendev.org/74539218:58
dansmithdang this database file thing19:24
abhishekk1 minute to merge19:30
openstackgerritMerged openstack/glance master: Squelch the stevedore.extension debug logging in functional tests  https://review.opendev.org/74537419:30
openstackgerritDan Smith proposed openstack/glance master: Add testing for _CompleteTask in api_image_import  https://review.opendev.org/74359319:31
openstackgerritDan Smith proposed openstack/glance master: Add tests for _ImportToStore.execute()  https://review.opendev.org/74359519:31
openstackgerritDan Smith proposed openstack/glance master: Flesh out FakeImage for extra_properties  https://review.opendev.org/74383919:31
openstackgerritDan Smith proposed openstack/glance master: Add image_delete_property_atomic() helper  https://review.opendev.org/74359619:31
openstackgerritDan Smith proposed openstack/glance master: Heartbeat the actual work of the task  https://review.opendev.org/74342619:31
openstackgerritDan Smith proposed openstack/glance master: Update task message during import  https://review.opendev.org/74342719:31
openstackgerritDan Smith proposed openstack/glance master: Implement time-limited import locking  https://review.opendev.org/74359719:31
openstackgerritDan Smith proposed openstack/glance master: Add functional test for task status updating  https://review.opendev.org/74539219:31
openstackgerritDan Smith proposed openstack/glance master: DNM: Try to debug spurious DB file failure  https://review.opendev.org/74539819:31
openstackgerritMerged openstack/glance master: Fix non-deterministic copy_image_revert_lifecycle test  https://review.opendev.org/74537919:38
*** k_mouza has joined #openstack-glance19:45
*** k_mouza has quit IRC19:50
openstackgerritAbhishek Kekane proposed openstack/glance_store master: Copy data files to glance upon installation  https://review.opendev.org/74540719:54
abhishekkdansmith, ^^19:55
* abhishekk signing out for the day, happy weekend all19:56
openstackgerritGhanshyam Mann proposed openstack/python-glanceclient master: [goal] Migrate testing to ubuntu focal  https://review.opendev.org/74407521:30
openstackgerritGhanshyam Mann proposed openstack/python-glanceclient master: Update test certificates to use strong signing  https://review.opendev.org/71809321:31
openstackgerritGhanshyam Mann proposed openstack/python-glanceclient master: [goal] Migrate testing to ubuntu focal  https://review.opendev.org/74407521:31
*** rcernin has joined #openstack-glance21:36
*** rcernin has quit IRC21:41
*** rcernin has joined #openstack-glance21:47
*** rcernin has quit IRC22:26
*** rcernin has joined #openstack-glance22:31
openstackgerritGhanshyam Mann proposed openstack/python-glanceclient master: [goal] Migrate testing to ubuntu focal  https://review.opendev.org/74407522:37
*** k_mouza has joined #openstack-glance23:10
*** k_mouza has quit IRC23:14
*** rcernin has quit IRC23:38
*** rcernin has joined #openstack-glance23:59

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