Previously when creating a floating_ip without setting the fixed_ip, the stack can not be deleted, the bug report is here:
https://bugs.launchpad.net/heat/+bug/1428434
This bug is fixed, but not perfectly. Currently when creating a floating_ip without setting the fixed_ip, will get this error:
2015-04-09 20:29:50.895 DEBUG neutronclient.client [req-001dd880-d78b-4ecc-98ec-4308b1c8ccac None 5e35ad29e19846469182ea649554a80f-84bc7968-b554-4d5c-ba60-5d
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/common/context.py", line 304, in wrapped
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher return func(self, ctx, *args, **kwargs)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/service.py", line 1104, in describe_stack_resource
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher with_attr=with_attr)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/api.py", line 176, in format_stack_resource
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher rpc_api.RES_REQUIRED_BY: resource.required_by(),
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/resource.py", line 436, in required_by
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher [r.name for r in self.stack.dependencies.required_by(self)])
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/stack.py", line 241, in dependencies
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher self.resources.itervalues())
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/stack.py", line 328, in _get_dependencies
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher res.add_dependencies(deps)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/resources/openstack/neutron/floatingip.py", line 170, in add_dependencies
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher if port_on_subnet(d, interface_subnet):
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/resources/openstack/neutron/floatingip.py", line 150, in port_on_subnet
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher self.neutron().show_network(p_net)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher ret = self.function(instance, *args, **kwargs)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 531, in show_network
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher return self.get(self.network_path % (network), params=_params)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 292, in get
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher headers=headers, params=params)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 268, in retry_request
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher headers=headers, params=params)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 209, in do_request
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher self._handle_fault_response(status_code, replybody)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher exception_handler_v20(status_code, des_error_body)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 67, in exception_handler_v20
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher status_code=status_code)
2015-04-09 20:29:50.896 TRACE oslo_messaging.rpc.dispatcher NetworkNotFoundClient: Network ab6a1101-5bd0-4fb2-9de3-480d0f46af21 could not be found
"ab6a1101-5bd0-4fb2-9de3-480d0f46af21" network is created but can not be seen by user.
Here is part of the template:
server:
type: OS::Nova::Server
properties:
image: {get_param: image}
flavor: {get_param: flavor}
key_name: {get_param: key_name}
name: puppet_inst
user_data_format: SOFTWARE_CONFIG
networks:
- port: { get_resource: multisoftpuppet_port }
multisoftpuppet_port:
type: OS::Neutron::Port
properties:
network: { get_resource: multisoft_network }
security_groups: [ get_resource: the_sg ]
multisoft_floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network: { get_param: public_network }
port_id: { get_resource: multisoftpuppet_port }
Fix proposed to branch: master /review. openstack. org/173237
Review: https:/