Wednesday, 2023-01-25

opendevreviewMerged openstack/glance stable/victoria: [stable-only] Remove glance-code-constants-check  https://review.opendev.org/c/openstack/glance/+/86394506:09
opendevreviewMerged openstack/glance stable/ussuri: [stable-only] Remove glance-code-constants-check  https://review.opendev.org/c/openstack/glance/+/86394606:31
*** bhagyashris_ is now known as bhagyashris|ruck07:34
opendevreviewMerged openstack/glance stable/zed: Enforce image safety during image_conversion  https://review.opendev.org/c/openstack/glance/+/87161412:37
opendevreviewMerged openstack/glance stable/yoga: Enforce image safety during image_conversion  https://review.opendev.org/c/openstack/glance/+/87161712:38
opendevreviewMerged openstack/glance stable/xena: Enforce image safety during image_conversion  https://review.opendev.org/c/openstack/glance/+/87161916:22
zigodansmith: Hi there! How are you?20:56
zigoI was able to backport the Glance CVE-2022-47951 patch to Rocky, but the unit tests file where the tests are going doesn't exist in Rocky, so don't know what to do with the added tests.20:56
zigoAny suggestion?20:56
zigoFYI, I tested installing a fresh Glance/Rocky on a VM, and I could upload a file, so I'm at least sure it's not fully broken! :)20:57
dansmithzigo: rocky is before my glance tenure, so not entirely sure.. is the image_conversion file there but just not the test file?20:57
zigoCorrect.20:57
zigoglance/glance/tests/unit/async_/flows/plugins/test_image_conversion.py doesn't exist ...20:58
dansmithWell, I guess you need to either not backport the tests (do they ever get run?) or recreate the skeleton of that file enough so they run20:58
zigodansmith: In Debian, and I guess in most distro, we run unit tests when the package is built.20:59
dansmithokay20:59
zigoIt's a very good insurance that the package is working.20:59
zigoThat's also how I managed to fix Nova (and backported 2 other patches for the CVE patch to work...).20:59
dansmithso I guess you need the test class, setUp(), the _setup_whatever() function and the test functions21:00
zigodansmith: I tried to make a new file from scratch and failed ... :/21:00
zigodansmith: I just wonder: is it planned that you backport to Rocky too?21:00
zigoIf so, I'll stop my efforts ...21:00
dansmithdid you try just copying the whole test file from a newer release? that might work21:00
dansmithzigo: nope21:01
zigoI copied the file yes, but removed all the tests that aren't part of the CVE patch.21:01
zigoSo, only setup() and so on remains ...21:01
dansmithand that failed how?21:01
zigo"oslo_config.cfg.NoSuchOptError: no such option conversion_plugin_options in group [DEFAULT]"21:02
zigo(4 failures)21:02
zigoTypeError: option values must be strings21:02
zigo2023-01-25 13:51:55,453 ERROR [stevedore.extension] Could not load 'swift': option values must be strings21:02
dansmithah, well, that's getting pretty old and crusty you know21:02
zigo:)21:02
dansmithprobably better to sync with abhi in (his) morning since he was around back then, and likely knows better how much of image_conversion was present in rocky (or not)21:03
zigoOk. Thanks.21:03
zigoI probably will just upload like this to security-master, and see if someone complains ! :)21:04
zigoIt's better than leaving glance unpatched.21:04
dansmithseems like a reasonable plan :)21:04
zigoAt least, as I wrote above, I'm sure it's not completely broken... :P21:05
dansmithyou said "upload an image", but you know this doesn't impact the upload workflow, right/21:05
dansmithalmost everyone uses upload, but this impacts *import* which is a two-phase commit sort of thing21:05
zigoRight, I just wanted to make sure Glance continued working...21:06
zigoI'm guessing it's a test issue only, so...21:06
dansmithack, well, in that same goal, since this doesn't impact upload, which is what almost everyone uses, it's also less likely to break that common workflow21:06
dansmithwhich makes merging it without tests... safer? :)21:07
zigoI've already done the patching work for 9 releases of openstack, times 3 packages (glance, nova, cinder), plus 2 packages of oslo.utils, that's 29 packages, I'm getting a little tired of this CVE ! :)21:07
dansmithheh, I bet :)21:07
zigoI still got some unpatched cinder version, moving to that. Thanks for your useful comments!21:09
dansmithnp21:09

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