Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

heat resource property not assigned for nested template

I am testing nested templates by following some of blogs. The following is the snippet from the heat template. When I execute the template, I am getting the error "ERROR: Failed to validate: : resources.network: : Property network not assigned". the network template, private_network.yaml, is working fine if I execute it alone.

What could be the issue with this template

resources:
  network:
    type: private_network.yaml
    properties:
      public_network: { get_param: public_network }
      private_net_name: { get_param: private_net_name }
      private_net_cidr: { get_param: private_net_cidr }
      private_net_gateway: { get_param: private_net_gateway }
      private_net_pool_start: { get_param: private_net_pool_start }
      private_net_pool_end: { get_param: private_net_pool_end }
      dns: { get_param: dns }

  server:
    type: OS::Heat::ResourceGroup
    properties:
      count: { get_param: server_count }
      resource_def:
          type: OS::Nova::Server
          properties:
            name: node
            image: { get_param: image }
            flavor: { get_param: flavor }
            key_name: { get_param: key_name }
            networks:
              - network: { get_attr: [network, name] }

error  : heatclient.exc.HTTPBadRequest: ERROR: Failed to validate: : resources.network: : Property network not assigned