Friday, 2016-03-11

*** openstackgerrit_ has quit IRC00:23
*** openstackgerrit_ has joined #openstack-zaqar00:24
flwangEva-i: for the py34 issue, did you figure out a good way to fix it?00:28
Eva-iflwang: no, still not00:29
flwangEva-i: ok00:29
Eva-iflwang: no one answered me in #openstack-oslo. I guess we have to instantiate conf from a scratch. But I'm going to inspect the problem further.00:30
Eva-iflwang: I was asking there a simple way to copy 'ConfigOpts' object00:31
flwangEva-i: i did some investigation yesterday based on the question from ryansb00:31
Eva-iflwang: we may partially revert this patch https://github.com/openstack/zaqar/commit/188632806c2fdb6e9306708484c71153a49fd24800:31
flwangEva-i: i would suggest review the recent changes about that part00:31
flwangEva-i: not revert00:32
flwangbut rewrite a bit00:32
Eva-iflwang: that's why I said "partially"00:32
* Eva-i still writing functional tests00:35
flwang:)00:35
flwangEva-i: when you're free, we can discuss about the plan of Newton :)00:36
Eva-iflwang: sure00:36
*** openstackgerrit_ has quit IRC00:48
*** openstackgerrit_ has joined #openstack-zaqar00:49
flwangryansb: ping00:53
openstackgerritMerged openstack/zaqar: Forbid update subscription to duplicate  https://review.openstack.org/27994602:01
*** kgriffs is now known as kgriffs|afk02:31
*** tqtran-afk has quit IRC02:45
*** mdnadeem_ has joined #openstack-zaqar03:21
*** barra204 has joined #openstack-zaqar03:21
*** shakamunyi has quit IRC03:30
*** mdnadeem has quit IRC03:30
openstackgerritwangxiyuan proposed openstack/python-zaqarclient: Fix the get/set queue metadata  https://review.openstack.org/28917903:40
*** tqtran-afk has joined #openstack-zaqar03:42
Eva-iflwang: I created two functional tests. I tried also to speed up unit tests, but realized that it's not so easy. I can't imagine how to mock database things, maybe I will come up with something later. I guess for now functional tests will be enough.03:42
*** tqtran-afk has quit IRC03:46
flwangok, i will happy to review them03:50
*** shu-mutou-AFK is now known as shu-mutou04:02
*** wxy has joined #openstack-zaqar04:08
openstackgerritEva Balycheva proposed openstack/zaqar: Renew subscription on update with TTL  https://review.openstack.org/28966504:09
Eva-iflwang: oki, uploaded new patch set ^^ I feel a bit awkward about adding such slow tests. =/04:15
shu-mutouEva-i, flwang: I could not find command for creating subscription. Let me know that please.04:15
Eva-ishu-mutou: you use python-zaqarclient as library, right?04:17
shu-mutouEva-i: I use as library for UI development. but I want to use the command on devstack.04:18
shu-mutouEva-i: for Zaqar-UI development, I want to confirm how python-zaqarclient's works.04:22
Eva-ishu-mutou: you probably mean requests by using curl program, right? Or CLI python-zaqarclient's commands?04:25
Eva-ishu-mutou: I can share my curl requests04:25
shu-mutouEva-i: I'd like to know in CLI. python-zaqarclient's comands.04:26
shu-mutouEva-i: if command doesn't exists, please share requests by curl.04:28
Eva-ishu-mutou: alright, run "openstack help --os-queues-api-version=2" and you'll see all available "subscription ..." commands ;)04:28
shu-mutouAh!! I found it! Thanks! (/・ω・)/04:29
Eva-ishu-mutou: no problem ^‿^v04:36
*** tqtran-afk has joined #openstack-zaqar04:58
*** tqtran-afk has quit IRC05:02
*** GB21 has joined #openstack-zaqar05:25
*** GB21 has quit IRC06:00
*** GB21 has joined #openstack-zaqar06:02
*** barra204 has quit IRC06:04
*** openstackgerrit_ has quit IRC06:17
*** openstackgerrit_ has joined #openstack-zaqar06:17
*** shu-mutou is now known as shu-mutou-AFK06:46
*** rcernin has joined #openstack-zaqar06:49
*** GB21 has quit IRC07:18
*** GB21 has joined #openstack-zaqar07:18
*** jtomasek has joined #openstack-zaqar07:27
*** pcaruana has joined #openstack-zaqar08:41
*** GB21 has quit IRC08:48
*** GB21 has joined #openstack-zaqar08:48
*** GB21 has quit IRC09:06
*** GB21 has joined #openstack-zaqar09:33
*** mpanetta has joined #openstack-zaqar09:37
*** mpanetta has quit IRC10:07
openstackgerritNeerja Narayan proposed openstack/zaqar: Adding Negative tests cases to Zaqar v1.0  https://review.openstack.org/29164310:15
-openstackstatus- NOTICE: Gerrit is going to be restarted due to bad performance10:55
*** ChanServ changes topic to "Gerrit is going to be restarted due to bad performance"10:55
*** ChanServ changes topic to "OpenStack Queuing and Notification Service || Smile :D || Meetings every Monday @ 21:00 UTC/15:00 UTC || Wiki: https://wiki.openstack.org/wiki/Zaqar || Paste: http://paste.openstack.org/ || Send messages and make some noise :D"11:01
-openstackstatus- NOTICE: Gerrit has been restarted successfully11:01
Eva-iflwang: hello11:26
ryansbgood morning11:28
ryansbEva-i: I'm looking at that dynamic_conf issue - I'm planning to write code that loops over the conf object and adds those to a new one11:28
ryansbin the Oslo channel they said the ConfigOpts object isn't designed to be copied, and we should instantiate a new one instead11:29
Eva-iryansb: aha, I see. But how are you going to extract all options before adding them to a new conf? You will iterate over attributes? :o11:30
ryansbStill working on that bit11:30
Eva-iryansb: you may take the bug assigned to me, I don't mind ;)11:31
ryansbthe easiest would be if, instead of passing a config object, the caller could pass parameters11:31
Eva-iryansb: you can assign yourself, I mean11:31
*** tesseract has joined #openstack-zaqar11:33
Eva-iryansb: I don't know fully how oslo_config works. Maybe a patch like this was made only for convenience: https://github.com/openstack/zaqar/commit/188632806c2fdb6e9306708484c71153a49fd248. And there was nothing wrong with instantiating config from a scratch.11:33
*** jtomasek has quit IRC11:34
*** tesseract has quit IRC11:34
*** Guest16009 has joined #openstack-zaqar11:34
ryansbyeah, the commit doesn't explicitly mention a problem11:34
flaper87Eva-i: TBH, I hate the dynamic_conf think11:35
flaper87https://bugs.launchpad.net/zaqar/+bug/137233511:35
openstackLaunchpad bug 1372335 in zaqar "Zaqar does not enforce writes to majority" [Critical,Fix released] - Assigned to Flavio Percoco (flaper87)11:35
flaper87that was the problem11:35
flaper87When you create a new pool, it won't use the global config but a dynamic instance of ConfigOpts11:36
flaper87we need to inherit some of the configs in the Zaqar's main ConfigOpts object11:36
flaper87so that we don't skip some of the system-wide values11:36
flaper87dynamic_conf is one of the things I've always wanted to get rid off11:36
flaper87but it was just not possible at the time11:37
flaper87hope that helps11:37
*** Guest16009 has quit IRC11:37
ryansbhm. You don't happen to know what values, do you?11:38
flaper87ryansb: I can dig into it. It'll likely come back to my head11:38
flaper87ryansb: Eva-i what problems do you have?11:38
ryansbsometimes the copy raises an exception because the ConfigOpt object isn't designed to be copied11:39
ryansb(in Python 3)11:39
*** jtomasek has joined #openstack-zaqar11:39
*** tesseract- has joined #openstack-zaqar11:40
flaper87oh, mmh. Interesting11:40
flaper87one of the reasons copying was easier is that it already has all the options registered11:40
Eva-iflaper87: hello, thank you for the information. I still don't understand few things. Let me subscribe you to this bug, it's hidden now.11:40
flaper87but that was even before we had list_opts, I think11:40
ryansbI see, so if we could iterate over the options and save them to the newly-instantiated object, would that cover the needs copy currently handles?11:41
flaper87ryansb: yes, that would, I think.11:42
flaper87ConfigOpts can be converted to a dict11:42
flaper87but that has nested ConfigGroups11:42
flaper87and who knows what else11:43
ryansbhrm, I'll test that out11:43
ryansbI see we have the dict_to_conf util11:43
flaper87Eva-i: FWIW, some contents of that bug have been posted in a public resource. That makes it disclosed :(11:45
Eva-iflwang: do you mean paste.openstack.org?11:45
flaper87Eva-i: which I avoided to mention in the channel on purpose :P11:46
flaper87Eva-i: but yes, that11:46
Eva-iflwang: when I posted information there, I clicked on "private" checkbox. So it's not really private? =/11:46
Eva-i"Paste private"11:47
flaper87Eva-i: (you're mentioning flwang not flaper87 :P)11:48
flaper87Eva-i: oh mmh, maybe you're right11:48
flaper87oh, and there's a dropbox link11:48
flaper87mmh11:48
* ryansb gets breakfast, be back shortly11:48
flaper87Eva-i: we'll worry about that later. Let's try to fix this bug11:49
Eva-iflaper87: the dropbox link is also "private". It may be visible to dropbox admins, but personally I'm not sure if the information posted there is usable without context.11:50
flaper87Eva-i: it's always better to keep everything in one place and undisclosed.11:51
Eva-iflaper87: yes, my bad.11:51
flaper87Eva-i: no worries. Not big deal in this case. Let's focus on the bug11:52
flaper87:)11:52
Eva-iflaper87: next time I'll make things right11:52
Eva-iflaper87: yeah11:52
Eva-iflaper87: hm. Few months ago I noticed this thing: we instantiate Zaqar by global ConfigOpts object. https://github.com/openstack/zaqar/blob/master/zaqar/transport/wsgi/app.py#L39. Then we register all options to this ConfigOpts object. Does it make passing 'conf' object to constructors pointless? Does it also make copying 'conf' in dynamic_conf pointless?12:10
flaper87no, it's not pointless. The only reason we're *forced* to use the global config object is because other oslo libraries use a global config object12:11
flaper87Otherwise, we'd be using a local one everywhere12:11
flaper87that's why it was all designed as if there was no global config object and we don't use it anywhere12:12
openstackgerritNeerja Narayan proposed openstack/zaqar: Adding Negative tests cases to Zaqar v1.0  https://review.openstack.org/29164312:18
Eva-iflwang: seems like it was designed for passing some local object as 'conf' and I like this design. But the reference to the global config is always accessible from "oslo_config.cfg.CONF". Maybe we should use two configs: one local for zaqar things only (and copies of it for zaqar's pools), and the global one for oslo libraries?12:21
Eva-iflaper87: ^12:22
Eva-iflaper87: oh.. I need to sleep, I make mistakes and maybe not thinking right.12:22
*** jtomasek has quit IRC12:25
flaper87Eva-i: no no, the design is right. The only place where the global config object is accessed is in that file. (ok, maybe there are two placeS). We just use it to create the bootstrap instance12:26
flaper87then it all goes through local access12:26
*** jtomasek has joined #openstack-zaqar12:27
*** GB21 has quit IRC12:28
Eva-iflaper87: hm. I'll try to check "tomorrow" if oslo_config.cfg.CONF from anywhere does not reference the same 'conf' that we pass in constructors.12:31
Eva-iflaper87: thanks for your answers12:31
*** mdnadeem has joined #openstack-zaqar12:46
*** mdnadeem_ has quit IRC12:48
*** itisha has joined #openstack-zaqar13:01
*** akanksha_ has joined #openstack-zaqar13:52
*** amitgandhinz has joined #openstack-zaqar14:44
*** JAHoagie has joined #openstack-zaqar16:49
*** pcaruana has quit IRC16:50
*** david_cu has joined #openstack-zaqar16:51
*** tesseract- has quit IRC16:55
*** rcernin has quit IRC17:01
*** pcaruana has joined #openstack-zaqar17:36
*** david_cu has quit IRC18:01
*** wanghao has quit IRC18:42
*** wanghao has joined #openstack-zaqar18:43
*** david_cu has joined #openstack-zaqar19:02
*** tqtran-afk has joined #openstack-zaqar19:06
*** david_cu has quit IRC19:06
*** tqtran-afk is now known as tqtran19:11
*** david_cu has joined #openstack-zaqar19:26
*** ksheedlo has quit IRC20:03
*** wanghao has quit IRC20:24
*** itisha has quit IRC20:59
*** AAzza has quit IRC21:19
*** AAzza has joined #openstack-zaqar21:20
*** david_cu has quit IRC21:57
*** akanksha_ has quit IRC22:07
*** amitgandhinz has quit IRC22:15
*** david-lyle has quit IRC22:37
*** jtomasek has quit IRC22:38
*** rcernin has joined #openstack-zaqar22:47
*** rcernin has quit IRC23:06
*** rcernin has joined #openstack-zaqar23:07
*** rcernin has quit IRC23:31
*** david_cu_ has quit IRC23:41

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!