Re: No event publish can be wrapped within db transaction...why?

2014-11-24 Thread Rohit Yadav
I’m unable to follow the thread. I’ve gone through the slides Min shared and the talk, can Min/Prachi or anyone else working on IAM/Events take a second attempt at explaining the issue/cause/implementation. Leo, if you’ve already figured out I would love to hear from you. Should we even allow e

Re: No event publish can be wrapped within db transaction...why?

2014-11-18 Thread Min Chen
For IAM feature design goal, you can take a look at our FS at https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Identity+ and+Access+Management+%28IAM%29+Plugin. Also Prachi and I presented this work at Denver Apache CloudStack Collab conference, you can also view our slideshare at

Re: No event publish can be wrapped within db transaction...why?

2014-11-18 Thread Leo Simons
Hi Min, Thanks for a very clear answer! However, I'm afraid I still don't get it :-). So... ...do you have any specific example or use case of an external IAM service to integrate with? Is there some kind of design document for me to understand the goals? I ask because all the ones that I'm f

Re: No event publish can be wrapped within db transaction...why?

2014-11-18 Thread Min Chen
Hi Leo, "NO EVENT PUBLISH CAN BE WRAPPED WITHIN DB TRANSACTION!" is along the same line as "NO AGENT COMMAND CAN BE WRAPPED WITHIN DB TRANSACTION!". The rationale behind this is simple: event subscriber execution or agent command handling at resource layer may take too long, and we don't w

No event publish can be wrapped within db transaction...why?

2014-11-18 Thread Leo Simons
Hi Min, hi Koushik, Cloudstack is shouting at me: NO EVENT PUBLISH CAN BE WRAPPED WITHIN DB TRANSACTION! (full stack trace below). I've learned this is happening on our systemvm-persistent-config feature branch because it has commit ffaabdc13fde0f0f7b2667a483006e2a4b805f63 but it does not h