Friday, 2020-09-04

*** k_mouza has joined #openstack-glance00:09
*** k_mouza has quit IRC00:14
*** tkajinam has quit IRC00:59
*** tkajinam has joined #openstack-glance00:59
*** Liang__ has joined #openstack-glance01:08
*** gyee has quit IRC01:32
*** rcernin has quit IRC02:09
*** rcernin has joined #openstack-glance02:18
*** rcernin has quit IRC02:18
*** rcernin has joined #openstack-glance02:19
*** Liang__ has quit IRC03:11
*** Liang__ has joined #openstack-glance03:16
*** zzzeek has quit IRC03:17
*** zzzeek has joined #openstack-glance03:18
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-glance04:33
*** udesale has joined #openstack-glance04:44
*** belmoreira has joined #openstack-glance06:29
*** ralonsoh has joined #openstack-glance07:03
*** njohnston has quit IRC07:15
*** rcernin_ has joined #openstack-glance07:42
*** rcernin has quit IRC07:44
*** zzzeek has quit IRC07:45
*** zzzeek has joined #openstack-glance07:47
*** rosmaita has quit IRC07:51
*** rcernin_ has quit IRC07:56
*** rosmaita has joined #openstack-glance08:02
*** Liang__ has quit IRC08:32
*** Liang__ has joined #openstack-glance08:34
*** Liang__ has quit IRC09:33
*** whoami-rajat__ has joined #openstack-glance09:56
*** zzzeek has quit IRC11:20
*** zzzeek has joined #openstack-glance11:21
*** udesale_ has joined #openstack-glance11:28
*** udesale has quit IRC11:31
*** nikparasyr has joined #openstack-glance12:15
*** lpetrut has joined #openstack-glance13:21
*** zzzeek has quit IRC14:11
*** zzzeek has joined #openstack-glance14:12
*** priteau has joined #openstack-glance14:43
*** zzzeek has quit IRC14:56
*** zzzeek has joined #openstack-glance14:59
*** belmoreira has quit IRC15:03
*** lpetrut has quit IRC15:06
*** abhishekk is now known as abhishekk|afk15:42
*** gyee has joined #openstack-glance15:44
*** abhishekk|afk is now known as abhishekk16:10
*** nikparasyr has left #openstack-glance16:11
*** udesale_ has quit IRC16:11
*** dosaboy has joined #openstack-glance16:49
whoami-rajat__ping dansmith17:30
dansmitho/17:30
whoami-rajat__so for the functional test we have to setup the single store and create image then stop server (which i'm not able to find) and setup multiple stores then get the image17:31
whoami-rajat__how do i refresh the conf and restart the service there?17:31
whoami-rajat__i saw this msg https://github.com/openstack/glance/blob/master/glance/tests/functional/__init__.py#L1586-L159117:32
whoami-rajat__but still didn't get a good idea17:32
dansmithyeah, you don't really need to restart it because it doesn't really start anything anyway17:32
dansmithif there's something in the init process that looks at the config, then you can just run start_server() again and it should be fine,17:33
dansmithbut unless something is cached somewhere, there's probably not even a need to do that,17:33
dansmithjust tweak your config and run another api operation17:33
whoami-rajat__oh ok17:37
whoami-rajat__sounds good17:37
dansmiththat's the benefit of this base class. it's very direct into the api17:37
whoami-rajat__and can you provide an idea about how do i unset the config options of single store?17:37
dansmithwell, you just need to change some configs back to their default values or something right?17:38
whoami-rajat__yeah i was thinking the same but i thought there was a way to unset things17:40
whoami-rajat__ok i will try that17:40
whoami-rajat__thanks17:40
dansmithnot sure about that, I think just setting them back to their defaults is all I'd try to do17:41
whoami-rajat__ack17:41
*** ralonsoh has quit IRC17:48
*** zzzeek has quit IRC18:19
*** zzzeek has joined #openstack-glance18:20
*** priteau has quit IRC19:00
openstackgerritRajat Dhasmana proposed openstack/glance master: Support cinder multiple stores  https://review.opendev.org/74803919:13
openstackgerritRajat Dhasmana proposed openstack/glance master: Support cinder multiple stores  https://review.opendev.org/74803919:16
openstackgerritRajat Dhasmana proposed openstack/glance master: Adding gate job for glance cinder store  https://review.opendev.org/75001819:19
whoami-rajat__dansmith: ^^ I've updated the patches with functional tests and moved the gate job to a different patch (to remove devstack dependency while merging), can you please take a look19:21
dansmithwhoami-rajat__: left some comments19:43
dansmithfunctional test is nice, thanks for doing that19:43
dansmithFYI, US holiday on monday and I'll be heading out of here in a little bit19:44
whoami-rajat__oh19:50
whoami-rajat__hmm19:50
whoami-rajat__your comments might take some time to fix19:52
dansmithI think they should be pretty straightforward, so if I'm not around on monday and abhishekk is happy with it, then he can just go for it19:54
dansmithno need to wait for me19:54
*** zzzeek has quit IRC20:06
*** zzzeek has joined #openstack-glance20:10
openstackgerritRajat Dhasmana proposed openstack/glance master: Support cinder multiple stores  https://review.opendev.org/74803920:48
whoami-rajat__dansmith: ^ updated20:50
dansmithwhoami-rajat__: looks better, but I'm still not sure why you're passing in identical values in the unit test, and why you seem to be asserting things that are wrong (unless I'm missing something)21:00
dansmithyou're asserting that the url is not changed, which is good, but the url is still wrongly formatted, AFAICT21:00
whoami-rajat__dansmith: if there is no valid store configured for the image then the url remains the same21:04
dansmithwhoami-rajat__: you mean if store_instance.is_image_associated_with_store() returns False for all of the locations right?21:05
whoami-rajat__suppose we have 2 stores with type1 and type2 as cinder_volume_types and there's an image-volume with typ3 then location url won't change for this image i.e. no imgration21:05
whoami-rajat__for a particular image when it returns false then the location values aren't updated21:05
dansmithokay, I guess maybe I'm thinking about this differently,21:06
whoami-rajat__dansmith: also doesn't functional tests install test-requirements?21:07
dansmithI'm thinking of the top case as the "needs migration" case and the bottom one as "migration is already done",21:07
whoami-rajat__no, both are legacy images but for 1st case a valid store exists and 2nd case no valid store exists21:07
dansmithbut I think what you're saying is that the bottom one is "no migration can/should be done because that store does not have a volume_type set" ... is that right?21:07
whoami-rajat__kind of, yes21:08
dansmithwhat does "nov valid store exists" mean in reality?21:08
dansmithlike, what real world situation causes that to happen21:08
whoami-rajat__the cinder multiple stores are differentiated on the basis of cinder_volume_type, take the example above of two stores defined with type1 and typ221:09
whoami-rajat__suppose a legacy image exists whose image-volume has volume type as type321:10
whoami-rajat__there is no valid store in which it can be moved21:10
whoami-rajat__i.e. bad upgrade21:10
whoami-rajat__i think abhishek has put up a document recently explaining how to handle all these upgrade cases21:10
dansmithright, but what does that mean? after someone has upgraded to V, and then changes their stores to point to something other than what the default volume type was in their U deployment where the images are created?21:11
whoami-rajat__yep21:11
whoami-rajat__also in U, it is not mandatory to set the cinder_volume_type21:12
whoami-rajat__so the image-volume's created could be of any type21:12
whoami-rajat__therefore we need to define all possible stores that exist in our image-volume's to migrate alll images21:12
dansmithokay, I see now21:12
dansmithI really think more words in here would help make that clear, because I really thought you were testing two different scenarios here than I guess you are21:14
whoami-rajat__yeah i'm not very good with words/explanation stuff, i think Abhishek's document would clear things more21:15
whoami-rajat__https://review.opendev.org/#/c/749438/21:16
dansmithI'm commenting with suggested words, just a sec21:18
dansmithwhoami-rajat__: can you answer my question about why you're always passing in metadata, store, and expected as identical things?21:18
whoami-rajat__dansmith: i also don't remember exactly, i think i wrote some tests earlier with different values and this is a residue, i will move them inside the helper method21:25
dansmithack21:25
dansmithwhoami-rajat__: do those words on the test I commented make sense?21:25
whoami-rajat__that's like a documentation for the tests :P but if it makes the tests easier to understand then works for me21:29
dansmithsure, the tests should be like further documentation for the code... they should be readable to understand why something is tested, which helps understand why the code is doing what it is21:30
dansmithbut like I said, it makes sense to put some of that in the docstring as well21:30
whoami-rajat__ack, it's very late here so i will probably update it on monday, thanks for the reviews dansmith21:32
dansmithack, have a good weekend!21:32
whoami-rajat__you too have a great weekend!21:33
*** rcernin_ has joined #openstack-glance21:52
*** rcernin_ has quit IRC22:29
*** whoami-rajat__ has quit IRC23:57

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