*** gyee has quit IRC | 00:22 | |
*** brinzhang has joined #openstack-glance | 00:41 | |
*** Liang__ has joined #openstack-glance | 01:05 | |
*** jmlowe has quit IRC | 01:09 | |
*** Liang__ is now known as LiangFang | 01:21 | |
*** jmlowe has joined #openstack-glance | 02:58 | |
*** jmlowe has quit IRC | 03:05 | |
*** udesale has joined #openstack-glance | 04:04 | |
*** pcaruana has joined #openstack-glance | 04:42 | |
*** ratailor has joined #openstack-glance | 04:49 | |
*** Luzi has joined #openstack-glance | 04:50 | |
*** abhishekk has joined #openstack-glance | 04:54 | |
*** rcernin_ has joined #openstack-glance | 04:56 | |
*** rcernin has quit IRC | 04:59 | |
*** belmoreira has joined #openstack-glance | 06:17 | |
*** openstackgerrit has joined #openstack-glance | 06:25 | |
openstackgerrit | Asmita Singh proposed openstack/glance_store master: Remove warning filter https://review.opendev.org/683034 | 06:25 |
---|---|---|
*** rcernin_ has quit IRC | 06:48 | |
*** takamatsu has quit IRC | 06:50 | |
*** LiangFang has quit IRC | 06:51 | |
*** Liang__ has joined #openstack-glance | 06:51 | |
*** Liang__ is now known as LiangFang | 06:52 | |
*** udesale has quit IRC | 06:57 | |
*** udesale has joined #openstack-glance | 06:58 | |
*** awalende has joined #openstack-glance | 07:08 | |
*** udesale has quit IRC | 07:18 | |
*** udesale has joined #openstack-glance | 07:19 | |
*** belmoreira has quit IRC | 07:25 | |
*** tesseract has joined #openstack-glance | 07:26 | |
*** takamatsu has joined #openstack-glance | 07:44 | |
*** tkajinam has quit IRC | 08:19 | |
openstackgerrit | Akihiro Motoki proposed openstack/glance master: doc: Clean up unnecessary left vertical lines https://review.opendev.org/682791 | 08:28 |
*** zzzeek has quit IRC | 08:30 | |
*** zzzeek has joined #openstack-glance | 08:31 | |
*** lpetrut has joined #openstack-glance | 08:33 | |
openstackgerrit | Akihiro Motoki proposed openstack/glance master: Fix DeprecationWarning: invalid escape sequence https://review.opendev.org/683055 | 08:37 |
*** lpetrut has quit IRC | 08:39 | |
*** takamatsu_ has joined #openstack-glance | 08:46 | |
*** takamatsu has quit IRC | 08:46 | |
*** lpetrut has joined #openstack-glance | 09:05 | |
*** takamatsu_ has quit IRC | 09:19 | |
jokke_ | abhishekk: you around budyd? | 09:27 |
abhishekk | jokke_, yes, I am | 09:27 |
jokke_ | cool ... the storage option registeration patch | 09:28 |
abhishekk | yes | 09:28 |
jokke_ | I'm missing something from Brian's response. So the reserved stores comes from config file, not from the codebase? | 09:29 |
abhishekk | nope, reserved_stores comes from codebase | 09:30 |
jokke_ | ok, and they com from glance_store or from glance? | 09:30 |
abhishekk | they came from glance_store | 09:31 |
jokke_ | ok, so my point was correct. If say Glare2 would use glance_store, they would have the same reserved stores, right? | 09:32 |
abhishekk | what brian is saying that, if any other project wants to use glance_store and then need to keep some stores reserved then they can do so by passing the list of stores to the glance_store | 09:32 |
abhishekk | so if glare want to use glance_store then they can define what stores they want to reserve by passing it to glance_store while initilizing it | 09:32 |
jokke_ | ok, so is there a reason why we are not doing that and instead hardcoding the list in glance_store? | 09:33 |
jokke_ | This really brings my hatred up about the fact that we made the glance_store "independent" lib ... it would be so much easier to deal with if it wasn't | 09:34 |
abhishekk | I have hardcoded it earlier, but got review comments about what if we decide to change the reserved store names or what if we want additional store as a reserved | 09:34 |
abhishekk | https://github.com/openstack/glance_store/blob/master/glance_store/multi_backend.py#L106 | 09:34 |
*** LiangFang has quit IRC | 09:35 | |
*** takamatsu has joined #openstack-glance | 09:36 | |
jokke_ | yeah, so that makes sense. It will register the option groups from glance_store ... we really should refactor that a bit and remove the reservations from glance_store and pass that list from Glance as well. More of a matter of being good citizens than that it would actually matter a lot | 09:38 |
jokke_ | now when we still have a chance for that before the glance 19 is being released | 09:38 |
abhishekk | so you are saying we should register these options from glance instead registering the same in store? | 09:39 |
jokke_ | No I'm saying we should keep using that to register them from glance_store | 09:39 |
abhishekk | jokke_, then we are doing it same at the moment | 09:40 |
abhishekk | we are passing reserved_store list from glance to glance_store | 09:40 |
jokke_ | we should remove the hardcoded reserved store IDs from glance_store and have glance passing that list to glance_store as any other consumer would | 09:40 |
jokke_ | but oyu just said they are hardcoded in glance_store, not in glance :P | 09:40 |
abhishekk | https://review.opendev.org/#/c/611253/21/glance/common/wsgi.py@502 | 09:40 |
abhishekk | No, that was my bad | 09:41 |
jokke_ | now that makes much more sense | 09:41 |
jokke_ | so any idea why it didn't blow up already on sample config generation? | 09:42 |
jokke_ | because that has not merged yet so the store doesn't try to register them! | 09:43 |
abhishekk | that is because this patch is not merged yet | 09:43 |
*** jawad_axd has joined #openstack-glance | 09:44 | |
jokke_ | makes much more sense to me now | 09:44 |
abhishekk | :D | 09:44 |
abhishekk | it was hard to find out the reason as functional tests suddenly started failing on the rethinking FS patch | 09:45 |
jokke_ | ooofffff | 09:46 |
jokke_ | well nice catch | 09:46 |
abhishekk | yeah, and the failure was always throwing parser error :D | 09:46 |
jokke_ | ffs | 09:47 |
jokke_ | hmm-m waait | 09:49 |
abhishekk | what? | 09:50 |
jokke_ | let me see that Brian's patch | 09:50 |
abhishekk | ok, that will generate sample config file without issue | 09:50 |
jokke_ | Ok, what we really should do is to revert that patch, as none of that is utilized | 09:54 |
jokke_ | it really shouldn't be there | 09:54 |
abhishekk | it should only used for adding those reserved store section in sample config files | 09:55 |
jokke_ | and then we should have that function which registers the reserved stores in the first place, register their config options as well so it's coming from single source and is easily traceable | 09:55 |
abhishekk | in that case we need to do changes in glance_store, release it and then use it in glance | 09:56 |
jokke_ | 'cause now in that sample config addition we're importing from glance_store._drivers.filesystem import _FILESYSTEM_CONFIGS as fs_cfg to hack it coming partally from glance and partially from glance_store | 09:57 |
jokke_ | yup | 09:57 |
jokke_ | so this was the part that really messed me up ... as we're doing this messed up thing where we're using just bigger hammer as every issue seems like a nail | 09:58 |
abhishekk | so the other option is we should revert this sample config generation patch and document it properly so that operator should include reserved_store section in api.conf? | 09:59 |
*** takamatsu has quit IRC | 10:00 | |
jokke_ | we should document that anyways as our sample config files are fecking mess and no-one will notice those from there even by accident. But we should have them there so peope knows what they are looking for | 10:00 |
abhishekk | how current store drivers options are getting added in sample config file? | 10:01 |
jokke_ | and hopefully the configgenerator will be smart enough to be able to process thos for me :P | 10:01 |
*** udesale has quit IRC | 10:01 | |
jokke_ | they are defined in glance_store and pulled in from there | 10:01 |
jokke_ | now what I'm interested to see is how configgen will deal with it when they are dynamically registered | 10:02 |
abhishekk | yes | 10:02 |
jokke_ | 'cause I'm literally adding a for loop into that register config function, that will iterate the reserved stores list and register their config options as well as the groups | 10:03 |
abhishekk | yes | 10:03 |
jokke_ | That way you can throw {"reserved store 1": "file", {"reserved store 2": "file", {"reserved store 3": "file", | 10:04 |
jokke_ | That way you can throw {"reserved store 1": "file", "reserved store 2": "file", "reserved store 3": "file",} or {"reserved store 1": "file", "reserved store 2": "file",} just when you're initializing glance_store and it will look for correct configs without any other changes | 10:05 |
*** takamatsu has joined #openstack-glance | 10:06 | |
jokke_ | and without needing to hardcode any of those config options to either side | 10:06 |
abhishekk | that is what currently it is doing | 10:06 |
jokke_ | no it's not, with Brian's patch those config options are hardcoded in Glance | 10:06 |
abhishekk | the only problem is filesystem_store_datadir has default value of /var/lib/glance/images so all the reserved stores will get same data dir path | 10:07 |
abhishekk | jokke_, yes | 10:07 |
jokke_ | so if we dynamically create the config options as well as their groups, we can avoid that | 10:08 |
abhishekk | I guess I am not able to see the picture you are painting :D | 10:09 |
jokke_ | do you have time to hop on BJ? | 10:10 |
abhishekk | I need to go back in 20 minutes | 10:11 |
abhishekk | lets hop on for 10-15 minutes | 10:11 |
jokke_ | that's fine ... lets take quick 10min one on mine | 10:11 |
abhishekk | ok | 10:11 |
*** rcernin_ has joined #openstack-glance | 10:15 | |
*** abhishekk has quit IRC | 10:25 | |
*** udesale has joined #openstack-glance | 10:32 | |
*** trident has quit IRC | 10:35 | |
*** rcernin_ has quit IRC | 10:36 | |
*** udesale has quit IRC | 10:37 | |
*** udesale has joined #openstack-glance | 10:37 | |
*** trident has joined #openstack-glance | 10:48 | |
*** pcaruana has quit IRC | 10:54 | |
*** takamatsu has quit IRC | 11:00 | |
*** udesale has quit IRC | 11:01 | |
*** takamatsu has joined #openstack-glance | 11:06 | |
*** jmlowe has joined #openstack-glance | 11:14 | |
*** pcaruana has joined #openstack-glance | 11:17 | |
*** takamatsu has quit IRC | 11:22 | |
*** abhishekk has joined #openstack-glance | 11:23 | |
*** takamatsu has joined #openstack-glance | 11:28 | |
openstackgerrit | Erno Kuvaja proposed openstack/glance master: Revert "Correct the deprecation messages of local dir config" https://review.opendev.org/683114 | 11:41 |
openstackgerrit | Erno Kuvaja proposed openstack/glance master: Revert "Add reserved stores to the sample config file" https://review.opendev.org/683115 | 11:41 |
openstackgerrit | Erno Kuvaja proposed openstack/glance_store master: Register reserved store configs https://review.opendev.org/683116 | 11:48 |
*** goldyfruit_ has quit IRC | 12:11 | |
openstackgerrit | Erno Kuvaja proposed openstack/glance_store master: Register reserved store configs https://review.opendev.org/683116 | 12:21 |
*** takamatsu has quit IRC | 12:21 | |
*** takamatsu has joined #openstack-glance | 12:27 | |
abhishekk | jokke_, | 12:30 |
abhishekk | around? | 12:30 |
jokke_ | yup | 12:36 |
*** priteau has joined #openstack-glance | 12:36 | |
jokke_ | abhishekk: I think I got it https://review.opendev.org/683116 and then when your rethink fs access merges I have plan how to include that to the sample configs :D | 12:38 |
*** takamatsu has quit IRC | 12:38 | |
abhishekk | jokke_, testing your patch | 12:39 |
*** jmlowe has quit IRC | 12:39 | |
abhishekk | it doesn't generates staging and tasks directories :( | 12:40 |
abhishekk | fails with permission error on /var/lib/glance/os_glance_tasks_store | 12:41 |
abhishekk | same for staging store | 12:41 |
jokke_ | so that's permission issue | 12:43 |
jokke_ | it tries | 12:44 |
jokke_ | which is good sign | 12:44 |
abhishekk | yes | 12:44 |
jokke_ | but it is able to create /var/lib/glance/images? | 12:45 |
abhishekk | If I change path to /opt/stack/data/glance then it's working | 12:46 |
abhishekk | I am using devstack setup so it uses path of /opt/stack/data/glance | 12:46 |
jokke_ | ok, cool so that is just devstack thing | 12:46 |
jokke_ | yeah | 12:46 |
abhishekk | yes, I have made one change | 12:47 |
abhishekk | with your patch it is giving duplicate option error | 12:48 |
jokke_ | which means that we need to make devstack change before we can merge the rethinking fs access patch to add those into the devstack config ti give it correct paths | 12:48 |
*** lpetrut has quit IRC | 12:48 | |
jokke_ | abhishekk: did you revert the two patches from glance my glance_store patch is depending on? | 12:49 |
abhishekk | jokke_, I have commented those | 12:49 |
jokke_ | abhishekk: you need to apply https://review.opendev.org/683115 & https://review.opendev.org/683114 to glance | 12:49 |
abhishekk | in your patch at line 130 you are adding reserved_stores to enabled_backends option | 12:50 |
abhishekk | and then registering reserved store options using template, then going ahead in for loop of line #151 those options gets registered again | 12:51 |
jokke_ | abhishekk: to conf.enabled_backends not enabled_backends ... see the last revision | 12:51 |
abhishekk | jokke_, even though I didn't apply those two patches and just commented out the changes it will work | 12:52 |
jokke_ | I found that hard way :D | 12:52 |
abhishekk | I have just commented out 4 lines which were doing job of registration | 12:53 |
jokke_ | well yeah | 12:54 |
*** zhengMa has joined #openstack-glance | 12:55 | |
jokke_ | if you do half of the patching manually it will work | 12:55 |
jokke_ | but if you apply those 3 patches (the two reverts to glance and that registering patch to glance_store) it should just work as well | 12:55 |
*** zzzeek has quit IRC | 12:56 | |
jokke_ | at least it passes the tests and that part is actually well tested :D | 12:56 |
abhishekk | :D | 12:56 |
*** jmlowe has joined #openstack-glance | 12:57 | |
*** zzzeek has joined #openstack-glance | 12:58 | |
jokke_ | and I'm working on glance/common/sample_config.py that we can use to pull it all into the sample configs without needing to manually maintain it :P | 12:59 |
jokke_ | that will sit on top of your rethinking fs access patch | 13:00 |
abhishekk | jokke_, your new patch is working fine | 13:03 |
abhishekk | I have tried creating image via import | 13:03 |
abhishekk | just need to change the default path to /opt/stack/data/glance instead of /var/lib/glance | 13:04 |
jokke_ | <3 | 13:06 |
jokke_ | that menas we can automate the maintenance of the reserved stores into sample configs \\o \o/ o// o/7 | 13:07 |
jokke_ | and it will work even if you add/remove/change the reserved store names without doing any other changes | 13:08 |
abhishekk | yes | 13:09 |
jokke_ | the logic is also pretty simple so if we want to start supporting, say ceph for reserved stores, we can just add condition for that in the register_store_opts and use rbd templating for those | 13:11 |
jokke_ | literally just need to check `if reserved_stores[key] == "file"` do what we do now `== "ceph"` use ceph config template | 13:13 |
*** takamatsu has joined #openstack-glance | 13:16 | |
*** goldyfruit_ has joined #openstack-glance | 13:16 | |
*** awalende has quit IRC | 13:18 | |
abhishekk | yes | 13:18 |
*** udesale has joined #openstack-glance | 13:23 | |
*** udesale has quit IRC | 13:24 | |
jokke_ | smcginnis already +2'd the reverts, if you abhishekk also agree on this approach, I'll just go and get the deprecations back in there and we add the reserved store stuff with/after your fs patch | 13:24 |
jokke_ | as they are the collateral for the revert | 13:25 |
abhishekk | jokke_, looks good to me as well | 13:25 |
abhishekk | In addition we need to do store release as well | 13:25 |
*** udesale has joined #openstack-glance | 13:25 | |
jokke_ | yeah, need to do 1.0.1 finally :P | 13:26 |
abhishekk | :D | 13:26 |
jokke_ | I'm very positively surprised it took us this long and was this small thing | 13:26 |
abhishekk | :D | 13:26 |
jokke_ | I was expecting something much bigger thinking how big the 1.0.0 was | 13:26 |
jokke_ | so well done | 13:26 |
abhishekk | ~/ | 13:27 |
*** pcaruana has quit IRC | 13:28 | |
*** jawad_axd has quit IRC | 13:51 | |
*** ratailor has quit IRC | 13:51 | |
*** jawad_axd has joined #openstack-glance | 13:53 | |
*** Luzi has quit IRC | 13:53 | |
*** pcaruana has joined #openstack-glance | 13:54 | |
*** jawad_axd has quit IRC | 13:57 | |
*** tesseract has quit IRC | 14:00 | |
abhishekk | jokke_, around? | 14:04 |
jokke_ | yeh | 14:06 |
*** belmoreira has joined #openstack-glance | 14:07 | |
*** goldyfruit___ has joined #openstack-glance | 14:15 | |
*** takamatsu has quit IRC | 14:16 | |
*** goldyfruit_ has quit IRC | 14:18 | |
*** pcaruana has quit IRC | 14:33 | |
*** jawad_axd has joined #openstack-glance | 14:40 | |
*** jawad_axd has quit IRC | 14:44 | |
*** gyee has joined #openstack-glance | 14:56 | |
rosmaita | so belmoreira, do you know what to do to revise your patch? | 15:00 |
abhishekk | also add train-backport-potential tag to your bug | 15:02 |
abhishekk | back in a moment | 15:02 |
belmoreira | yes, I will include this functionality when purging but preserving the data in images. Will need to have a look into it. As been a long time | 15:05 |
belmoreira | In a different topic | 15:06 |
belmoreira | a talked already with jokke_ about https://storyboard.openstack.org/#!/story/2006561 and https://bugs.launchpad.net/python-glanceclient/+bug/1844298 | 15:07 |
openstack | Launchpad bug 1844298 in Glance Client "python-glanceclient doesn't implement find() method" [Undecided,New] | 15:07 |
belmoreira | for me this a high priority issue since it affects glance usability | 15:07 |
belmoreira | however I'm clueless how to move this forward | 15:07 |
abhishekk | belmoreira, ideal way is when your patch doesn't get attention ping reviewers on the IRC channel or weekly meeting | 15:09 |
abhishekk | we are sorry that we didn't get attention towards this patch | 15:10 |
belmoreira | abhishekk ack | 15:11 |
abhishekk | at this moment, if it is possible for you to modify your patch with the solution given by jokke_ and rosmaita then it will be good enough to have this in rc1 | 15:11 |
rosmaita | belmoreira: i think you just basically add your obfuscate code to the regular purge command | 15:12 |
belmoreira | abhishekk rosmaita yes, will try to do it asap. But probably will only have time by the beginning of next week. | 15:13 |
abhishekk | rosmaita, I hope you are aware about the approach we are taking to fix the reserved stores config option problem | 15:14 |
abhishekk | belmoreira, anyhow rc1 will be released around end of next week | 15:14 |
rosmaita | i saw some of the discussion, didn't think there was that big a change? | 15:15 |
abhishekk | s/anyhow/anyway | 15:15 |
rosmaita | or do i need to read back more carefully | 15:15 |
jokke_ | belmoreira: if it misses the release boat, as long as the impact is minimal outside of the necessary and the code is well contained, there is no problem backporting it | 15:15 |
abhishekk | ++ | 15:15 |
rosmaita | yeah, should be a pretty clean backport | 15:15 |
abhishekk | rosmaita, no need, just to make sure you were aware of the change | 15:15 |
jokke_ | so you will have it in Train, stain, and I think Rocky at least once it's done | 15:16 |
rosmaita | cool, sorry about that brainfart registering the sample config | 15:16 |
abhishekk | so now we are registering these options in stores separately (thanks to jokke_ ) which can be used to get in sample config as well | 15:16 |
abhishekk | rosmaita, no problem :D | 15:17 |
jokke_ | rosmaita: it was actually pretty good thing. It kind of surfaced a flaw that is nice to have fixed now | 15:17 |
jokke_ | makes maintenance in future easier | 15:17 |
rosmaita | that is good | 15:17 |
abhishekk | jokke_, so are you going to propose deprecation patch differently? | 15:17 |
jokke_ | rosmaita: th deprecations are collateral on this so I will just propose them back in and put you in as co-author | 15:17 |
rosmaita | that's fine with me | 15:18 |
jokke_ | rosmaita: I think I figured out a way how we can have the configs registered automatically (and also being available for configgen) without need for anything else than changing the dict of reserved_stores | 15:19 |
jokke_ | So if we have new reserved stores in future, we don't need to manually do all that work to get them populated in the sample configs | 15:20 |
jokke_ | And it's not even absolutely horrible hack :D | 15:21 |
abhishekk | I will approve those reverts once gates passes | 15:23 |
abhishekk | also jokke_ could you please have a look at location compatibility patch? | 15:23 |
jokke_ | don't hold your breath while waiting. We have stuff 7hrs in queue and not ran a single test yet | 15:23 |
abhishekk | or we can have a look it together next week :D | 15:23 |
jokke_ | so maybe tmorrow morn | 15:24 |
abhishekk | ack | 15:24 |
abhishekk | signing of for the day | 15:24 |
abhishekk | see you guys soon \o/ | 15:24 |
jokke_ | night o/~ | 15:25 |
*** abhishekk has quit IRC | 15:26 | |
*** zhengMa has quit IRC | 15:39 | |
*** jawad_axd has joined #openstack-glance | 15:42 | |
*** jawad_axd has quit IRC | 15:47 | |
*** openstackgerrit has quit IRC | 16:06 | |
*** takamatsu has joined #openstack-glance | 16:06 | |
*** udesale has quit IRC | 16:27 | |
*** udesale has joined #openstack-glance | 16:28 | |
*** itlinux has joined #openstack-glance | 16:35 | |
*** udesale has quit IRC | 16:52 | |
*** jmlowe has quit IRC | 16:59 | |
*** pcaruana has joined #openstack-glance | 17:01 | |
*** jmlowe has joined #openstack-glance | 17:02 | |
*** pcaruana has quit IRC | 17:14 | |
*** gmann_afk is now known as gmann | 17:21 | |
*** pcaruana has joined #openstack-glance | 17:25 | |
*** jawad_axd has joined #openstack-glance | 17:37 | |
*** pcaruana has quit IRC | 17:55 | |
*** priteau has quit IRC | 18:07 | |
*** jawad_axd has quit IRC | 18:21 | |
*** priteau has joined #openstack-glance | 18:26 | |
*** priteau has quit IRC | 18:29 | |
*** trident has quit IRC | 18:45 | |
*** mvkr has quit IRC | 18:48 | |
*** trident has joined #openstack-glance | 18:55 | |
*** trident has quit IRC | 19:01 | |
*** trident has joined #openstack-glance | 19:10 | |
*** jmlowe has quit IRC | 19:45 | |
*** pcaruana has joined #openstack-glance | 19:51 | |
*** pcaruana has quit IRC | 20:31 | |
*** benj_ has quit IRC | 21:31 | |
*** benj has joined #openstack-glance | 21:31 | |
*** benj is now known as Guest29634 | 21:32 | |
*** goldyfruit___ has quit IRC | 23:00 | |
*** tkajinam has joined #openstack-glance | 23:02 | |
*** rcernin has joined #openstack-glance | 23:25 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!