Thursday, 2016-08-04

*** stanchan has quit IRC00:06
*** JAHoagie has quit IRC00:08
*** stanchan has joined #openstack-zaqar00:15
*** stanchan has quit IRC01:02
openstackgerritwangxiyuan proposed openstack/zaqar: Subscription Confirmation Support-1  https://review.openstack.org/31660101:18
*** stanchan has joined #openstack-zaqar01:41
*** tqtran_ has quit IRC01:42
*** stanchan has quit IRC01:57
*** yanyanhu has joined #openstack-zaqar03:11
flwangwxy__: ping03:28
flwangso for the subscription confirmation patch03:28
flwangwhat happened if the confirm required is not enabled, but user pose duplicate subscription?03:29
*** stanchan has joined #openstack-zaqar03:30
*** stanchan has quit IRC03:45
wxy__flwang, it depends on the subscription's "confirmed" property04:00
flwangwxy__: so that means, even the confirm_required is False, user will still get 204 instead of 409 as before?04:01
wxy__flwang, I think it should be: 1. if the subscription doesn't contain "confirmed", it should return 409. 2. if the subscription contain "confirmed:True", it should return 409 3. if the subscription contain "confirmed:False", it should return 204, but should not send the notification(the confirm required is not enabled)04:05
flwangwhat does that mean ' but should not send the notification'?04:06
wxy__flwang, you mean that if the confirm required is not enabled, zaqar should always return 409?04:07
wxy__flwang,  the confirm notification to the subscriber.04:09
flwangi'm not talking about the notitication04:12
flwangi'm talking about the response code04:13
wxy__flwang, OK, after my patch, no matter  the confirm required is not enabled or not, zaqar will return 409 only when the "confirm" is True. Otherwise ,it will return 204.04:16
flwangwxy__: so because by default the confirm is false, so even the confirm required is not enabled, use will always got 204 for duplicate subscription, right?04:17
wxy__yes04:17
flwangwxy__: ok, i see04:17
wxy__this config option is only used for  message notification.04:19
wxy__flwang, if the value is False, the message posted to a queue will always be notified to the subscriber. if the value is True, then subscription need to be confirmed first.04:21
flwangwxy__: right04:35
*** Qiming has quit IRC04:39
*** tqtran has joined #openstack-zaqar04:42
*** Qiming has joined #openstack-zaqar04:44
*** tqtran has quit IRC04:46
*** stanchan has joined #openstack-zaqar04:58
*** flwang2 has joined #openstack-zaqar04:59
*** stanchan has quit IRC04:59
*** stanchan has joined #openstack-zaqar05:00
*** flwang1 has quit IRC05:01
*** flwang2 has quit IRC05:03
*** rcernin has joined #openstack-zaqar05:16
*** Qiming has quit IRC05:32
*** Qiming has joined #openstack-zaqar05:33
*** pt_15 has quit IRC06:06
*** jtomasek has quit IRC06:09
*** itisha has quit IRC06:10
*** pcaruana has joined #openstack-zaqar06:10
*** Ravikiran_K has joined #openstack-zaqar06:12
*** stanchan has quit IRC06:21
*** stanchan has joined #openstack-zaqar06:28
*** stanchan has quit IRC06:38
*** tqtran has joined #openstack-zaqar06:42
*** tqtran has quit IRC06:47
openstackgerritwangxiyuan proposed openstack/zaqar: Subscription Confirmation Support-1  https://review.openstack.org/31660106:50
*** stanchan has joined #openstack-zaqar06:52
*** tesseract- has joined #openstack-zaqar06:53
openstackgerritwangxiyuan proposed openstack/zaqar: Subscription Confirmation Support-1  https://review.openstack.org/31660106:54
*** jaosorior has joined #openstack-zaqar06:57
jaosoriorHello folks, is anyone around? I think I found an issue with the project-id extraction in zaqar but would like to know more details before coding a fix06:57
*** stanchan has quit IRC07:02
*** stanchan has joined #openstack-zaqar07:09
wxyjaosorior: hello. please say more.07:18
jaosoriorwxy: While I waited for an answer, I think I found the issue and a solution too. I have reported this https://bugs.launchpad.net/zaqar/+bug/160966207:19
openstackLaunchpad bug 1609662 in zaqar "Getting the versions of the API fails" [Undecided,New]07:19
wxyjaosorior: looking.07:19
openstackgerritJuan Antonio Osorio Robles proposed openstack/zaqar: Don't check for project-id if accessing the / route  https://review.openstack.org/35103907:22
jaosoriorwxy: That is my proposed solution ^^ But I still need to add tests07:22
jaosoriorwxy: While trying to run the unit tests, I'm getting this: Failed to load "zaqar.data.storage" driver for "mongodb"07:25
jaosoriorThen it fails with this: pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused07:25
jaosoriorwxy: Did I miss some setup?07:25
wxyjaosorior: nice catch. https://review.openstack.org/#/c/306782/1 this patch allow users to visit root path without authentication. But https://review.openstack.org/#/c/305035/ forgot this situation.07:26
wxyjaosorior: thanks for doing this.07:26
wxyI guess connection refused means that you should modify the mongodb's config file.07:28
jaosoriorwxy: So, is it necessary for me to have mongodb to run the unit tests?07:28
jaosoriorthought the access to the database would be mocked for the unit tests or something of the sort07:29
therveSome tests require mongo to run07:30
wxyjaosorior: yes07:33
*** openstackgerrit has quit IRC07:33
*** openstackgerrit has joined #openstack-zaqar07:33
wxyjaosorior: you can find some decorator like: @testing.requires_mongodb07:34
wxyjaosorior: usually I export some env for zaqar test:  export ZAQAR_TEST_REDIS=redis://127.0.0.1:6379 export ZAQAR_TESTS_CONFIGS_DIR=/opt/stack/zaqar/zaqar/tests/etc export ZAQAR_TEST_MONGODB=mongodb://10.229.47.217:27017/zaqar export ZAQARCLIENT_AUTH_FUNCTIONAL=True  export ZAQARCLIENT_TEST_FUNCTIONAL=True07:35
wxyjaosorior: the ip need to be changed to yours07:35
*** dynarro has joined #openstack-zaqar07:37
jaosoriorwxy: Is there an option to skip the mongodb-related tests?07:37
jaosorioreither way for testing the / route they shouldn't be needed07:37
thervejaosorior, ZAQAR_TEST_MONGODB=0 I believe07:37
wxyjaosorior: You can have a try. :)07:38
thervewxy, AFAIK your exports are not useful, you can't pass URLs to ZAQAR_TEST_REDIS or ZAQAR_TEST_MONGODB07:41
therveThere is a ZAQAR_TEST_MONGODB_URL var though07:42
jaosoriortherve: the env variable you passed didn't work out :(07:42
thervejaosorior, How did you try?07:42
jaosoriorexport ZAQAR_TEST_MONGODB=007:42
jaosoriorthen I ran tox07:43
therveYeah I don't know if tox will respect it07:43
wxytherve: thanks, you are right.07:44
jaosoriorno biggie. I think I'll just write a functional test anyway. Noticed it was getting complicated to add the before_hooks to unit tests07:46
therveYou can just run the tests you care about, anyway07:47
*** stanchan has quit IRC07:48
openstackgerritJuan Antonio Osorio Robles proposed openstack/zaqar: Don't check for project-id if accessing the / route  https://review.openstack.org/35103907:49
jaosoriorwxy, therve: Could you give a quick look to that patch? ^^ To see if it makes sense07:52
jaosoriorI'm gonna add also another test with the headers in the client. But yeah, just a sanity check so the bug doesn't get a regression07:53
therveThat looks okay to me07:55
wxythe code is ok from my sight and works well in my env.07:57
*** stanchan has joined #openstack-zaqar08:04
openstackgerritJuan Antonio Osorio Robles proposed openstack/zaqar: Don't check for project-id if accessing the / route  https://review.openstack.org/35103908:06
wxytherve: I have a question. As zaqar' functional test is non-voting now. Do we hope developer to add this kind of test?08:12
*** jaosorior has quit IRC08:13
thervewxy, You mean the tempest ones?08:13
*** jaosorior has joined #openstack-zaqar08:13
wxytherve: no,  for example: https://review.openstack.org/#/c/348699/ gate-dsvm-mongodb-zaqar and gate-dsvm-redis-zaqar08:15
therveYeah those are tempest tests08:16
wxylike the test in jaosorior' patch. actually, it's non-voting.08:16
therveI'm pretty sure the tests in jaosorior are voting08:17
wxytherve: really? which CI contained it?08:17
thervewxy, The integration job I believe08:18
*** stanchan has quit IRC08:20
wxytherve: oh,yes.I thought they were included in the non-voting job before.08:23
*** flwang1 has joined #openstack-zaqar08:40
*** tqtran has joined #openstack-zaqar08:44
jaosoriorgreat, therve, wxy, by the way, is there a way for zaqar to use middleware? Or is it restrictued to those before_hooks?08:48
*** tqtran has quit IRC08:49
*** gb21 has joined #openstack-zaqar08:55
jaosoriortherve, wxy: Can you guys review the fix I did https://review.openstack.org/#/c/351039/ ?09:01
wxyjaosorior: AFAIK, there is no middleware like nova,cinder or other project does. It uses the before_hooks as the middleware.09:02
therveYou can use middleware, there is no configurable way to do so09:03
*** gb21 has quit IRC09:29
*** dynarro has quit IRC10:15
*** dynarro has joined #openstack-zaqar10:21
*** gb21 has joined #openstack-zaqar10:32
*** dynarro has quit IRC10:33
*** yanyanhu has quit IRC10:33
*** gb21 is now known as GB2110:41
*** prashanthraghu has joined #openstack-zaqar10:57
*** GB21 has quit IRC11:01
*** GB21 has joined #openstack-zaqar11:02
*** Ravikiran_K has quit IRC11:04
*** prashanthraghu has quit IRC11:13
*** JAHoagie has joined #openstack-zaqar11:19
*** JAHoagie has quit IRC11:23
*** dynarro has joined #openstack-zaqar11:49
*** GB21 has quit IRC12:30
*** tqtran has joined #openstack-zaqar12:45
*** tqtran has quit IRC12:50
openstackgerritJuan Antonio Osorio Robles proposed openstack/zaqar: Don't check for project-id if accessing the / route  https://review.openstack.org/35103913:23
*** JAHoagie has joined #openstack-zaqar13:27
*** andreaf has joined #openstack-zaqar13:35
*** ametts has joined #openstack-zaqar13:45
*** prashanthraghu has joined #openstack-zaqar13:59
*** prashanthraghu has quit IRC14:06
*** jaosorior has quit IRC14:17
*** JAHoagie has quit IRC14:22
*** stanchan has joined #openstack-zaqar14:47
*** stanchan has quit IRC14:48
*** rcernin has quit IRC15:09
*** JAHoagie has joined #openstack-zaqar15:19
*** JAHoagie has quit IRC15:26
*** stanchan has joined #openstack-zaqar15:47
*** ametts has quit IRC15:57
*** ametts has joined #openstack-zaqar16:04
*** pt_15 has joined #openstack-zaqar16:42
*** tqtran has joined #openstack-zaqar16:47
*** itisha has joined #openstack-zaqar16:51
*** tqtran has quit IRC16:51
*** david-lyle has quit IRC16:53
*** david-lyle has joined #openstack-zaqar16:53
*** flaper87 has quit IRC17:03
*** JAHoagie has joined #openstack-zaqar17:18
*** stanchan has quit IRC17:37
*** dynarro has quit IRC17:45
*** tesseract- has quit IRC17:53
*** stanchan has joined #openstack-zaqar18:05
*** stanchan has quit IRC18:15
*** tqtran has joined #openstack-zaqar18:17
*** stanchan has joined #openstack-zaqar18:54
*** stanchan has quit IRC18:55
*** stanchan has joined #openstack-zaqar18:56
*** fifieldt has quit IRC19:07
*** fifieldt has joined #openstack-zaqar19:18
*** pmathews has quit IRC19:36
*** stanchan has quit IRC19:36
openstackgerritMerged openstack/zaqar: Don't check for project-id if accessing the / route  https://review.openstack.org/35103919:58
*** ametts has quit IRC20:05
*** ametts has joined #openstack-zaqar20:10
*** stanchan has joined #openstack-zaqar20:15
*** flwang1 has quit IRC20:16
*** pmathews has joined #openstack-zaqar20:34
*** pmathews1 has joined #openstack-zaqar20:35
*** pmathews has quit IRC20:38
*** stanchan has quit IRC20:41
*** pmathews1 has quit IRC20:44
*** stanchan has joined #openstack-zaqar20:45
*** pmathews has joined #openstack-zaqar21:06
*** stanchan has quit IRC21:18
*** stanchan has joined #openstack-zaqar21:20
*** ametts has quit IRC21:26
*** pmathews has quit IRC21:28
*** flwang1 has joined #openstack-zaqar21:37
*** pmathews has joined #openstack-zaqar21:40
*** pmathews has quit IRC21:49
*** pmathews has joined #openstack-zaqar21:57
*** stanchan has quit IRC22:18
*** stanchan has joined #openstack-zaqar22:20
*** stanchan has quit IRC22:30
*** stanchan has joined #openstack-zaqar22:52
*** pmathews has quit IRC23:41
*** stanchan has quit IRC23:43
*** stanchan has joined #openstack-zaqar23:56

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