Monday, 2021-11-29

opendevreviewMridula Joshi proposed openstack/glance-specs master: Append new tags to existing tags  https://review.opendev.org/c/openstack/glance-specs/+/81342904:53
opendevreviewTakashi Kajinami proposed openstack/glance master: Use LOG.warning instead of deprecated LOG.warn  https://review.opendev.org/c/openstack/glance/+/81959907:38
opendevreviewTakashi Kajinami proposed openstack/glance master: Use LOG.warning instead of deprecated LOG.warn  https://review.opendev.org/c/openstack/glance/+/81959908:08
opendevreviewTakashi Kajinami proposed openstack/glance master: Use LOG.warning instead of deprecated LOG.warn  https://review.opendev.org/c/openstack/glance/+/81959908:08
opendevreviewmitya-eremeev-2 proposed openstack/glance-specs master: Spec Lite: Add ability to purge all rows by glance-manage  https://review.opendev.org/c/openstack/glance-specs/+/81962211:16
opendevreviewmitya-eremeev-2 proposed openstack/glance-specs master: Spec Lite: Add ability to purge all rows by glance-manage  https://review.opendev.org/c/openstack/glance-specs/+/81962211:35
*** tosky is now known as Guest714213:37
*** tosky_ is now known as tosky13:37
dansmithwhoami-rajat: sorry I missed your ping, holiday in the us14:38
whoami-rajatdansmith, hey, np, i wanted to discuss the functional tests of cinder we have on glance side, that seems to be a problem every time i do a change in the cinder store14:49
whoami-rajatdansmith, we added them in victoria for the legacy image migration testing, I was thinking do we still need them in master14:49
whoami-rajatdansmith, also we don't have any other store related functional tests in glance14:50
dansmithwhoami-rajat: don't they kinda highlight when you're actually breaking something though? or are you talking about the ones that mock the cinderclient behavior?14:51
whoami-rajatdansmith, that's the cross project glance functional job that signifies the breaking, the breaking thing are the tests https://github.com/openstack/glance/blob/master/glance/tests/functional/v2/test_legacy_update_cinder_store.py14:53
whoami-rajatfor instance this is the current change failing https://review.opendev.org/c/openstack/glance_store/+/81872214:54
whoami-rajatand this is the fix in glance https://review.opendev.org/c/openstack/glance/+/81896614:55
whoami-rajatbut both are failing gate14:56
whoami-rajatand have dependency on each other14:57
dansmithyeah, but the reason for this is that this is three trees that are all very very closely dependent on each other14:59
dansmithwhich maybe isn't the best plan in general,14:59
dansmithbut the reason it's hard to make a change to one and not the other is because they're so tightly integrated15:00
dansmithso dropping this test is "easy" but it also does reduce our coverage it seems, unless you're totally sure that you cover all the cases in an integrated job15:00
dansmithI guess that wasn't really possible for the migration, so that's why we have these yeah?15:00
whoami-rajatdansmith, so we've 3 cases, 1) when admin performs the migration, 2) when image non-owner performs the migration 3) create image15:02
whoami-rajati think create image should be a generic functional test for all stores (we might have one already)15:03
whoami-rajatand we introduced these tests for single -> multiple store migration in victoria15:03
dansmithby "create image" you mean we confirm that when you create an image, we use the new thing from the start right? i.e no migration15:04
whoami-rajatyes15:04
whoami-rajathttps://github.com/openstack/glance/blob/master/glance/tests/functional/v2/test_legacy_update_cinder_store.py#L157-L15815:04
whoami-rajatbut again my point is, these are too specific to the cinder store and as you said tightly coupled15:05
dansmithyeah, I understand15:06
dansmithso we have this potential as long as you can configure glance as single or multi store right?15:06
dansmithbecause they could deploy xena as single and then reconfigure as multi and we'd need this migration code yeah?15:07
whoami-rajatyeah, that's the only reason to keep it, that we allow single store15:09
whoami-rajatbut didn't we do this location URL changes in other stores as well?15:10
dansmithI dunno15:10
dansmithsounds like if we get rid of single store (per the plan I think) then we could at *least* drop these then15:11
dansmithwithout a reconfigure job, I'm not sure how we could test that this actually works in an integrated job15:11
whoami-rajatabhishekk, can you confirm? do we have location changes for other stores or just cinder store? ^^15:12
dansmithand at the same time, if we're expecting a bunch of people to convert from single->multistore then it would be really (really) bad if this was broken when they tried :)15:12
abhishekkcinder only15:13
abhishekkbecause cinder location was just cinder://image-id 15:13
whoami-rajatack15:14
abhishekkalso dropping single store support will take more that one cycle (if we/me started to work on it now)15:15
abhishekks/that/than15:15
whoami-rajatack, so I'm not sure about the way forward since most of my glance store patches gets blocked by these tests15:16
dansmithwhoami-rajat: this can go in with no depends-on right? https://review.opendev.org/c/openstack/glance/+/81896615:17
dansmithif you merge the mocks first and then start using them, will that break the chain?15:17
abhishekklast time I remember we have done some additional mocking with comments?15:18
whoami-rajatthe mock fails since strutils will only be available after glance changes are released15:18
dansmithyeah, you just have to plan the dance properly so that you do things in a proper order15:18
dansmithglance-store you mean?15:19
dansmithI agree that the fact that glance-store is a library makes this very difficult :/15:19
whoami-rajatabhishekk, that was for backward compatibility but this imports a new library15:19
whoami-rajatdansmith, yes, glance-store, i tested the glance tests locally, it only passes when i copy the my glance store changes in the tox env directory15:20
abhishekkcan't we use oslo_utils, does it have that method?15:20
dansmithyeah this should be mocking the actual oslo thing and not cinderclient's import of it15:21
dansmithwhoami-rajat: maybe this should be mocking the entire cinderclient module and not trying to use part of it and mock other parts?15:22
whoami-rajatabhishekk, you mean mock oslo_utils?15:23
abhishekkyes15:23
whoami-rajatdansmith, I'm mocking the cinder store's import of it, i can try mocking the oslo_utils part15:24
whoami-rajatabhishekk, ack, will try that15:24
dansmithwhoami-rajat: you're mocking cinder's import of it now,15:24
dansmithI'm saying do what abhishekk is saying and mock the oslo bit itself15:24
whoami-rajatack, will try that15:24
abhishekkack, I will revisit my devstack patches which are required to deploy multistore for swift and ceph, so that we can drop single store deployment15:26
whoami-rajatyep, that worked, thanks abhishekk dansmith , will update the patch15:31
dansmithwhoami-rajat: sweet :)15:31
abhishekkcool15:31
dansmithreminder that this is my last working week of the year :/15:32
abhishekk:o15:32
opendevreviewRajat Dhasmana proposed openstack/glance master: Fix tests for logging connection info  https://review.opendev.org/c/openstack/glance/+/81896615:32
abhishekkdansmith, ack, thanks for the heads up, probably need your views on couple of open specs and RBAC stuff which we need to carry till you will be back15:34
dansmithyeah, point me at the important things15:34
whoami-rajatabhishekk, dansmith also there is one small patch with dansmith 's suggestion, if you've some time to take a look https://review.opendev.org/c/openstack/glance/+/80597415:34
dansmithI already have a very full list of stuff to get to this week, as you can imagine :(15:35
abhishekkwhoami-rajat, will take a look15:35
abhishekkdansmith, yes, I know 15:35
whoami-rajatack, thanks. and thanks again for the help :)15:35
abhishekkmay be we will have 10/15 mins sync in a day or two15:36
abhishekks/will/can15:37
dansmithsure15:38
abhishekkcool, thank you15:39
abhishekkI will add you as a reviewer to important specs15:39
dansmithxk15:44
dansmither, ack even :)15:44
* abhishekk signing out for the day16:23
*** tosky is now known as Guest716720:17
*** tosky_ is now known as tosky20:17
*** tosky_ is now known as tosky21:57

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