<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:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
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 WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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><b><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#AAAAAA'>Dell Customer Communication</span></b><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal> I'm using heat to create a stack with two instances. I always got one of them successful, but the other would fail. If I split the template into two and each of them contains one instance then it worked. However, I thought Heat template would allow multiple instances being created?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> Here I attach the heat template: <o:p></o:p></p><p class=MsoNormal>{<o:p></o:p></p><p class=MsoNormal> "AWSTemplateFormatVersion" : "2010-09-09",<o:p></o:p></p><p class=MsoNormal> "Description" : "Sample Heat template that spins up multiple instances and a private network (JSON)",<o:p></o:p></p><p class=MsoNormal> "Resources" : {<o:p></o:p></p><p class=MsoNormal><span lang=NL> <o:p></o:p></span></p><p class=MsoNormal><span lang=NL> "test_net" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=NL> "Type" : "OS::Neutron::Net",<o:p></o:p></span></p><p class=MsoNormal><span lang=NL> </span>"Properties" : {<o:p></o:p></p><p class=MsoNormal> "name" : "test_net"<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> },<o:p></o:p></p><p class=MsoNormal> "test_subnet" : {<o:p></o:p></p><p class=MsoNormal> <span lang=SV>"Type" : "OS::Neutron::Subnet",<o:p></o:p></span></p><p class=MsoNormal><span lang=SV> "Properties" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=SV> </span>"name" : "test_subnet",<o:p></o:p></p><p class=MsoNormal> "cidr" : "120.10.9.0/24",<o:p></o:p></p><p class=MsoNormal> "enable_dhcp" : "True",<o:p></o:p></p><p class=MsoNormal> "gateway_ip" : "120.10.9.1",<o:p></o:p></p><p class=MsoNormal> "network_id" : { "Ref" : "test_net" }<o:p></o:p></p><p class=MsoNormal> <span lang=FR>}<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> },<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> <o:p></o:p></span></p><p class=MsoNormal><span lang=FR> "test_net_port" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> "Type" : "OS::Neutron::Port",<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span>"Properties" : {<o:p></o:p></p><p class=MsoNormal> "admin_state_up" : "True",<o:p></o:p></p><p class=MsoNormal> "network_id" : { "Ref" : "test_net" }<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> },<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> "instance1" : {<o:p></o:p></p><p class=MsoNormal> <span lang=PT-BR>"Type" : "OS::Nova::Server",<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "Properties" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> </span>"name" : "instance1",<o:p></o:p></p><p class=MsoNormal> "image" : "8e2b4c71-448c-4313-8b41-b238af31f419",<o:p></o:p></p><p class=MsoNormal> "flavor": "tvm-tt_lite",<o:p></o:p></p><p class=MsoNormal> "networks" : [<o:p></o:p></p><p class=MsoNormal> <span lang=FR>{"port" : { "Ref" : "test_net_port" }}<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span><span lang=PT-BR>]<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> }<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> },<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "instance2" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "Type" : "OS::Nova::Server",<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "Properties" : {<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "name" : "instance2",<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "image" : "8e2b4c71-448c-4313-8b41-b238af31f419",<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> "flavor": "tvm-tt_lite",<o:p></o:p></span></p><p class=MsoNormal><span lang=PT-BR> </span>"networks" : [<o:p></o:p></p><p class=MsoNormal> {"port" : { "Ref" : "test_net_port" }}<o:p></o:p></p><p class=MsoNormal> ]<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>The error that I got from heat-engine.log is as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>2014-07-16 01:49:50.514 25101 DEBUG heat.engine.scheduler [-] Task resource_action complete step /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:170<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:50.515 25101 DEBUG heat.engine.scheduler [-] Task stack_task from Stack "teststack" sleeping _sleep /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:108<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.516 25101 DEBUG heat.engine.scheduler [-] Task stack_task from Stack "teststack" running step /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:164<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.516 25101 DEBUG heat.engine.scheduler [-] Task resource_action running step /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:164<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.960 25101 DEBUG urllib3.connectionpool [-] "GET /v2/b64803d759e04b999e616b786b407661/servers/7cb9459c-29b3-4a23-a52c-17d85fce0559 HTTP/1.1" 200 1854 _make_request /usr/lib/python2.6/site-packages/urllib3/connectionpool.py:295<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 ERROR heat.engine.resource [-] CREATE : Server "instance1"<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource File "/usr/lib/python2.6/site-packages/heat/engine/resource.py", line 371, in _do_action<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource while not check(handle_data):<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource File "/usr/lib/python2.6/site-packages/heat/engine/resources/server.py", line 239, in check_create_complete<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource return self._check_active(server)<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource File "/usr/lib/python2.6/site-packages/heat/engine/resources/server.py", line 255, in _check_active<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource raise exc<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource Error: Creation of server instance1 failed.<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:51.996 25101 DEBUG heat.engine.scheduler [-] Task resource_action cancelled cancel /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:187<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:52.004 25101 DEBUG heat.engine.scheduler [-] Task stack_task from Stack "teststack" complete step /usr/lib/python2.6/site-packages/heat/engine/scheduler.py:170<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:49:52.005 25101 WARNING heat.engine.service [-] Stack create failed, status FAILED<o:p></o:p></p><p class=MsoNormal>2014-07-16 01:50:29.218 25101 DEBUG heat.openstack.common.rpc.amqp [-] received {u'_context_roles': [u'Member', u'admin'], u'_msg_id': u'9aedf86fda304cfc857dc897d8393427', u'_context_password': '<SANITIZED>', u'_context_auth_url': u'http://172.17.252.60:5000/v2.0', u'_unique_id': u'f02188b068de4a4aba0ec203ec3ad54a', u'_reply_q': u'reply_f841b6a2101d4af9a9af59889630ee77', u'_context_aws_creds': None, u'args': {}, u'_context_tenant': u'TVM', u'_context_trustor_user_id': None, u'_context_trust_id': None, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': True, u'version': u'1.0', u'_context_tenant_id': u'b64803d759e04b999e616b786b407661', u'namespace': None, u'method': u'list_stacks', u'_context_username': None} _safe_log /usr/lib/python2.6/site-packages/heat/openstack/common/rpc/common.py:277<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any idea?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>YuLing<o:p></o:p></p></div></body></html>