*** Qiming has joined #openstack-zaqar | 01:20 | |
*** jasondotstar has quit IRC | 01:24 | |
*** jasondotstar has joined #openstack-zaqar | 01:29 | |
*** stanchan has quit IRC | 01:54 | |
Eva-i | flwang1: flwang: | 01:55 |
---|---|---|
Eva-i | ping | 01:55 |
flwang1 | Eva-i: yes? | 01:56 |
Eva-i | why Zaqar hasn't pymongo in requirements.txt and only in test-requirements.txt? | 01:56 |
Eva-i | *and has only in test-requirements.txt? | 01:57 |
flwang1 | since it's a storage related lib | 01:57 |
flwang1 | user may use sql + redis | 01:58 |
Eva-i | flwang1: okay, I understand | 01:58 |
flwang1 | :) | 02:00 |
*** Qiming_ has joined #openstack-zaqar | 02:01 | |
Eva-i | flwang1: I would include this library though, it's is very small and removes obligation from the user to install it manually. | 02:02 |
flwang1 | Eva-i: i'm reluctant to consider it in Mitaka :) | 02:03 |
flwang1 | seems therve's patch works for the subscriptions functional test issue | 02:03 |
flwang1 | but we're running into the keystone middleware issue again :( | 02:03 |
Eva-i | flwang1: yes, I tested it and now figure out what exactly he did and what side-effects it might have | 02:04 |
Eva-i | flwang1: yes, I noticed keystone issue | 02:04 |
*** Qiming has quit IRC | 02:04 | |
*** AAzza has quit IRC | 02:05 | |
flwang1 | Eva-i: what's the side-effects? | 02:08 |
Eva-i | flwang1: just finished reviewing, no side effects found. | 02:09 |
*** AAzza has joined #openstack-zaqar | 02:09 | |
flwang1 | Eva-i: hah, cool | 02:10 |
Eva-i | flwang1: but I think I need to talk with therve about this patch | 02:10 |
flwang1 | ok | 02:10 |
Eva-i | flwang1: I'll try to find solution to keystone problem now | 02:16 |
*** boris-42 has joined #openstack-zaqar | 02:18 | |
flwang1 | Eva-i: cool, me too | 02:20 |
flwang1 | i just had a discussion with keystone guys, it's caused by this patch https://review.openstack.org/#/c/253972/ | 02:20 |
openstackgerrit | Thai Tran proposed openstack/zaqar-ui: Zaqar-ui base project with empty queues panel https://review.openstack.org/255213 | 02:36 |
Eva-i | flwang1: did they proposed any solution? | 02:37 |
flwang1 | Eva-i: no, keystone guys are working on that | 02:37 |
Eva-i | flwang1: so it's only their problem? | 02:37 |
flwang1 | Eva-i: they said there is a solution | 02:37 |
flwang1 | but i haven't see it yet | 02:38 |
flwang1 | Eva-i: both? | 02:38 |
flwang1 | it's related the way how zaqar use config | 02:38 |
flwang1 | you now, we don't have a global config object | 02:38 |
Eva-i | I thought we use global cfg.CONF: zaqar/cmd/server.py:28, but then just pass this object manually through hierarchy, pretending this is not grobal object. | 02:43 |
*** davideag_ has joined #openstack-zaqar | 02:51 | |
*** davideagnello has quit IRC | 02:52 | |
*** mdnadeem has joined #openstack-zaqar | 02:56 | |
Eva-i | flwang1: Should we wait now until keystone team will make changes on their side? | 02:59 |
Eva-i | flwang1: or we must cooperate? | 02:59 |
flwang1 | Eva-i: here is the fix https://review.openstack.org/#/c/267277/1 | 03:03 |
openstackgerrit | Fei Long Wang proposed openstack/zaqar: Fix redis subscription loading https://review.openstack.org/266831 | 03:05 |
flwang1 | Eva-i: i just uploaded a new patchset to depend on the keystone fix, if it can pass, then all good | 03:06 |
Eva-i | flwang1: wow, nice idea! | 03:07 |
Eva-i | flwang1: Depends-On is pretty convenient | 03:11 |
Eva-i | flwang1: I'm going to sleep now | 03:12 |
Eva-i | good bye | 03:12 |
flwang1 | Eva-i: good night | 03:13 |
openstackgerrit | Fei Long Wang proposed openstack/zaqar-ui: Zaqar-ui base project with empty queues panel https://review.openstack.org/255213 | 03:34 |
openstackgerrit | Fei Long Wang proposed openstack/python-zaqarclient: Support claims for v2 https://review.openstack.org/265663 | 03:40 |
openstackgerrit | Fei Long Wang proposed openstack/python-zaqarclient: Expose more CLI commands for v2 https://review.openstack.org/258750 | 03:42 |
*** Qiming_ has quit IRC | 03:54 | |
*** flwang has quit IRC | 04:07 | |
*** Qiming_ has joined #openstack-zaqar | 04:11 | |
*** stanchan has joined #openstack-zaqar | 04:44 | |
*** stanchan has quit IRC | 04:52 | |
*** kgriffs is now known as kgriffs|afk | 05:30 | |
*** kgriffs|afk is now known as kgriffs | 05:31 | |
*** kgriffs is now known as kgriffs|afk | 05:59 | |
*** ig0r_ has joined #openstack-zaqar | 09:17 | |
*** ig0r_ has quit IRC | 09:41 | |
*** Qiming_ has quit IRC | 10:39 | |
*** GB21 has joined #openstack-zaqar | 11:05 | |
openstackgerrit | Thomas Herve proposed openstack/zaqar: Fix redis subscription loading https://review.openstack.org/266831 | 11:08 |
*** GB21 has quit IRC | 11:15 | |
*** Qiming_ has joined #openstack-zaqar | 11:30 | |
*** Qiming_ has quit IRC | 11:30 | |
*** Qiming_ has joined #openstack-zaqar | 11:30 | |
*** Qiming_ has quit IRC | 12:14 | |
*** Qiming_ has joined #openstack-zaqar | 12:14 | |
openstackgerrit | Harshada Mangesh Kakad proposed openstack/python-zaqarclient: Replace deprecated library function os.popen() with subprocess https://review.openstack.org/267542 | 13:06 |
*** malini has joined #openstack-zaqar | 13:43 | |
*** amitgandhinz has joined #openstack-zaqar | 13:47 | |
*** dynarro has joined #openstack-zaqar | 14:15 | |
*** wanghao has quit IRC | 14:17 | |
*** njohnston has joined #openstack-zaqar | 14:42 | |
*** tej has joined #openstack-zaqar | 14:42 | |
*** tej_ has joined #openstack-zaqar | 14:42 | |
*** mpanetta has joined #openstack-zaqar | 14:43 | |
*** GB21 has joined #openstack-zaqar | 14:46 | |
*** tej_ has quit IRC | 14:50 | |
*** tej has quit IRC | 14:50 | |
*** pradk has joined #openstack-zaqar | 15:11 | |
*** Eva-i has quit IRC | 15:17 | |
*** Eva-i has joined #openstack-zaqar | 15:19 | |
*** kgriffs|afk is now known as kgriffs | 15:23 | |
*** amitgandhinz has quit IRC | 15:35 | |
*** Qiming_ has quit IRC | 15:38 | |
*** amitgandhinz has joined #openstack-zaqar | 15:46 | |
*** amitgandhinz has quit IRC | 15:55 | |
*** amitgandhinz has joined #openstack-zaqar | 15:57 | |
*** GB21 has quit IRC | 16:00 | |
*** mdnadeem has quit IRC | 16:35 | |
*** csoukup has joined #openstack-zaqar | 16:48 | |
*** dynarro has quit IRC | 17:06 | |
openstackgerrit | Thomas Herve proposed openstack/zaqar: Fix gate issues https://review.openstack.org/266831 | 17:31 |
*** flwang has joined #openstack-zaqar | 17:48 | |
*** malini has quit IRC | 17:49 | |
flwang | therve: ping | 17:52 |
flwang | re the gate issue | 17:52 |
*** AAzza has quit IRC | 17:59 | |
*** GB21 has joined #openstack-zaqar | 17:59 | |
*** AAzza has joined #openstack-zaqar | 18:01 | |
*** flwang has quit IRC | 18:05 | |
*** kgriffs is now known as kgriffs|afk | 18:05 | |
therve | flwang1, Hi | 18:26 |
*** malini has joined #openstack-zaqar | 18:28 | |
*** malini1 has joined #openstack-zaqar | 18:30 | |
*** malini has quit IRC | 18:32 | |
Eva-i | therve: ping | 18:53 |
Eva-i | flwang1: ping | 18:54 |
therve | Eva-i, Hey what's up | 18:59 |
therve | Eva-i, https://blogs.gnome.org/markmc/2014/02/20/naked-pings/ future reads :) | 19:01 |
Eva-i | therve: hello, in gate fixing patch you added this line to uwsgi.conf: add-header "Connection: close". How did you realised this will solve the issue? | 19:01 |
therve | Mostly, superpowers | 19:02 |
Eva-i | :o | 19:02 |
therve | Heh | 19:02 |
therve | Eva-i, So, I managed to track down the issue to HTTP pipelining support | 19:03 |
therve | Because subscription create reuses the HTTP session | 19:03 |
therve | See here: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L60 | 19:03 |
therve | Using some googling, I noticed that uwsgi didn't support it very well | 19:04 |
openstackgerrit | Thai Tran proposed openstack/zaqar-ui: Zaqar-ui base project with empty queues panel https://review.openstack.org/255213 | 19:04 |
therve | At first, I tried to make it work by settting http-keepalive to true, and add the appropriate header on the response | 19:04 |
therve | But it didn't work | 19:04 |
therve | So instead I thought about how to make it so that it doesn't use pipeling | 19:05 |
therve | And adding connection close is a way to tell the client: "please reopen the connection", instead of reusing it | 19:05 |
therve | Eva-i, Does that make sense? | 19:05 |
Eva-i | therve: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L60 this line doesn't tell me that the client will reuse the connection | 19:06 |
therve | Eva-i, See the trans and req variables | 19:07 |
therve | They are previously used here: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L49 | 19:07 |
therve | I also used tcpdump to confirm what I saw | 19:08 |
therve | ie uwsgi closed the connection without a response | 19:08 |
Eva-i | therve: yes, now it makes sense | 19:09 |
Eva-i | therve: so now with "Connection: close" header from Zaqar, the clients are forced to stop http session after each request and don't use pipelining? | 19:11 |
therve | Eva-i, That's correct | 19:11 |
Eva-i | therve: respect man | 19:12 |
Eva-i | therve: you're the real programmer | 19:12 |
therve | shrugs | 19:12 |
therve | Eva-i, I just looked at a bit more lines of code than you did | 19:12 |
therve | That's what age gets you :) | 19:13 |
*** malini1 has quit IRC | 19:22 | |
Eva-i | therve: thank you about the article about naked pings. I will not use them anymore. | 19:23 |
Eva-i | *thank you for the article | 19:24 |
therve | No worries | 19:30 |
*** malini has joined #openstack-zaqar | 19:31 | |
*** kgriffs|afk is now known as kgriffs | 19:36 | |
*** njohnston has quit IRC | 19:38 | |
*** njohnston has joined #openstack-zaqar | 19:41 | |
*** amitgandhinz has quit IRC | 19:43 | |
*** amitgandhinz has joined #openstack-zaqar | 19:43 | |
*** malini has quit IRC | 19:44 | |
*** flwang has joined #openstack-zaqar | 19:48 | |
openstackgerrit | Merged openstack/zaqar-ui: Zaqar-ui base project with empty queues panel https://review.openstack.org/255213 | 19:57 |
flwang1 | yeah!!! the first commit of zaqar-ui merged :D | 19:57 |
Eva-i | flwang1: congratulations =) | 19:58 |
Eva-i | flwang1: why jenkins do not check this patch? https://review.openstack.org/#/c/266831 | 19:59 |
Eva-i | *does not | 19:59 |
flwang1 | Eva-i: i did, just because it's still in progressing | 20:01 |
flwang1 | and i think therve's patch works | 20:01 |
*** malini has joined #openstack-zaqar | 20:01 | |
Eva-i | flwang1: mmm, I don't understand "still progressing". I thought jenkins should check the patch on each patch set upload. Something blocks it? | 20:04 |
flwang1 | http://status.openstack.org/zuul/ | 20:05 |
flwang1 | search zaqar | 20:05 |
Eva-i | flwang1: I understand now, thank you. | 20:07 |
flwang1 | :) | 20:07 |
flwang1 | therve: still around? | 20:17 |
therve | flwang1, Yep! | 20:18 |
flwang1 | as for the gate fix, i'm wondering if user will run into it if they use uwsgi + zaqar | 20:19 |
therve | Yeah, probably | 20:19 |
Eva-i | flwang1: maybe to completely eliminate this potential problem for user, we should make Zaqar add connection close header | 20:20 |
flwang1 | therve: so maybe i should fix it in zaqar client | 20:20 |
therve | flwang1, The bug is in the client though | 20:20 |
therve | Urg | 20:20 |
therve | flwang1, The bug is in uwsgi | 20:20 |
flwang1 | based on your investigation, i think we could just create a new connection for subscription get instead of reuse the one for create | 20:21 |
flwang1 | given subscription actions is not a performance matter action like message's | 20:21 |
flwang1 | so it should be fine, thoughts? | 20:21 |
therve | What we're trying to do is perfectly fine | 20:22 |
flwang1 | therve: yep, i see | 20:22 |
flwang1 | i mean to avoid this issue, we can just get the req, trans again before https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L60 | 20:23 |
flwang1 | does that make any sense? | 20:23 |
Eva-i | flwang1: yes, it makes | 20:23 |
therve | I understand, but I don't see a reason to workaround a bug with a specific configuration of a specific deployment | 20:24 |
*** flwang has quit IRC | 20:24 | |
therve | If you use uwsgi and zaqar just use our tested configuration :) | 20:25 |
flwang1 | therve: haha | 20:25 |
flwang1 | ok, you sold it | 20:25 |
flwang1 | but i will document it somewhere :) | 20:25 |
flwang1 | in case we forget it | 20:26 |
therve | Seems reasonable yeah | 20:26 |
flwang1 | btw, does the configuration impact any performance? | 20:27 |
*** flwang has joined #openstack-zaqar | 20:27 | |
therve | Sure | 20:27 |
*** GB21 has quit IRC | 20:28 | |
Eva-i | does zaqar now really allow reusable http connections, i.e. when zaqar runs without uwsgi and we create subscription in the client, these two requests from zaqar are going through a single connection? | 20:28 |
therve | Probably not by much though. I guess it'd be nice to document a better wsgi container | 20:29 |
flwang1 | Eva-i: i don't think it's related to zaqar based on current investigation | 20:29 |
therve | Eva-i, Good question. | 20:30 |
therve | Eva-i, I'd be surprised if wsgiref supports http pipelining | 20:30 |
Eva-i | flwang1: I'm just asking if Zaqar have http pipelining feature | 20:30 |
therve | It doesn't really need to, its a job for the container (AFAIK) | 20:31 |
flwang1 | hmm.... | 20:32 |
flwang1 | IIRC http Post can't be pipling only the idempotent method can do that | 20:33 |
flwang1 | our subscription create using POST | 20:33 |
flwang1 | and subscription get is HTTP GET | 20:33 |
flwang1 | so maybe we have to change the client code? | 20:33 |
therve | I guess I rather mean persistent connections | 20:34 |
therve | Pipelining can be tricky with POST indeed | 20:35 |
therve | The client actually doesn't do pipelining here, it uses a persistent connection | 20:35 |
therve | (My bad for not using the proper term) | 20:35 |
flwang1 | yep, persistent connection | 20:36 |
Eva-i | in uwsgi this is called "http-keepalive" | 20:38 |
Eva-i | "HTTP Keep-Alive" | 20:38 |
therve | Anyhow, patch is green, so hooray | 20:38 |
Eva-i | yay | 20:38 |
flwang1 | therve: i will give it a manual try before +2 :) | 20:40 |
therve | flwang1, Sweet! | 20:40 |
* therve away | 20:40 | |
flwang1 | therve: thanks a lot | 20:40 |
flwang1 | Eva-i: can you try again for this one https://review.openstack.org/258750 ? | 20:46 |
Eva-i | flwang1: oki, I will | 20:46 |
flwang1 | Eva-i: thank you very much | 20:46 |
flwang1 | since you said it doesn't work on your local | 20:47 |
Eva-i | flwang1: how do you think, would it be good if we substitute this line https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L59 to "if self.id and not self.subscriber"? And also throw an error in these cases: 1. both id and subscriber are passed 2. both id and subscriber are not passed. | 20:56 |
flwang1 | Eva-i: wow, happy to see you notice this. I'm going to upload a new patch set to fix it | 20:58 |
flwang1 | and at line https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v2/subscription.py#L32 | 20:59 |
Eva-i | flwang1: I'm sorry I haven't noticed it during review of subscription create patch | 20:59 |
flwang1 | when there is a 'id' passed, the auto_create shouldn't be true | 20:59 |
flwang1 | or it will be skipped | 20:59 |
flwang1 | Eva-i: it's not a big problem, i would say | 21:00 |
flwang1 | but it should be improved | 21:00 |
flwang1 | thanks for the heads up | 21:00 |
Eva-i | flwang1: ;) | 21:00 |
flwang1 | and i'm sorry to push you guys to review it in rush | 21:00 |
flwang1 | since i won't miss the integration with ceilometer in Mitaka | 21:01 |
Eva-i | flwang1: you do things right as team leader | 21:01 |
flwang1 | Eva-i: thank you, and i believe i'm doing evil, you guys will poke me for sure | 21:02 |
flwang1 | missed 'if' | 21:03 |
flwang1 | Eva-i: so you tried the patch and it works, right? | 21:17 |
flwang1 | i saw you +1 on that | 21:17 |
Eva-i | flwang1: yes | 21:17 |
flwang1 | cool, cheers | 21:17 |
Eva-i | flwang1: hm... | 21:19 |
flwang1 | what? | 21:19 |
Eva-i | flwang1: please wait until merging it | 21:19 |
flwang1 | no problem | 21:20 |
openstackgerrit | Thai Tran proposed openstack/zaqar-ui: Re-enabling checkout and small fixes https://review.openstack.org/267820 | 21:21 |
*** njohnston has quit IRC | 21:28 | |
*** mdnadeem has joined #openstack-zaqar | 21:30 | |
*** mdnadeem has quit IRC | 21:38 | |
*** shakamunyi has quit IRC | 21:40 | |
*** njohnston has joined #openstack-zaqar | 22:15 | |
*** mpanetta has quit IRC | 22:20 | |
*** amitgandhinz has quit IRC | 22:40 | |
Eva-i | flwang1: "so you tried the patch and it works, right?" I should have respond "no" to this question, because I just tested that "openstack help --os-queues-api-version=2" do not fail anymore. Now I reviewed this patch once properly and found bugs. | 22:40 |
Eva-i | flwang1: https://review.openstack.org/258750 maybe the patch has earned +1, because it's purpose is just to add two CLI commands. It's not the fault of this patch that the underlying things in CLI commands do not work well. | 22:45 |
flwang1 | ok, i see. so what's the problem? | 22:50 |
Eva-i | flwang1: see my last review for this patch for problems | 22:50 |
flwang1 | "openstack flavor list" it's wrong | 22:54 |
flwang1 | you should use openstack messaging flavor list | 22:54 |
Eva-i | flwang1: oh, you're right | 22:55 |
flwang1 | Eva-i: when you run openstack queue stats my-lovely-queue, you didn't specify the api version, right? | 23:00 |
Eva-i | I tried it without specifying api version and tried it with all three api versions. The outcome is the same in all cases. | 23:01 |
flwang1 | ok, interesting... | 23:02 |
flwang1 | that's a good catch | 23:02 |
*** pradk has quit IRC | 23:04 | |
flwang1 | Eva-i: i found the root cause | 23:06 |
Eva-i | flwang1: should this patch be marked as +1? | 23:06 |
Eva-i | flwang1: yes, what it is? | 23:07 |
flwang1 | the issue it's not related to the patch, i think | 23:07 |
flwang1 | Eva-i: see line 205 of v1/cli.py | 23:09 |
*** njohnston has quit IRC | 23:13 | |
Eva-i | flwang1: for some reason self.client.api_version is not 1 when we specify it by "--os-queues-api-version=1": https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v1/queues.py#L59 | 23:14 |
*** pradk_ has joined #openstack-zaqar | 23:15 | |
flwang1 | Eva-i: really? | 23:16 |
flwang1 | i can't reproduce | 23:16 |
Eva-i | hm wait | 23:17 |
Eva-i | I'm wrong again... | 23:18 |
flwang1 | Eva-i: i will fix the stats issue with a separate patch. but i think queue stats works fine if you specify api version with 1 | 23:23 |
Eva-i | flwang1: self.client.api_version is 1. But it has string type, so maybe the problem is in it. When I try this condition, the problem goes away: | 23:24 |
Eva-i | if float(self.client.api_version) >= 1.1 | 23:24 |
flwang1 | haha, good catch | 23:24 |
*** stanchan has joined #openstack-zaqar | 23:25 | |
Eva-i | flwang1: strange that you can't reproduce it. When I try api version 1, I get this: http://pastebin.com/FHzimaYL | 23:26 |
Eva-i | flwang1: should I open a bug? | 23:27 |
flwang1 | i can see '1' | 23:28 |
flwang1 | so pls file a bug | 23:28 |
flwang1 | and i'm happy to fix it, thanks | 23:28 |
Eva-i | I'd be happy too, but oki | 23:29 |
Eva-i | it's so easy to fix =) | 23:29 |
*** malini has quit IRC | 23:39 | |
*** pradk_ has quit IRC | 23:40 | |
*** Qiming has joined #openstack-zaqar | 23:46 | |
*** flwang_home has joined #openstack-zaqar | 23:47 | |
Eva-i | flwang1: when I post a new bug report, should I put long logs to paste.openstack.org? | 23:53 |
Eva-i | flwang1: here's the promised bug report: https://bugs.launchpad.net/zaqar/+bug/1534378 | 23:53 |
openstack | Launchpad bug 1534378 in zaqar "If client api version is passed string, some comparisons do not work properly" [Undecided,New] | 23:53 |
*** Qiming has quit IRC | 23:58 | |
*** csoukup has quit IRC | 23:59 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!