Friday, 2020-06-26

*** jawad_axd has joined #openstack-glance00:15
*** jawad_axd has quit IRC00:50
*** jawad_axd has joined #openstack-glance02:06
*** jawad_axd has quit IRC02:41
*** jawad_axd has joined #openstack-glance03:58
*** jawad_axd has quit IRC04:31
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-glance04:33
*** ratailor has joined #openstack-glance05:12
*** udesale has joined #openstack-glance05:40
*** jawad_axd has joined #openstack-glance06:09
*** jawad_axd has quit IRC06:14
*** jawad_axd has joined #openstack-glance07:00
*** ratailor has quit IRC07:19
*** ratailor has joined #openstack-glance07:19
*** jawad_axd has quit IRC07:22
*** jawad_axd has joined #openstack-glance07:22
*** bhagyashris|afk is now known as bhagyashris07:27
*** tosky has joined #openstack-glance07:35
*** udesale has quit IRC09:07
*** udesale has joined #openstack-glance09:15
*** priteau has joined #openstack-glance10:03
openstackgerritAbhishek Kekane proposed openstack/glance master: Add image_set_property_atomic() helper  https://review.opendev.org/73786810:33
openstackgerritAbhishek Kekane proposed openstack/glance master: WIP: Fix race condition in copy image operation  https://review.opendev.org/73759610:33
* abhishekk signing out for the day 10:38
*** udesale has quit IRC12:29
*** mordred has quit IRC13:34
*** udesale has joined #openstack-glance13:47
openstackgerritDan Smith proposed openstack/glance master: Add image_set_property_atomic() helper  https://review.opendev.org/73786814:11
openstackgerritDan Smith proposed openstack/glance master: WIP: Fix race condition in copy image operation  https://review.opendev.org/73759614:11
*** ratailor has quit IRC14:36
*** priteau has quit IRC14:44
*** priteau has joined #openstack-glance14:47
*** priteau has quit IRC14:52
*** priteau has joined #openstack-glance15:26
*** priteau has quit IRC15:30
*** priteau has joined #openstack-glance15:30
*** mordred has joined #openstack-glance15:36
*** jawad_axd has quit IRC15:36
openstackgerritMerged openstack/glance_store master: Don't allow image creation with encrypted nfs volumes  https://review.opendev.org/73250615:51
*** k_mouza has joined #openstack-glance15:58
k_mouzagood afternoon all! I was wondering if there's a way to move existing glance images from a file store to a RBD one on ceph? Is there a way to migrate them over without downloading and re-importing ?16:00
*** k_mouza has quit IRC16:14
dansmithjokke: around by chance/16:18
*** k_mouza has joined #openstack-glance16:19
dansmithk_mouza: https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html#configuring-the-copy-image-method16:20
*** k_mouza has quit IRC16:22
*** k_mouza has joined #openstack-glance16:22
mordreddansmith: I updated the sdk patch to hopefully not add OpenStack-image-import-methods to properties anymore16:26
dansmithmordred: cool, thanks16:26
mordreddansmith: I don't yet know *why* it went there - that's explicity unexpected, but for now we can decouple this from solving that general problem16:26
dansmithokay, I assume you just pushed that up recently?16:27
*** mordred has quit IRC16:33
*** gyee has joined #openstack-glance16:35
*** mordred has joined #openstack-glance16:38
*** k_mouza has quit IRC16:39
openstackgerritDan Smith proposed openstack/glance master: Add image_set_property_atomic() helper  https://review.opendev.org/73786816:40
openstackgerritDan Smith proposed openstack/glance master: WIP: Fix race condition in copy image operation  https://review.opendev.org/73759616:40
openstackgerritDan Smith proposed openstack/glance master: WIP: FakeImage test fixture is not reflective of reality  https://review.opendev.org/73824116:40
*** priteau has quit IRC16:48
mordreddansmith: yeah - immediately before my message about it here17:01
dansmithmordred: okay my devstack patch got kicked out so I figured that's why.. I rechecked the full chain so we can see if the properties end up right17:01
mordredcool17:02
*** udesale has quit IRC17:39
jokkedansmith: here17:49
*** suryasingh has quit IRC17:49
dansmithjokke: hey, please tell me I'm mistaken on this: https://review.opendev.org/#/c/738241/117:49
jokkewait, what's going on there17:52
dansmithseems to me that the import tests there just started using FakeImage for the return value of image_repol.get() at some point because it was "close enough"17:54
dansmithabhishekk had implemented the image_repo pass through of my new method by just doing image_id, but that didn't seem right since the rest of those methods use an actual image, so when I changed it to use an image I noticed the discrepancy17:58
jokkeohh ... well there was some changes recently (like during ussuri cycle, I think) to the fixtures. need to go back and see what was actually done there, but it's possible that there's been some mixup18:02
jokkethere's the db fixture and then there is the domain fixture. Has their usage been mixed at some point18:04
dansmithunless the api used to get db objects directly and only just now gets the domain, I'm not sure what would have changed recently18:06
dansmithall my glance history is about a week old so it's hard to tell what is new and what is old18:07
dansmithsince other code in images uses image.image_id I thought it was more likely that this was just erroneously wrong and nothing in the code that uses that particular FakeImage noticed18:08
jokkedansmith: nope, it's nohing new, that's why the domain fixture is in there. And you're correct looking the tests, the fake image that's been specified to be returned by the mocked repo is indeed adhering to the db fixture, not to the domain fixture18:08
jokkeI wonder where else this is mixed up18:09
dansmithseems like a lot of tests make up their own objects to mock return values, so I can see why this is error-prone18:12
dansmithfive  'class FakeImage' definitions in glance/tests/18:16
jokkedansmith: also makes no sense to have the fixture and that object in first place. That's why the fixtures exists, right?18:24
dansmithseems like the tests that use the object did so just because it was easier to mock image_repo.get() than to have it pull objects out of the fixture, but...yeah :)18:25
dansmithmordred: looks better.. are these "owner specified" things supposed to be there? I would have expected only the hw_rng_model passed on the command line20:37
dansmithhttps://zuul.opendev.org/t/openstack/build/aa54890eefb04a2ba2b1fffdd4e74974/log/job-output.txt#2129220:37
dansmithI guess I should look at a regular run20:37
dansmithokay yeah I see those in another run, so I guess that's expected20:38
mordreddansmith: yes - owner_specified is expected - sdk creates some checksums of its own to handle knowing how to not re-upload something when it doesn't need to20:44
* mordred has to run out for a sec - biab20:44
dansmithcool, I googled and found some patches from you that seemed to indicate that20:44
dansmithsounds like a good plan to me :)20:44
*** tosky has quit IRC23:00

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