<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=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:\65B0\7D30\660E\9AD4;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\@\65B0\7D30\660E\9AD4";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
/* Page Definitions */
@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:1129858418;
        mso-list-template-ids:-287658432;}
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=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>Hi</span><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'> <o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>I recently use OS::Heat::InstanceGroup to deploy multiple Bare-metal instances. I Also hope to attach network for these Bare-metal instances. However, the resource OS::Heat::InstanceGroup and AWS::AutoScaling::LaunchConfiguration both has no network property.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white;orphans: auto;text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>What can I do to attach network for Bare-metal instance? I have already tried some way.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;background:white'><![if !supportLists]><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>    </span></span></span><![endif]><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>Use AWS::AutoScaling::AutoScalingGroup instead of OS::Heat::InstanceGroup because AWS::AutoScaling::AutoScalingGroup has a property named "VPCZoneIdentifier". However, this method can only apply to non-Bare-metal instance. There would be error "no valid host found" if used to deploy Bare-metal instance. I checked the log and the error is "PortNotUseable" so that I suspect the error is related to my setting the property "VPCZoneIdentifier".<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:22.5pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;background:white'><![if !supportLists]><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>    </span></span></span><![endif]><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>I changed the code in /usr/lib/python2.7/dist-packages/heat/engine/resources/autoscaling.py. I added a property "SubnetId" in resource OS::Heat::InstanceGroup, and it works. I don't know if it is a proper way to solve this problem.<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'>Can you provide some information about how to attach network for </span><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B'>OS::Heat::InstanceGroup</span><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'> ?<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'><o:p> </o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'>Thanks,<o:p></o:p></span></p><p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.5pt;margin-left:0cm;background:white'><span lang=EN-US style='font-size:10.5pt;font-family:"Arial","sans-serif";color:#4B4B4B;mso-fareast-language:ZH-HK'>Nora<o:p></o:p></span></p></div></body></html>