Comment 4 for bug 1442121

Steve Baker (steve-stevebaker) wrote :

Haiuwei, if you are creating the subnet resource in your template then your port should reference the subnet resource instead of (or as well as) the network resource.

This is because ports are actually associated with subnets, so heat can properly model the neutron dependencies.

Basically you should use subnet references (or depends_on) wherever you need to to ensure the subnet is deleted after all the ports created on it.