Thursday, 2024-07-11

opendevreviewSam Morrison proposed openstack/glance master: Fix typo in glance-api-paste  https://review.opendev.org/c/openstack/glance/+/92391100:58
mnaserelodilles: fyi Rico has been pushing up some patches from our side to try and fix zed tests09:55
opendevreviewSam Morrison proposed openstack/glance master: Fix /healthcheck url typo in glance-api-paste  https://review.opendev.org/c/openstack/glance/+/92391110:45
elodillesmnaser: thanks for the heads up and for working on this!10:57
opendevreviewPranali Deore proposed openstack/glance-specs master: [Spec] Add new Calculate Hash API  https://review.opendev.org/c/openstack/glance-specs/+/92201110:58
mnaserelodilles: https://review.opendev.org/c/openstack/glance/+/923922 .. I dont see Jay here but this looks good to me too and has a +1 from a glance core 13:35
pdeoreabhishekk, rosmaita, dansmith, croelandt, mrjoshi glance weekly meeting in 10 minutes at #openstack-meeting13:51
opendevreviewCyril Roelandt proposed openstack/glance master: Python3.12: do not use ssl.wrap_socket  https://review.opendev.org/c/openstack/glance/+/92296214:10
abhishekkcroelandt: could you try ^^ in env by running glance-cache-manage and any command related to it?14:13
croelandtabhishekk: oh glacne-cache-manage is not tested through unit/functional tests?14:23
abhishekkI guess not14:25
croelandtok, let me fire up devstack :)14:26
abhishekkdo it with swift14:27
abhishekkI want you to test one more scenario14:27
abhishekkhttps://review.opendev.org/c/openstack/glance/+/92017014:28
abhishekkWhat if only one swift store is configured with both above options in mentioned patch is enabled?14:29
abhishekkcroelandt: can you remove your +w on above patch14:31
croelandtdone14:32
abhishekkcool, thank you14:32
abhishekkit will not start glance service if single store is configured but error given is misleading, may be need to file another error15:09
abhishekkanother bug I mean15:09
croelandtabhishekk: or maybe we treat having multitenant+config like an error15:22
croelandtfail early instead of silently ignoring that15:23
croelandtI think it will be easier to debug for sysadmins15:23
abhishekkagree15:23
abhishekkSo you mean to say instead of adding this change here in glance we move to glance-store?15:23
croelandthmm15:24
abhishekkIt is already handled there, problem is here in stores-info we read from glance config and not from in memory store map15:24
croelandtthis would be even better not to have store-specific code in Glance15:24
croelandtso we cannot fail in glance_store?15:25
abhishekkhttps://github.com/openstack/glance_store/blob/master/glance_store/_drivers/swift/store.py#L74415:25
abhishekkWe are failing in glance store and excluding that store if there are multiple stores15:25
croelandtq15:26
abhishekkBut in case there is only one store then it fails to start the service which is expected but error message is misleading15:26
croelandtoops15:26
abhishekkSo either we need to change the stores-info discovery API to cross check with in memory store map available rather that just returning values from config files 15:27
croelandtshould get_stores fail in glance/api/v2/discovery.py?15:27
croelandtlike if backends == [] then we fail?15:28
abhishekkIN case of single store or multiple stores?15:28
croelandtIn any case? If glance has no valid backends configure, is it worth starting the service?15:28
abhishekkIf backends == [] then we should return 400 or 404 error I guess15:28
croelandtyes15:29
abhishekkIT does not start service if glance does not have any valid store configured15:29
croelandtok15:29
abhishekkSo stores-info discovery will return 503 error in that case15:29
croelandtso pdeore's patch seems fine, if we just raise 404 in case we found no backends?15:29
abhishekkRight15:30
abhishekkI think that is sufficient to alert admin to go and check what is wrong15:30
abhishekk404 with Valid reason I will say!!15:30
abhishekkBut will it come to there, that is the question15:31
croelandtbecause you think it might fail with BadStoreConfiguration before?15:31
abhishekkBecause if none of the backed is configured correctly, service will not start, that means API will not be served15:31
abhishekkyes15:31
croelandthm, interesting15:32
abhishekkWe need to add log message in glance-store, we are just ignoring it there if there are multiple backends15:32
abhishekkhttps://github.com/openstack/glance_store/blob/master/glance_store/multi_backend.py#L20015:33
croelandtthat FIXME at line 18915:34
abhishekk:D15:34
croelandtI don't know if we "just" warn or if we go "BAM! STOP! Configure this shit properly"15:34
abhishekkthat is there since beginning 15:34
croelandtyeah it's always like this :)15:34
croelandtI think maybe now we just warn15:34
croelandtbut next cycle we might want to make it stricter15:35
croelandtAdmins don't read logs when everything seems to work15:35
abhishekkIn case of single store i.e. traditional single store (not multi) we should go Bam15:35
abhishekkMay be good topic for PTG discussion15:36
abhishekkCould you please make a note of it?15:36
croelandtyeah for multistore it's not as simple15:36
croelandtbut I still feel that if an admin configures 3 stores and 1 of them is misconfigured...15:36
croelandtthey will probably want to know15:36
croelandtaren't we going to remove single store eventually?15:37
abhishekkright, that is why we should discuss this and take decision15:37
croelandtok15:37
abhishekkthat is also TODO since Train :P15:37
croelandtI'll add it to the Etherpad once Pranali has created it15:37
abhishekk++15:37
abhishekkthank you!!15:37
abhishekkMeantime I will report a bug tomorrow so that we can have it posted somewhere15:38
abhishekkYou can reapprove the patch :D15:38
croelandtyeah it's still an improvement :)15:40
abhishekk++15:48
opendevreviewMerged openstack/glance master: Fix 500 if multi-tenant swift is used  https://review.opendev.org/c/openstack/glance/+/92017022:55

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