Thursday, 2025-05-29

*** mhen_ is now known as mhen01:24
opendevreviewAbhishek Kekane proposed openstack/glance-specs master: Add spec to provide image size in advance  https://review.opendev.org/c/openstack/glance-specs/+/94742305:05
opendevreviewTakashi Kajinami proposed openstack/glance-tempest-plugin master: Remove stable/2023.2 job  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/95123205:52
opendevreviewAbhishek Kekane proposed openstack/glance master: Add task cancellation tracker utility  https://review.opendev.org/c/openstack/glance/+/95103114:17
abhishekkdansmith: regarding your comment on 888, https://review.opendev.org/c/openstack/glance/+/950853/5/glance/api/v2/images.py14:50
abhishekkI was trying to avoid waiting and raising error, but if you are OK with waiting for one minute and catch the error and LOG something then I will do that14:51
dansmithwhy will it wait?14:52
abhishekkwith open(operation_path, 'w') as f: 14:52
abhishekkthis will create the new file if not present, right?14:52
dansmithoh, I see, you need to check that it exists first14:52
dansmiththat's why you have the lock, so you can check for exists, and write to it atomically14:53
dansmithI'm sure that was in my original comment, no?14:53
abhishekkI have the lock there but it is not for waiting14:53
dansmithoh it wasn't, my bad14:54
abhishekkthe lock will be hold until it's write to that file14:54
dansmiththe lock is so you can check for exists, and if exists, then write to it14:54
dansmithsince python doesn't have the ability (without using open) to only write a file if it exists14:54
dansmithin C I would have done O_WRONLY without O_CREAT to fail atomically if the file didn't exist, but we can't do that in python easily14:55
abhishekkright, we are using that while registering the operation14:55
dansmithsorry I meant to have that in my original example code, but I rewrote it several times in a gerrit comment :)14:55
abhishekkSo I will keep that condition as it is as of now14:56
abhishekkno worries14:56
dansmithno, you need to check exists before the write14:56
abhishekkack, 14:57
dansmithor you can convert to using open, your call14:58
abhishekkack, will do the changes accordingly14:58
dansmithhonestly with the lock you could probably just avoid using open in register too14:59
abhishekkyep15:06
opendevreviewAbhishek Kekane proposed openstack/glance master: Add task cancellation tracker utility  https://review.opendev.org/c/openstack/glance/+/95103117:07
opendevreviewAbhishek Kekane proposed openstack/glance master: [WIP] Cancel hasing operation if image is deleted  https://review.opendev.org/c/openstack/glance/+/95085317:07
fricklerglance unit tests are failing with latest oslo,limits, didn't check yet which side might be to blame https://zuul.opendev.org/t/openstack/build/6a73c8b86e8f4a50840acbf1d717492d20:51
opendevreviewBrian Rosmaita proposed openstack/glance master: Get ready for oslo.limit 2.7.0  https://review.opendev.org/c/openstack/glance/+/95135123:29
rosmaitafrickler: ^^23:29

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