<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:378012928;
        mso-list-type:hybrid;
        mso-list-template-ids:-186508064 1443518608 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-36.0pt;}
@list l1
        {mso-list-id:411393610;
        mso-list-type:hybrid;
        mso-list-template-ids:-61848238 1443518608 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-36.0pt;}
@list l2
        {mso-list-id:621693705;
        mso-list-type:hybrid;
        mso-list-template-ids:-848552658 -1973266918 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l2:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-36.0pt;}
@list l3
        {mso-list-id:1492523217;
        mso-list-type:hybrid;
        mso-list-template-ids:2140307504 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l3:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l4
        {mso-list-id:1846549854;
        mso-list-type:hybrid;
        mso-list-template-ids:-1450293162 -1973266918 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l4:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-36.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear Murano developers and testers,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to put some files that Mistral workflow needs into Murano package, and hope Murano can transmit them to Mistral before it calls Mistral workflow.<o:p></o:p></p>
<p class="MsoNormal">The flow should be as following:<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-36.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">                  
</span></span><![endif]>User uploads one Murano package which includes both Murano artifacts and Mistral artifacts to Murano;<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-36.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">                  
</span></span><![endif]>Murano transmits the Mistral artifacts to Mistral, and Mistral does its work.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After study, I thought muranoagent may be helpful and plan to install a muranoagent on the Mistral server since it can put files into nova server, and can run scripts on the nova server.
<o:p></o:p></p>
<p class="MsoNormal">After further study, I found muranoagent solution may be not feasible:<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-36.0pt;mso-list:l4 level1 lfo4"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">                  
</span></span><![endif]>muranoagent and murano-engine(dsl) uses rabbitMQ to communicate.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-36.0pt;mso-list:l4 level1 lfo4"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">                  
</span></span><![endif]>When an Agent object is created in DSL, murano-engine creates a unique message queue to communicate with the muranoagent in nova instance:<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">The queue name consists of current murano environment id, and the nova instance murano object id.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-36.0pt;mso-list:l4 level1 lfo4"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">                  
</span></span><![endif]>During murano creates the nova instance, it passes this unique queue name via nova user_data to muranoagent on guest.<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">In this way, muranoagents on different guests can communicate with murano-engine separately.<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">This doesn’t suit the muranoagent + Mistral server solution.<o:p></o:p></p>
<p class="MsoNormal">We only want to install one muranoagent in Mistral server, and it should only listen on one message queue.<o:p></o:p></p>
<p class="MsoNormal">We can’t create  new muranoagent for each murano environment.<o:p></o:p></p>
<p class="MsoNormal">To achieve this, one solution that I can think is to modify murano code to implement a new MistralAgent to listen on a pre-defined message queue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please share your ideas about this?<o:p></o:p></p>
<p class="MsoNormal">If you have other solution, please also help to share it.  <span style="font-family:Wingdings">J</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal">Tony<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>