<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We’re occasionally (as in occasionally repeatable but not consistent) seeing failures deleting stacks containing a neutron RouterInterface. I’m not sure if it’s a bug or the template is to blame. The error we get is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:.5in"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">Conflict: Router interface for subnet <id> on router <id> cannot be deleted, as it is required by one or more floating
 IPs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">The router id is provided to the heat template as an id; the subnet is a resource within the template.  An abridged example (minus server) is below
 (router interface towards the end). The logs (at INFO) for a SUCCESSFUL delete show the router interface being deleted first (straight after the server resource). I don’t have a lot of neutron expertise, but it seems like there’s an implicit dependency that’s
 not being expressed properly – or perhaps the template is flawed? The failure doesn’t happen all the time, which makes me wonder if there’s a race going on.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">Any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:50.374 INFO heat.engine.resource [-] deleting RouterInterface "router-interface" [685971ab-4c80-41a7-b64b-715a78b61267:subnet_id=4de89638-0e8b-4353-a847-0a3fceefe1f9]
 Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]                                                                                                               
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:50.491 INFO heat.engine.resource [-] deleting FloatingIPAssociation "floating-ip-assoc" [92f10394-b524-4f8b-9383-e1f111d70d68:23540c60-9b05-47ad-b93b-b3b24f86ab37]
 Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:51.124 INFO heat.engine.resource [-] deleting Port "port-on-subnet" [23540c60-9b05-47ad-b93b-b3b24f86ab37] Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]                                                        
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:51.163 INFO heat.engine.resource [-] deleting FloatingIP "floating-ip" [92f10394-b524-4f8b-9383-e1f111d70d68] Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]                                                     
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:52.278 INFO heat.engine.resource [-] deleting Subnet "subnet" [4de89638-0e8b-4353-a847-0a3fceefe1f9] Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]                                                              
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">2014-08-14 02:55:52.428 INFO heat.engine.resource [-] deleting SecurityGroup "secgroup" [e7ec7fbb-6134-41dc-a98e-c0d4104b270f] Stack "t1" [ba13d445-d43d-45c1-bc76-e2c5898ae5ad]                           
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">  floating-ip:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    properties: {floating_network_id: a60900f8-bdc9-40ef-b0ab-a41d20e0c660}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    type: OS::Neutron::FloatingIP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">  floating-ip-assoc:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    properties:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      floatingip_id: {get_resource: floating-ip}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      port_id: {get_resource: port-on-subnet}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    type: OS::Neutron::FloatingIPAssociation<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">  port-on-subnet:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    properties:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      fixed_ips:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      - subnet_id: {get_resource: subnet}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      network_id: {get_resource: net}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      security_groups:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">      - default<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    type: OS::Neutron::Port<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">  net:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    properties: {name: mynet}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;background:white">    type: OS::Neutron::Net<o:p></o:p></span></p>
<p class="MsoNormal">  router-interface:<o:p></o:p></p>
<p class="MsoNormal">    properties:<o:p></o:p></p>
<p class="MsoNormal">      router_id: 108eea7b-b846-40df-9f0d-c53c926b7608<o:p></o:p></p>
<p class="MsoNormal">      subnet_id: {get_resource: subnet}<o:p></o:p></p>
<p class="MsoNormal">    type: OS::Neutron::RouterInterface<o:p></o:p></p>
<p class="MsoNormal">  subnet:<o:p></o:p></p>
<p class="MsoNormal">    properties:<o:p></o:p></p>
<p class="MsoNormal">      cidr: 10.0.29.0/24<o:p></o:p></p>
<p class="MsoNormal">      dns_nameservers: [8.8.8.8]<o:p></o:p></p>
<p class="MsoNormal">      ip_version: 4<o:p></o:p></p>
<p class="MsoNormal">      network_id: {get_resource: net}<o:p></o:p></p>
<p class="MsoNormal">    type: OS::Neutron::Subnet<o:p></o:p></p>
</div>
</body>
</html>