Ask Your Question

Heat Provider template, how to reference networks defined in parent stack

asked 2014-07-15 10:46:35 -0600

updated 2014-07-17 05:31:38 -0600

I am attempting to use a OS::Heat::ResourceGroup in a stack but it fails when I try to allocate network ports.

I want to be able to assign the servers created by the ResourceGroup to a network/subnet referenced in the parent stack.

  1. Is this possible?
  2. I cannot find examples, are there any?

Thanks Andy

Extra details:

I can get simple ResorceGroups to execute correctly.

It fails with the following stack_status_reason

"stack_status_reason": "Resource CREATE failed: Error: Resource CREATE failed: Error: Resource CREATE failed: NetworkNotFoundClient: Network 4235e18a-79f3-4c05-8e6f-32adebfa0ae7 could not be found\n"

The NetworkID "4235e18a-79f3-4c05-8e6f-32adebfa0ae7" is created in the parent stack and is created.

I am trying this with both Horizon and heatclient. This is all in IceHouse 2014.1

Snippet of the ResourceGroup

    type: OS::Heat::ResourceGroup
      count: 2
        type: ""
            private_net: { get_resource: private_subnet }
            network_id: { get_resource: private_net }
            private_subnet: { get_resource: private_subnet }
            Key_name: { get_param: Key_name }
            Sources_address: { get_param: Sources_address }
            ADS_address: { get_param: ADS_address }
            OSS_address: { get_param: OSS_address }
            Private_net_name: { get_param: Private_net_name }
            public_id: { get_param: public_id }
            Instance_type_PS: { get_param: Instance_type_PS }

The ps_v1.yaml has a reference for a Neutron port which is assigned to a server.

    type: OS::Neutron::Port
      network_id: { get_param: private_net }
        - subnet_id: { get_param: private_subnet }
edit retag flag offensive close merge delete


You're doing everything correctly. It's possible you have an issue with your version of python-neutronclient being either too new or too old - the only thing that makes sense to me is that Heat may be passing an ID where it expects a name.

zaneb gravatar imagezaneb ( 2014-12-08 11:06:03 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-23 21:32:03 -0600

asalkeld gravatar image


It's been a while since you asked - :( sorry. Have you come right?

There are some new examples here:


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-15 10:46:35 -0600

Seen: 1,682 times

Last updated: Nov 23 '14