[openstack-dev] heat stack-create with two vm instances always got one failed
Yuling_C at DELL.com
Yuling_C at DELL.com
Wed Jul 16 06:17:00 UTC 2014
Dell Customer Communication
Hi,
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?
Here I attach the heat template:
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Sample Heat template that spins up multiple instances and a private network (JSON)",
"Resources" : {
"test_net" : {
"Type" : "OS::Neutron::Net",
"Properties" : {
"name" : "test_net"
}
},
"test_subnet" : {
"Type" : "OS::Neutron::Subnet",
"Properties" : {
"name" : "test_subnet",
"cidr" : "120.10.9.0/24",
"enable_dhcp" : "True",
"gateway_ip" : "120.10.9.1",
"network_id" : { "Ref" : "test_net" }
}
},
"test_net_port" : {
"Type" : "OS::Neutron::Port",
"Properties" : {
"admin_state_up" : "True",
"network_id" : { "Ref" : "test_net" }
}
},
"instance1" : {
"Type" : "OS::Nova::Server",
"Properties" : {
"name" : "instance1",
"image" : "8e2b4c71-448c-4313-8b41-b238af31f419",
"flavor": "tvm-tt_lite",
"networks" : [
{"port" : { "Ref" : "test_net_port" }}
]
}
},
"instance2" : {
"Type" : "OS::Nova::Server",
"Properties" : {
"name" : "instance2",
"image" : "8e2b4c71-448c-4313-8b41-b238af31f419",
"flavor": "tvm-tt_lite",
"networks" : [
{"port" : { "Ref" : "test_net_port" }}
]
}
}
}
}
The error that I got from heat-engine.log is as follows:
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
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
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
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
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
2014-07-16 01:49:51.963 25101 ERROR heat.engine.resource [-] CREATE : Server "instance1"
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource Traceback (most recent call last):
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
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource while not check(handle_data):
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
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource return self._check_active(server)
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
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource raise exc
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource Error: Creation of server instance1 failed.
2014-07-16 01:49:51.963 25101 TRACE heat.engine.resource
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
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
2014-07-16 01:49:52.005 25101 WARNING heat.engine.service [-] Stack create failed, status FAILED
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
Any idea?
Thanks,
YuLing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140716/a21bbea3/attachment.html>
More information about the OpenStack-dev
mailing list