<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>Seems like you found a bug. I created a Story for it [1] and will try to fix it this week.</div><div><br></div><div>Best Regards,</div><div>Ifat</div><div><br></div><div>[1] <a href="https://storyboard.openstack.org/#!/story/2005289">https://storyboard.openstack.org/#!/story/2005289</a> </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 23, 2019 at 3:01 AM <<a href="mailto:hoanq13@viettel.com.vn">hoanq13@viettel.com.vn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div style="font-family:"times new roman","new york",times,serif;font-size:12pt;color:rgb(0,0,0)"><div><p style="background-color:rgb(255,255,255);margin:0px">I try doing use case with vitrage notification execute mistral but got a problem:</p><p style="background-color:rgb(255,255,255);margin:0px"><br></p><p style="background-color:rgb(255,255,255);margin:0px">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:<br>```</p><p style="background-color:rgb(255,255,255);margin:0px">condition: nova_compute_down_on_host and host_contain_instance<br>actions:</p><p style="background-color:rgb(255,255,255);margin:0px">  - action:<br>      action_type: execute_mistral<br>      properties:<br>         workflow: evacuate_vm<br>         input:<br>            vm_name: get_attr(instance, name)</p><p style="background-color:rgb(255,255,255);margin:0px">```</p><p style="background-color:rgb(255,255,255);margin:0px"><br></p><p style="background-color:rgb(255,255,255);margin:0px">I expect m<span style="font-size:12pt">istral workflow will then be: execute workflow 2 times with input:</span></p><p style="background-color:rgb(255,255,255);margin:0px">```vm_name: vm_1```  and  ```vm_name: vm_2``` </p><p style="background-color:rgb(255,255,255);margin:0px"><br></p><p style="background-color:rgb(255,255,255);margin:0px">But i alway get : mistral execute that workflow 2 times with input:</p><p style="background-color:rgb(255,255,255);margin:0px"><br></p><p style="background-color:rgb(255,255,255);margin:0px">```vm_name: vm_1```  and  ```vm_name: vm_1``` </p><div style="background-color:rgb(255,255,255)"><br></div><div style="background-color:rgb(255,255,255)">When i turn on debug log, to see the line "Function get_attr called with template_id..." follow<br>"<a href="https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/template_functions/v2/functions.py" style="color:rgb(51,102,153);text-decoration-line:none" target="_blank">https://github.com/openstack/vitrage/blob/stable/queens/vitrage/evaluator/template_functions/v2/functions.py</a>"<br>I saw that line appear only one time!</div><div style="background-color:rgb(255,255,255)"><br><div><br></div>I don't know it is bug or not? please help me<br>(my vitrage in queens version)<br><div><br></div>Best regards.</div><div><br></div><p style="background-color:rgb(255,255,255);margin:0px"><br></p></div></div></div></div></div></blockquote></div>