Identical resources of old and new hot file get replaced during stack-update

asked 2017-03-24 09:51:53 -0500

Corina_p gravatar image

updated 2017-03-27 06:07:05 -0500

This is part of my hot template. I define two resources: one network and one subnet. The subnet uses the get_resrouce function. My stack is deployed successfully. However, when I add - for example - a resource to my HOT, leaving the following part unchanged, and try to update the stack, the subnet is replaced, while the network remains unchanged. Can someone advise on how to overcome this issue? Thanks! edit: Forgot to mention the Openstack version: Mitaka

parameters:
  backplane-vlan:
    default: '2100'
    description: Segmentation Id for backplane internal network
    label: backplane-vlan
    type: string
resources:
  backplane:
    properties:
      name: backplane
      value_specs:
        provider:network_type: vlan
        provider:physical_network: default
        provider:segmentation_id:
          get_param: backplane-vlan
    type: OS::Neutron::Net
  backplane_subnet:
    properties:
      cidr: 192.168.0.0/24
      enable_dhcp: false
      ip_version: '4'
      name: backplane_subnet
      network: 
         get_resource: backplane
    type: OS::Neutron::Subnet
edit retag flag offensive close merge delete