1. create a stack with neutron subnet:
*************************************
heat_template_version: 2014-10-16
resources:
subnet:
type: OS::Neutron::Subnet
properties:
network_id: 3447dd80-14ef-4059-8ea6-35f4fd60ba26
cidr: 102.0.0.0/24
deletion_policy: Retain
*************************************
2. update the subnet with another cidr: 112.0.0.0/24, stack update successful
3. to update the subnet back to old cidr: 102.0.0.0/24, stack update failed, due the cidr overlaps with other subnet in network.
In step2, we replace the subnet with the new cidr, but the old subnet retain due the deletion_policy.
So we need to consider this user case to make sure the update success.
Fix proposed to branch: master /review. openstack. org/290311
Review: https:/