[vitrage] Problem when execute mistral with get_atrr() function
I try doing use case with vitrage notification execute mistral but got a problem: In my use case, i try evacuate host with 2 instance "vm_1" and "vm_2" on it, when host have alarm -then evacuate instance: ``` condition: nova_compute_down_on_host and host_contain_instance actions: - action: action_type: execute_mistral properties: workflow: evacuate_vm input: vm_name: get_attr(instance, name) ``` I expect m istral workflow will then be: execute workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_2``` But i alway get : mistral execute that workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_1``` When i turn on debug log, to see the line "Function get_attr called with template_id..." follow " https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/te... " I saw that line appear only one time! I don't know it is bug or not, can u help me? (my vitrage in queens version) Best regards.
I try doing use case with vitrage notification execute mistral but got a problem: In my use case, i try evacuate host with 2 instance "vm_1" and "vm_2" on it, when host have alarm -then evacuate instance: ``` condition: nova_compute_down_on_host and host_contain_instance actions: - action: action_type: execute_mistral properties: workflow: evacuate_vm input: vm_name: get_attr(instance, name) ``` I expect m istral workflow will then be: execute workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_2``` But i alway get : mistral execute that workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_1``` When i turn on debug log, to see the line "Function get_attr called with template_id..." follow " https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/te... " I saw that line appear only one time! And after that scenario do-action, when i add another template with action "execute_mistral", all not work. I don't know it is bug or not? please help me (my vitrage in queens version) Best regards.
I try doing use case with vitrage notification execute mistral but got a problem: In my use case, i try evacuate host with 2 instance "vm_1" and "vm_2" on it, when host have alarm -then evacuate instance: ``` condition: nova_compute_down_on_host and host_contain_instance actions: - action: action_type: execute_mistral properties: workflow: evacuate_vm input: vm_name: get_attr(instance, name) ``` I expect m istral workflow will then be: execute workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_2``` But i alway get : mistral execute that workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_1``` When i turn on debug log, to see the line "Function get_attr called with template_id..." follow " https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/te... " I saw that line appear only one time! I don't know it is bug or not? please help me (my vitrage in queens version) Best regards.
Hi, Seems like you found a bug. I created a Story for it [1] and will try to fix it this week. Best Regards, Ifat [1] https://storyboard.openstack.org/#!/story/2005289 On Sat, Mar 23, 2019 at 3:01 AM <hoanq13@viettel.com.vn> wrote:
I try doing use case with vitrage notification execute mistral but got a problem:
In my use case, i try evacuate host with 2 instance "vm_1" and "vm_2" on it, when host have alarm -then evacuate instance: ```
condition: nova_compute_down_on_host and host_contain_instance actions:
- action: action_type: execute_mistral properties: workflow: evacuate_vm input: vm_name: get_attr(instance, name)
```
I expect mistral workflow will then be: execute workflow 2 times with input:
```vm_name: vm_1``` and ```vm_name: vm_2```
But i alway get : mistral execute that workflow 2 times with input:
```vm_name: vm_1``` and ```vm_name: vm_1```
When i turn on debug log, to see the line "Function get_attr called with template_id..." follow " https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/te... " I saw that line appear only one time!
I don't know it is bug or not? please help me (my vitrage in queens version)
Best regards.
try asking on [X] openstack-discuss@lists.openstack.org Thanks, Kevin ________________________________ From: hoanq13@viettel.com.vn [hoanq13@viettel.com.vn] Sent: Friday, March 22, 2019 4:19 AM To: openstack-dev@lists.openstack.org Subject: [vitrage] Problem when execute mistral with get_atrr() function I try doing use case with vitrage notification execute mistral but got a problem: In my use case, i try evacuate host with 2 instance "vm_1" and "vm_2" on it, when host have alarm -then evacuate instance: ``` condition: nova_compute_down_on_host and host_contain_instance actions: - action: action_type: execute_mistral properties: workflow: evacuate_vm input: vm_name: get_attr(instance, name) ``` I expect mistral workflow will then be: execute workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_2``` But i alway get : mistral execute that workflow 2 times with input: ```vm_name: vm_1``` and ```vm_name: vm_1``` When i turn on debug log, to see the line "Function get_attr called with template_id..." follow "https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/te..." I saw that line appear only one time! I don't know it is bug or not, can u help me? (my vitrage in queens version) Best regards.
On 2019-03-22 22:59:21 +0000 (+0000), Fox, Kevin M wrote:
try asking on [X] openstack-discuss@lists.openstack.org [...]
The message to which you're replying was delivered to openstack-discuss and is in the archive here: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/004159.htm... The old openstack-dev list address is merely an alias for openstack-discuss and has been for over three months. That said, I agree it's more correct to use the openstack-discuss address for it. -- Jeremy Stanley
participants (4)
-
Fox, Kevin M
-
hoanq13@viettel.com.vn
-
Ifat Afek
-
Jeremy Stanley