Ask Your Question
0

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

PS_rg:
    type: OS::Heat::ResourceGroup
    properties:
      count: 2
      resource_def:
        type: "http://xxx.xxx.xxx.xxx/heat/aim/v1/ps_v1.yaml"
        properties:
            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.

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

Comments

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
0

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

asalkeld gravatar image

Hi

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

There are some new examples here: https://github.com/openstack/heat-tem...

-Angus

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,536 times

Last updated: Nov 23 '14