Ask Your Question
0

Heat Stack creation Failed,StackValidationFailed with Unable to find port with name

asked 2016-09-16 10:08:18 -0500

stackboy gravatar image

Hi,

I am getting following error during the Stack creation and launching. Could you please help me. Thanks.

>> heat stack-show XX

stack_status_reason | Resource CREATE failed: StackValidationFailed:

resources.pl_group.resources[3].resources.pl_vm: | Property error: pl_vm.Properties.networks[1].port:
| Error validating value u'd2bc0630-2dfd-49c2-8994-02418486ad4c': Unable to find port with name'd2bc0630-2dfd-49c2-8994-02418486ad4c'

>> neutron port-list | grep d2bc0630-2dfd-49c2-8994-02418486ad4c

>> neutron net-list | grep d2bc0630-2dfd-49c2-8994-02418486ad4c

>> compute log:

2016-09-16 09:52:35.215 8210 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute0-15', 'compute0-15') 2016-09-16 09:52:35.257 8210 ERROR nova.compute.manager [-] Instance failed network setup after 1 attempt(s) 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager Traceback (most recent call last): 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1643, in _allocate_network_async 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager dhcp_options=dhcp_options) 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 294, in allocate_for_instance 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager raise exception.PortInUse(port_id=request.port_id) 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager PortInUse: Port 1cc143cc-d943-49e3-b2bf-81b8910283be is still in use. 2016-09-16 09:52:35.257 8210 TRACE nova.compute.manager 2016-09-16 09:52:35.407 8210 INFO nova.virt.libvirt.driver [-] [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] Creating image 2016-09-16 09:52:40.357 8210 ERROR nova.compute.manager [-] [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] Instance failed to spawn 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] Traceback (most recent call last): 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2243, in _build_resources 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] yield resources 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2113, in _build_and_run_instance 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] block_device_info=block_device_info) 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2615, in spawn 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] admin_pass=admin_password) 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3096, in _create_image 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] instance, network_info, admin_pass, files, suffix) 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2893, in _inject_data 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] network_info, libvirt_virt_type=CONF.libvirt.virt_type) 2016-09-16 09:52:40.357 8210 TRACE nova.compute.manager [instance: 3f8e8168-5a6b-4f4a-985c-216da890f842] File "/usr/lib/python2.7/site-packages/nova/virt/netutils.py", line 87, in get_injected_network_template 2016-09-16 09 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-09-16 11:47:26 -0500

CloudEnthusiast gravatar image

Hi, To create a stack heat service and heat cfn service needs to be installed up & running. Please also ensure your HOT template is proper.

edit flag offensive delete link more

Comments

Hi, heat cfn service is installed and HOT template is working fine in other servers.

stackboy gravatar imagestackboy ( 2016-09-19 05:03:16 -0500 )edit

Ok, just test your openstack cloud by simply launching test instance in order to ensure neutron is fully functional. Then look for logs if any ERROR occurs. After that run your stack- hot template.

CloudEnthusiast gravatar imageCloudEnthusiast ( 2016-09-19 11:13:39 -0500 )edit
0

answered 2016-09-17 00:41:56 -0500

Tamil gravatar image

Hi,

It seems like error in stack template which you have used to create the stack XX.You are getting

unable to find port error

Kindly check Connect an instance to a network heading in heat docs, http://docs.openstack.org/developer/heat/template_guide/basic_resources.html

if you couldn't resolve then, post your heat template. I will help you

edit flag offensive delete link more

Comments

Tamil, Thanks for you reply. Heat template is looks fine, because it is working on other server and able to launch the stack also.

stackboy gravatar imagestackboy ( 2016-09-19 05:02:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-16 10:08:18 -0500

Seen: 937 times

Last updated: Sep 17 '16