*** trozet has quit IRC | 01:17 | |
*** trozet has joined #congress | 01:18 | |
*** zhurong has joined #congress | 01:28 | |
*** zhurong has quit IRC | 02:30 | |
*** masahito has joined #congress | 02:56 | |
*** masahito has quit IRC | 03:15 | |
*** masahito has joined #congress | 03:42 | |
*** zhurong has joined #congress | 04:00 | |
*** zhurong has quit IRC | 04:30 | |
*** zhurong has joined #congress | 04:40 | |
ramineni | ekcs__: hi | 05:24 |
---|---|---|
ramineni | masahito: hi | 05:24 |
masahito | ramineni: hi | 05:51 |
ramineni | masahito: one question | 05:52 |
ramineni | masahito: whenever the action is triggered corresponding to rule, is there a way to retrieve the rule_id and project_id corresponding to triggered action | 05:54 |
ramineni | masahito: like https://github.com/openstack/congress/blob/master/congress/policy_engines/agnostic.py#L2043 | 05:55 |
ramineni | masahito: is there a way to know rule id, that triggered this action | 05:55 |
masahito | passing rule_id and project_id as one of arguments for client program? | 05:56 |
masahito | arguments means parameters for API call | 05:56 |
ramineni | masahito: but once rule is created execute[nova:servers.pause(id)] :- ..... | 05:57 |
ramineni | masahito: at some point of time , the action is triggered when there is row satisfying policy right , | 05:58 |
ramineni | if I want to log the rule_id that caused this action to execute | 05:59 |
masahito | IIRC, datasource_driver can't find out which rule sends the action requests. | 05:59 |
ramineni | masahito: hmm, ok | 06:01 |
masahito | I think to records rule_id and/or policy_id outside of Congress, carlos proposed the notification features in PTG. | 06:04 |
ramineni | masahito: yes, it is regarding the same :) | 06:04 |
ramineni | masahito: he wants to append rule_id, project_id while sending notification, but I couldn't find any way to retrieve it directly | 06:05 |
ramineni | when the action is triggered | 06:05 |
ramineni | masahito: I have asked him to join tomorrows meeting to discuss regarding it | 06:06 |
masahito | ahh. I find out your situation. | 06:08 |
masahito | I thought you're trying to create an execution rule with rule_id, like execute[nova.servers.delete(rule_id)]:-, but it's not what you want. | 06:10 |
ramineni | masahito: no | 06:10 |
ramineni | masahito: normal action rule creation only | 06:12 |
masahito | The theory argument of _execute_table seems to be a policy object. Can the policy id or name be retrieved by the object? | 06:13 |
ramineni | masahito: yes, it can be retrieved | 06:14 |
ramineni | masahito: we can retrieve the rules also from the theory object , but the problem comes when 2 same execute actions rules are defined | 06:15 |
ramineni | it retrieves both rules, but there is no way to know which rule triggered that action | 06:15 |
masahito | I see. | 06:20 |
masahito | I think we needs some change to track it. | 06:26 |
ramineni | masahito: may be if the tablenames are diff then, we would be able to identify the eact rule | 06:27 |
ramineni | exact** | 06:27 |
masahito | or usually pass the trigger rule like context. | 06:30 |
ramineni | masahito: you meant while storing triggers | 06:37 |
ramineni | ? | 06:37 |
ramineni | https://github.com/openstack/congress/blob/master/congress/policy_engines/agnostic.py#L1996 | 06:37 |
ramineni | ? | 06:37 |
masahito | yes. it's one of options. | 06:44 |
ramineni | masahito: ya, ok | 06:46 |
*** zhurong has quit IRC | 08:47 | |
*** zhurong has joined #congress | 09:02 | |
*** zhurong has quit IRC | 09:51 | |
*** masahito has quit IRC | 09:56 | |
*** masahito has joined #congress | 09:57 | |
*** masahito has quit IRC | 10:09 | |
*** zhurong has joined #congress | 13:54 | |
*** zhurong has quit IRC | 14:17 | |
*** ramineni_ has joined #congress | 14:58 | |
*** ramineni_ has quit IRC | 15:48 | |
*** ekcs has joined #congress | 17:46 | |
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is being restarted now to clear some excessive connection counts while we debug the intermittent request failures reported over the past few minutes | 20:04 | |
*** catintheroof has joined #congress | 21:47 | |
*** catintheroof has quit IRC | 22:46 | |
openstackgerrit | Eric Kao proposed openstack/congress master: Policy library DB schema, interface, and DSE service https://review.openstack.org/471954 | 23:09 |
*** openstack has joined #congress | 23:14 | |
openstackgerrit | Eric Kao proposed openstack/congress master: Rename id to name in library policy https://review.openstack.org/471955 | 23:15 |
*** ramineni_ has joined #congress | 23:57 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!