Tuesday, 2015-04-21

*** achanda has joined #openstack-zaqar00:16
*** achanda_ has quit IRC00:19
*** achanda has quit IRC00:21
*** openstackgerrit has quit IRC00:22
*** openstackgerrit has joined #openstack-zaqar00:22
*** sriram has quit IRC00:33
*** openstack has joined #openstack-zaqar00:36
*** amitgandhinz has joined #openstack-zaqar00:38
*** davideagnello has quit IRC01:18
flwangflaper87: ping01:34
*** liusheng has quit IRC02:16
*** achanda has joined #openstack-zaqar02:35
*** exploreshaifali has quit IRC02:46
*** exploreshaifali has joined #openstack-zaqar02:47
*** cpallares has quit IRC02:55
*** exploreshaifali has quit IRC03:30
*** achanda has quit IRC03:41
*** achanda has joined #openstack-zaqar04:17
*** davideagnello has joined #openstack-zaqar04:19
*** davideagnello has quit IRC04:24
*** davideagnello has joined #openstack-zaqar04:33
*** flaper87 has quit IRC05:01
*** vkmc has quit IRC05:02
*** flaper87 has joined #openstack-zaqar05:04
*** vkmc has joined #openstack-zaqar05:08
*** rsFF has quit IRC05:12
*** rsFF has joined #openstack-zaqar05:12
*** davideagnello has quit IRC05:19
*** achanda has quit IRC05:52
*** achanda has joined #openstack-zaqar05:57
*** achanda has quit IRC06:03
*** pcaruana has quit IRC07:11
*** flaper87 has quit IRC07:23
*** flaper87 has joined #openstack-zaqar07:23
*** dynarro has joined #openstack-zaqar08:13
*** flwang1 has joined #openstack-zaqar09:55
flwang1flaper87: ping09:55
flwang1zigo: ping09:59
*** boris-42 has quit IRC10:05
*** dynarro has quit IRC10:06
*** boris-42 has joined #openstack-zaqar10:08
*** flwang1 has quit IRC10:53
*** dynarro has joined #openstack-zaqar11:50
*** therve has joined #openstack-zaqar11:56
therveHeya11:56
flaper87flwang: pong12:02
flaper87therve: hey12:02
therveI started to play a bit with zaqar. I have some questions about general usage, but first I noticed that queue.pop may not work.12:03
therveI get "zaqarclient.transport.errors.MalformedRequest: The "ids" query parameter is required." when I try to use pop in the client library12:04
therveAny idea?12:04
flaper87therve: mind sharing the code ? I'm working on the client now12:07
therveflaper87, http://paste.openstack.org/show/204967/12:09
therveUsing latest master AFAICT12:10
vkmchey!12:11
zigoflaper87: pong12:31
vkmctherve, I'm testing it :)12:33
thervevkmc, Does the usage look correct to you?12:58
vkmctherve, seems right mmh13:10
*** amitgandhinz has quit IRC13:11
*** sriram has joined #openstack-zaqar13:14
zigoZaqar is using python-autoban which has lots of non-free files.13:17
zigoI'm talking about the example folder.13:17
zigoFor example: examples/twisted/websocket/echo_wsfallbacks/web/WebSocketMain.swf13:17
zigoI hope this can be fixed.13:17
zigoAlso, adding Python3 support to autobhan needs quite some work, as dependencies don't have support for it (yet).13:18
vkmctherve, it seems there is a bug server side, you shouldn't need ids13:18
zigoNote: I already uploaded python-txaio to Sid.13:19
thervevkmc, I think it should be using version 1.1 ?13:19
therveDefault  is 113:20
flaper87zigo: autobahn is not a strong requirement, it's part of a feature that is considered experimental. Is it possible to avoid adding it as a dependency in the package?13:20
flaper87zigo: what would be the right process there? (sorry for my ignorance in the process)13:20
zigoflaper87: Well, then remove it from requirements.txt !13:20
zigoflaper87: Is there some tests with it?13:20
flaper87we can move simply move it to test-requirements13:21
flaper87s/move simply/simply/13:21
flaper87zigo: would that be enough for you?13:21
*** mpanetta has joined #openstack-zaqar13:21
zigoflaper87: No.13:21
zigoI do run unit tests ...13:21
flaper87:(13:21
zigo(at package build time)13:22
flaper87mmh, ok.13:22
flaper87right13:22
vkmczigo, would you suggest we change the websocket server library?13:22
vkmcnot sure if we have other options13:22
zigoWhy not using websockify?13:22
vkmcbecause atm autobahn seemed a good fit for several reasons13:22
zigoIt's already in use by other OpenStack projects (like Nova) and it's already maintained.13:22
flaper87zigo: we'll take a better look at websockify13:23
flaper87but I think we did already13:23
zigoWell, yeah, we have many of such things in OpenStack, and then we end up maintaining 3 times the amount of libs.13:23
thervezigo, I don't think it serves the same purpose13:23
zigoIf autobhan is better, why not contributing to Nova to switch to it then?13:23
zigoAh, really?13:23
zigotherve: Hi there! Do you contribute to Zaqar now? :)13:24
thervezigo, Not there yet :)13:24
zigo:)13:24
zigotherve: Are you going to Vancouver?13:25
vkmczigo, I just took a look, and indeed, it doesn't serve the same purpose13:25
* flaper87 did the same13:25
zigovkmc: Ok, fair enough then.13:25
thervezigo, Yep13:25
flaper87websockitify translates from ws -> socket13:25
zigotherve: Cool, see you there then! :)13:25
zigoIn such case, could you talk with upstream for autobhan, and ask that they remove the non-free files?13:26
flaper87zigo: that I can do13:26
vkmcwe could do that yes13:26
flaper87thanks for pointing it out,13:26
zigoLet me list them, hang on...13:26
therveLooked removed from here already: http://packages.ubuntu.com/trusty/all/python-autobahn/filelist13:26
zigotherve: What you are pointing at is a binary, not the sources.13:27
zigoOh, is this already in Ubuntu?13:27
zigoInteresting...13:27
zigoOh, it's already in Debian...13:27
zigoI think the issue here is between the keyboard and chair: I can't spell german correctly! :)13:28
therveHeh :)13:28
zigoAh no, we have version 0.5.14, and you guys declare to want 0.10.1...13:29
zigoOutch, the package isn't team maintained, and the maintainer has this as a single package.13:29
zigo(I mean, he doesn't maintain anything else...)13:29
vkmcmaybe we can ask together to autobahn folks to remove the non-free files13:30
zigohttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=78006113:30
openstackDebian bug 780061 in python-autobahn "Uploading python-autobahn >= 0.10.1 to Experimental" [Wishlist,Open]13:30
zigoPlease read on ...13:30
zigoThe current maintainer doesn't know he needs to package more than one package for maintaining autobahn.13:31
zigo:/13:31
openstackgerritFlavio Percoco proposed openstack/zaqar: Fix pymongo 3  https://review.openstack.org/17586013:31
zigoI'll upgrade the package to Sid and take it within the OpenStack packaging team then.13:31
vkmczigo, keep us on the loop13:32
vkmcand let me know if I can help with something13:32
zigoSure.13:32
zigoLet me list the non-free files.13:33
vkmck13:33
zigohttp://paste.debian.net/168036/13:33
zigovkmc: swfobject was also in websockify, and finally got removed...13:35
zigoI mean, the minified version was replaced.13:36
zigoThe flash object is a no-go.13:36
zigoI can work-out a +dfsg version though, without the example folder.13:36
zigoBut that's really annoying... :(13:37
vkmctherve, you were right, the client version was missing from the client init13:41
vkmctherve, it should look like cli = client.Client(url="http://127.0.0.1:8888", version=1.1, conf=conf)13:41
vkmczigo, not really sure why they need flash13:41
thervevkmc, I get "The header X-PROJECT-ID was missing"13:42
vkmctherve, yes, you have to add another param to the conf13:42
vkmclike...13:42
vkmchttps://github.com/openstack/python-zaqarclient/blob/master/examples/keystone_auth.py#L30-L3913:42
vkmcos_project_id is the one missing13:43
thervevkmc, Aha, thanks13:43
therveOK I get further, but still an error13:44
vkmctherve, which error this time?13:44
thervevkmc, 'NoneType' object has no attribute 'pop'13:45
therveWhen I try to iterate on the result13:45
vkmcok then... that looks like a bug13:45
thervemessage_pop doesn't return anything, probably the issue13:46
*** amitgandhinz has joined #openstack-zaqar13:46
vkmcI'll try to reproduce here13:46
*** cpallares has joined #openstack-zaqar13:49
zigoOh, also, autobahn embedds a version of pbkdf213:50
zigoThis should also be fixed.13:50
thervevkmc, I don't think 1.1 is well supported by the client13:50
therveI get other errors even without pop13:51
zigoHum... probably already fixed in the latest version.13:51
vkmctherve, certainly13:53
vkmctherve, I'll take a look more in deep and debug what is going on13:54
thervevkmc, Cool thanks13:54
vkmctherve, if you have a moment, please submit the bug reports13:54
vkmctherve, thanks for taking it for a spin13:54
therveNo problem, will do13:54
zigoI uploaded autobahn 0.10.3 to Debian Experimental, it should be fine IMO.14:21
zigoCould someone tell me what daemon needs to run with Zaqar?14:23
zigoI got the impression that there's a zaqar-server that is in fact an API server, am I right?14:24
zigoThen what?14:24
zigoCould you describe how to setup zaqar?14:24
zigovkmc: flaper87: ^14:24
flaper87zigo: that's correct. That's pretty much all you need14:24
flaper87Let me elaborate14:24
zigoThanks!14:26
flaper87zaqar-server is the api service (the only one, for now). A production deployment shouldn't run zaqar-server directly as it uses the python built-in wsgi container. Therefore, a production environment should pick gunicorn, uwsgi or whatever they prefer14:26
flaper87That last part is probably not relevant for you but I guess it's always good to know these things14:26
zigoSure!14:26
flaper87Other than that, zaqar needs a storage which can either be mongodb or redis14:26
zigoWhere's the WSGI definition file then?14:27
zigo(so that I can put it in /usr/share/zaqar-common ...)14:27
zigoAlso, do I need mongodb service to run when running the unit tests?14:27
zigoI'm getting lots of "Connection refused" errors when running the tests...14:28
zigo(267 failures...)14:28
flaper87zigo: zaqar.transport.wsgi.app <- this module contains the wsgi app.14:28
flaper87zigo: unfortunately, yes. We're working on mocking the mongodb tests. We used to have sqlite for that but as of kilo, we removed support for sqlalchemy on the data plane.14:28
zigoflaper87: Yeah, but could you give me a .wsgi file that I could put for the Apache config?14:29
flaper87mocking mongodb and redis*14:29
zigoflaper87: There's no need to mock mongodb, I can run it before running the unit tests, I've done that in the past (for example, in the Ceilometer package).14:29
flaper87zigo: ah, I cna write one, yes. there's not such file in the code base now14:29
zigoflaper87: Please do, that's helpful ! :)14:29
zigoLike this, I could provide a zaqar-apache or something, which would configure apache directly.14:30
flaper87zigo: that's indeed helpful for deployers using apache14:30
* flaper87 gets to that14:30
*** kgriffs|afk is now known as kgriffs14:31
zigoHave a look into Ceilometer's setup-test-env-mongodb.sh14:31
zigoThat's quite helpful.14:31
zigoThen I do, in the Ceilometer package: bash -x ./setup-test-env-mongodb.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit14:31
flaper87I was precisely looking at that, they also have an apache dir under etc14:32
zigoWhich is wrong.14:34
zigoYou shouldn't define a new virtualhost for *14:34
zigoYou should *only* define an URL for /zaqar on the existing default Apache setup.14:35
*** achanda has joined #openstack-zaqar14:35
zigoIn other words: do not hijack all of Apache please, it's probably used for other things...14:35
zigoSo, do:14:36
zigoWSGIScriptAlias / [...]14:36
zigoI mean, don't do that. Instead, do:14:36
zigoWSGIScriptAlias /zaqar [...]14:36
openstackgerritFlavio Percoco proposed openstack/zaqar: Move devstack's Zaqar code into the codebase  https://review.openstack.org/16930514:36
flaper87vkmc: ^ pls :)14:36
vkmcsure14:36
flaper87zigo: yes, I was just looking at it :D14:36
flaper87I'll add you to the review if you don't mind14:36
flaper87:)14:36
zigoSure, my pleasure ! :)14:39
zigoI've imported the setup script of Ceilometer into my debian/ folder, in order to run MONGO.14:39
zigoIs it ok to run only with Mongo, or is Redis also mandatory for unit tests?14:40
zigoI have zero experience with redis...14:40
flaper87zigo: redis is not mandatory, either is good14:40
zigoCool.14:41
zigoHum.. I still get a shitload of connection refused... :(14:41
zigoWhere does Zaqar reads its connection info for the unit tests?14:42
zigoIn Ceilometer, we have: export CEILOMETER_TEST_MONGODB_URL="mongodb://localhost:${MONGO_PORT}/ceilometer"14:42
zigoCould we have something like this in Zaqar?14:42
zigoSo that I would just export the URL, and Zaqar would use that ...14:43
*** achanda has quit IRC14:43
flaper87zigo: it currently reads config files that are shipped in the codebase, those point to localhost:27017. We can definitely have an env var like that. We already have one to enable/disable some tests and to change the dir where the test config files are14:45
* flaper87 starts writing all these things down14:46
flaper87zigo: thanks for taking the time and for your feedback14:46
therveSo as pop is not available on 1.0, what's the best way to achieve the same thing without it?14:51
therveDoes it involve claiming messages?14:51
flaper87therve: I'd really recommend using 1.114:52
flaper871.1 is 1.0 with few improvements14:52
therveflaper87, Can I get a working client? :)14:52
flaper87therve: oh mmh, is it broken?14:53
flaper87ah the error you mentioned14:53
flaper87so, yeah, sorry about that.14:53
therveflaper87, Another one bug #144667714:53
openstackbug 1446677 in Python client library for Zaqar "Can't get a message from 1.1" [Undecided,New] https://launchpad.net/bugs/144667714:53
therveMaybe it's something on my side though14:53
* flaper87 fixes all the things14:53
therve\o/14:53
flaper87therve: TBH, the client needs some love, I'll focus on it in the next couple of days14:54
flaper87therve: do you have feedback w.r.t the API and structure?14:54
therveflaper87, Could, would love to test it14:54
flaper87we've tried to keep the structure flexible enough to give access to the internals and/or just use it at a high level14:54
therveflaper87, I don't have much just yet. Trying to implement a basic use-case in heat for now14:55
thervepop seems to be what I want to do. I need to see how it behaves when messages aren't present.14:56
flaper87therve: you should be able to get all the info you need about the API from here: https://wiki.openstack.org/wiki/Zaqar/specs/api/v1.114:57
flaper87The client should respect that14:57
zigoflaper87: What happens is that, under a build env, I'd run mongodb on a non-standard port manually on the shell, so it can't be on the standard port that the mongodb package uses, as it wouldn't bind if someone just builds without a pbuilder.15:03
zigoJulien Danjou well knows this kind of stuff, as he's a Debian Developer himself...15:04
zigoI'm trying with the standard port for now, but this will need to be fixed, somehow.15:04
zigoWhat's the default db name?15:04
zigoAnd do I need to create it before running the tests?15:05
zigoNow I get a "connection closed" instead of "connection refused", so i'm guessing Zaqar doesn't do the db setup by itself in the unit tests.15:06
zigomessage_zaqar_test ?15:08
zigoIs this the one?15:08
*** kgriffs is now known as kgriffs|afk15:22
*** kgriffs|afk is now known as kgriffs15:30
zigoflaper87: vkmc: ^15:46
*** cpallares has quit IRC15:57
openstackgerritDoug Hellmann proposed openstack/python-zaqarclient: Update README to work with release tools  https://review.openstack.org/17596716:07
*** kgriffs is now known as kgriffs|afk16:14
*** davideagnello has joined #openstack-zaqar16:20
*** exploreshaifali has joined #openstack-zaqar16:30
*** exploreshaifali has quit IRC16:40
*** dynarro has quit IRC17:20
*** achanda has joined #openstack-zaqar17:26
*** kgriffs|afk is now known as kgriffs17:50
*** kgriffs is now known as kgriffs|afk18:03
*** kgriffs|afk is now known as kgriffs18:09
*** achanda has quit IRC18:15
*** achanda has joined #openstack-zaqar18:20
*** openstackgerrit has quit IRC18:37
*** openstackgerrit has joined #openstack-zaqar18:37
*** davideagnello has quit IRC18:41
*** davideagnello has joined #openstack-zaqar18:44
*** kgriffs is now known as kgriffs|afk19:00
*** kgriffs|afk is now known as kgriffs19:25
*** achanda has quit IRC19:41
*** ametts has quit IRC19:56
*** kgriffs is now known as kgriffs|afk20:08
*** kgriffs|afk is now known as kgriffs20:11
*** achanda has joined #openstack-zaqar20:14
*** openstackgerrit has quit IRC20:52
*** openstackgerrit has joined #openstack-zaqar20:52
*** exploreshaifali has joined #openstack-zaqar21:07
*** mpanetta has quit IRC21:23
flwangflaper87: ping21:30
flwangre the puppet zaqar work21:30
vkmcflwang, o/21:30
flwangvkmc: i'm wondering if the work is still ongoing... https://github.com/jasontclark/puppet-zaqar21:31
flwangwe want to deploy zaqar, but seems we need some work to puppet zaqar21:32
vkmcflwang, doesn't seem so21:32
vkmcI haven't seen the one who was working on that for weeks now21:35
vkmcIIRC there is a module for puppet in RDO21:35
flwangvkmc: really?21:38
flwangpuppet for zaqar in RDO?21:38
flwangis it opensource?21:38
flwangwhere can I find it?21:38
vkmclet me check, I might be wrong21:39
vkmchttps://github.com/redhat-openstack/openstack-puppet-modules indeed, I was wrong21:40
flwangwow, it even includes gnocchi but not zaqar22:00
flwangi can't believe my eyes22:00
flwangbtw, do you have any charts about the architecture of zaqar?22:01
vkmclike... for a prez?22:02
*** kgriffs is now known as kgriffs|afk22:10
flwangyep22:14
flwangi need to give a prez for my team to get some ideas how to adopt zaqar in our prod22:14
*** kgriffs|afk is now known as kgriffs22:17
vkmcI made one... and there are also some prior prez kgriffs, flaper87 and alej gave in the past22:18
*** amitgandhinz has quit IRC22:18
vkmclet me find it :)22:20
*** sriram has quit IRC22:31
flwangvkmc: it would be nice if you can share it :)23:23
flwangflaper87: the jenkins of zaqar client is always failed23:38
*** exploreshaifali has quit IRC23:44

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