*** chandan_kumar has joined #openstack-climate | 03:42 | |
*** chandan_kumar has quit IRC | 03:46 | |
*** chandankumar_ has quit IRC | 05:28 | |
*** chandan_kumar has joined #openstack-climate | 05:38 | |
*** saju_m has joined #openstack-climate | 07:02 | |
*** bauzas has joined #openstack-climate | 07:54 | |
*** Nikolay_1t has joined #openstack-climate | 08:06 | |
*** Nikolay_St has quit IRC | 08:11 | |
*** openstackgerrit has quit IRC | 08:11 | |
*** saju_m has quit IRC | 08:11 | |
*** bauzas has quit IRC | 08:11 | |
*** chandan_kumar has quit IRC | 08:11 | |
*** YorikSar has quit IRC | 08:11 | |
*** scroiset has quit IRC | 08:11 | |
*** SergeyLukjanov has quit IRC | 08:11 | |
*** DinaBelova has quit IRC | 08:11 | |
*** f_rossigneux has quit IRC | 08:11 | |
*** openstackgerrit has joined #openstack-climate | 09:01 | |
*** bauzas has joined #openstack-climate | 09:01 | |
*** saju_m has joined #openstack-climate | 09:01 | |
*** chandan_kumar has joined #openstack-climate | 09:01 | |
*** YorikSar has joined #openstack-climate | 09:01 | |
*** SergeyLukjanov has joined #openstack-climate | 09:01 | |
*** DinaBelova has joined #openstack-climate | 09:01 | |
*** scroiset has joined #openstack-climate | 09:01 | |
*** f_rossigneux has joined #openstack-climate | 09:01 | |
*** bauzas has quit IRC | 09:14 | |
*** saju_m has quit IRC | 09:19 | |
*** bauzas has joined #openstack-climate | 09:27 | |
*** saju_m has joined #openstack-climate | 09:35 | |
bauzas | DinaBelova: something weird happened with https://bugs.launchpad.net/climate/+bug/1288179 | 11:14 |
---|---|---|
bauzas | for some reason, an Ubuntu guy triaged this bug | 11:14 |
openstackgerrit | Sylvain Bauza proposed a change to stackforge/climate: Fix Empty Context stack issue https://review.openstack.org/78164 | 11:17 |
*** chandan_kumar has quit IRC | 11:25 | |
DinaBelova | hm, maybe that's some pecan/wsme error? | 11:27 |
DinaBelova | mm | 11:27 |
DinaBelova | I don't know really :D | 11:27 |
bauzas | nah, I think the guy was drunk | 11:33 |
DinaBelova | :D | 11:35 |
Nikolay_1t | bauzas: :D | 11:37 |
*** chandan_kumar has joined #openstack-climate | 12:11 | |
*** casanch1 has joined #openstack-climate | 12:58 | |
*** cmart has joined #openstack-climate | 13:20 | |
bauzas | YorikSar: you there, about discussing https://bugs.launchpad.net/climate/+bug/1288179 | 13:30 |
bauzas | YorikSar: ? | 13:30 |
casanch1 | bauzas: hi | 13:44 |
bauzas | casanch1: hi | 13:44 |
casanch1 | please, whenever you have some time, could you take a look at the notifications review https://review.openstack.org/#/c/75189/ | 13:45 |
casanch1 | I think it'll be great to have your input | 13:45 |
bauzas | casanch1: I'll do my best :) | 13:46 |
casanch1 | thanks | 13:46 |
YorikSar | bauzas: Hi | 13:56 |
YorikSar | So... What about it? | 13:56 |
bauzas | YorikSar: I just placed some comments within the bug | 13:56 |
bauzas | YorikSar: feel free to read these | 13:56 |
bauzas | YorikSar: I also gave you the stacktraces | 13:56 |
YorikSar | bauzas: Ok, sure. | 13:57 |
bauzas | YorikSar: I'm currently digging into Pecan to see with after() is called without before() | 13:57 |
YorikSar | bauzas: In fact I find it really strange that after() can be called w/o before(). | 13:57 |
bauzas | YorikSar: yup, sounds like a Pecan bug | 13:57 |
YorikSar | bauzas: Oh, no. | 13:57 |
YorikSar | bauzas: It isn't. | 13:57 |
bauzas | that's another thread then ? | 13:57 |
DinaBelova | bauzas, btw - to get rid of duplicate option error test your patch with previous oslo.messaging | 13:57 |
DinaBelova | or update openstack common | 13:58 |
DinaBelova | by using appropriate patchg | 13:58 |
bauzas | DinaBelova: don't worry, I just went through the merged patch | 13:58 |
YorikSar | bauzas: If before() wouldn't have been called we'd get another error - no context object would be available. | 13:58 |
bauzas | it just says that the stack is empty | 13:58 |
YorikSar | bauzas: So it means that after() is called twice. | 13:59 |
bauzas | well, I can put some logging in there | 13:59 |
bauzas | we'll see | 13:59 |
bauzas | hold on, instrumenting this | 13:59 |
YorikSar | bauzas: This is some Pecan's bullshitting, actually... I guess we can add a flag that will prevent second __exit__ from happening. | 13:59 |
bauzas | well, sounds ok to me | 14:00 |
bauzas | we put some flag in the state dict | 14:00 |
bauzas | and if the flag is there, run __exit__() | 14:00 |
bauzas | and of course, consume the flag | 14:00 |
bauzas | ok, will do this | 14:00 |
YorikSar | bauzas: Wait... | 14:01 |
YorikSar | bauzas: We should make sure we don't do smth nondeterministic here... | 14:01 |
bauzas | don't you think it would be good to replace the IndexError exception by a more readable one | 14:01 |
bauzas | mmm | 14:01 |
YorikSar | bauzas: I've just thought of a possible reason for this, actually. | 14:01 |
YorikSar | bauzas: It might be because of on_error called before after() | 14:02 |
bauzas | on_error() is never called | 14:02 |
bauzas | WSME is catching the exceptions | 14:02 |
bauzas | oh | 14:02 |
bauzas | ok, lemme instrument this | 14:02 |
YorikSar | bauzas: You should check it. | 14:02 |
YorikSar | bauzas: If that's the case, you should store error in the request object and pass it to __exit__ | 14:03 |
bauzas | hold 5 mins | 14:04 |
bauzas | YorikSar: you got it | 14:06 |
bauzas | 2014-03-05 15:06:28.012 3229 DEBUG climate.api.v2.hooks [-] ***** CTX ERROR ***** on_error /home/bauzas/climate/climate/api/v2/hooks.py:58 | 14:06 |
bauzas | 2014-03-05 15:06:28.016 3229 DEBUG climate.api.v2.hooks [-] ***** CTX AFTER ***** after /home/bauzas/climate/climate/api/v2/hooks.py:54 | 14:06 |
bauzas | oh dear... | 14:06 |
bauzas | that's not going to on_error() | 14:07 |
bauzas | that's going to on_error() | 14:07 |
bauzas | that would be worth totally removing it | 14:07 |
bauzas | as WSME is catching all exceptions | 14:07 |
bauzas | YorikSar: what do you think about it? | 14:08 |
YorikSar | bauzas: We should definitelly handle on_error. Because WSME can fail. Or smth else can fail before it. | 14:09 |
YorikSar | bauzas: But if WSME handled the error, we don't need to pass it into Context. | 14:09 |
bauzas | YorikSar: so, what would be the best option ? storing the error within the state dict ? | 14:09 |
YorikSar | bauzas: In fact, since after() is called anyway, you should just remove on_error and it'll be fine. | 14:10 |
bauzas | (15:07:16) bauzas: that's going to on_error() | 14:10 |
bauzas | (15:07:39) bauzas: that would be worth totally removing it | 14:10 |
bauzas | :) | 14:10 |
bauzas | ok, will remove the on_error() hook | 14:10 |
bauzas | after() is called anyway | 14:11 |
bauzas | will put a comment for clarity | 14:11 |
YorikSar | bauzas: Ok. | 14:11 |
bauzas | welcome in my Pecan/WSME buggy world | 14:11 |
bauzas | still have one last question tho | 14:12 |
bauzas | I personnally think it would be good to raise a more understandable exception than IndexError for the __exit__() clause | 14:12 |
bauzas | I can propose ContextException('stack is empty') | 14:12 |
bauzas | YorikSar: do you agree ? | 14:13 |
YorikSar | bauzas: I want to avoid Climate-specific exceptions in contexts... | 14:13 |
bauzas | why ? that's climate.context :) | 14:14 |
YorikSar | bauzas: You can add descriptive assert before that line, actually. | 14:14 |
bauzas | unless you want to put it in oslo :) | 14:14 |
YorikSar | bauzas: Because I want it to become oslo.context probably one day ;) | 14:14 |
bauzas | :) | 14:14 |
*** saju_m has quit IRC | 14:15 | |
YorikSar | bauzas: You can add smth like this: | 14:15 |
bauzas | well, ok for a simple assert then | 14:15 |
YorikSar | assert self._context_stack, "context stack is already empty" | 14:15 |
bauzas | ok | 14:18 |
bauzas | will amend my commit | 14:18 |
bauzas | thanks | 14:18 |
*** chandan_kumar has quit IRC | 15:51 | |
*** chandan_kumar has joined #openstack-climate | 15:57 | |
openstackgerrit | Sylvain Bauza proposed a change to stackforge/climate: Port to Pecan/WSME for API v2 https://review.openstack.org/71011 | 16:28 |
openstackgerrit | Cristian A Sanchez proposed a change to stackforge/climate: Sends notifications at lease events https://review.openstack.org/75189 | 16:47 |
openstackgerrit | Sylvain Bauza proposed a change to stackforge/climate: Add extensions for API v2 controllers https://review.openstack.org/78309 | 17:11 |
casanch1 | guys, is it possible to start climate-m with remote debugging options like the rest of the openstack components? | 17:12 |
bauzas | casanch1: not yet | 17:13 |
bauzas | you have to manually inject a pdb.set_trace() | 17:14 |
casanch1 | oh ok | 17:14 |
bauzas | casanch1: I'm personnally using ST3 for texting | 17:14 |
casanch1 | i'm using pycharm but I cannot do remote debug | 17:14 |
bauzas | casanch1: I dislike Pydev or PyCharm | 17:14 |
bauzas | casanch1: too way huge for me | 17:14 |
bauzas | casanch1: I have to go | 17:15 |
casanch1 | bauzas: ok, thanks | 17:15 |
*** pcargnel has joined #openstack-climate | 17:15 | |
*** chandan_kumar has quit IRC | 17:16 | |
*** bauzas has quit IRC | 17:19 | |
*** openstackgerrit has quit IRC | 17:32 | |
*** openstackgerrit has joined #openstack-climate | 18:26 | |
*** bauzas has joined #openstack-climate | 18:55 | |
*** openstackgerrit has quit IRC | 19:02 | |
*** casanch1_ has joined #openstack-climate | 20:05 | |
*** casanch1 has quit IRC | 20:06 | |
*** casanch1_ is now known as casanch1 | 20:07 | |
*** casanch1 has quit IRC | 20:11 | |
*** casanch1 has joined #openstack-climate | 20:33 | |
*** cmart has quit IRC | 20:34 | |
*** casanch1 has quit IRC | 21:10 | |
*** bauzas has quit IRC | 21:27 | |
*** pcargnel has quit IRC | 23:02 | |
*** openstack has joined #openstack-climate | 23:03 | |
-dickson.freenode.net- [freenode-info] channel trolls and no channel staff around to help? please check with freenode support: http://freenode.net/faq.shtml#gettinghelp | 23:03 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!