SubnetRouteTableAssocation cannot reference an existing SubnetId

Bug #1165056 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Steve Baker

Bug Description

Currently the following template will fail because the SubnetRouteTableAssocation resource calls resource_by_refid() to look up the subnet.
{
  ...
  "Parameters" : {
    "SubnetId" : {
      "Type" : "String",
      "Description" : "Id of an existing subnet"
    }
  }
  ...
  "Resources": {
    "myRouteTableAssoc": {
      "Type" : "AWS::EC2::SubnetRouteTableAssocation",
      "Properties" : {
        "SubnetId" : { "Ref" : "SubnetId" },
        "RouteTableId" : { "Ref" : "myRouter" }
      }
    },
   ...
}

Changed in heat:
assignee: nobody → Steve Baker (steve-stevebaker)
Steven Hardy (shardy)
Changed in heat:
status: New → Triaged
importance: Undecided → Medium
milestone: none → havana-1
Changed in heat:
status: Triaged → In Progress
Changed in heat:
milestone: havana-1 → havana-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/35230

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/35230
Committed: http://github.com/openstack/heat/commit/4c1adb4c83f2f393dfb6a0460a8ecc3f14cd9b50
Submitter: Jenkins
Branch: master

commit 4c1adb4c83f2f393dfb6a0460a8ecc3f14cd9b50
Author: Steve Baker <email address hidden>
Date: Tue May 21 10:01:16 2013 +1200

    Rework associations from vpc to quantum resources.

    Metadata cannot be used to store the relationships between VPC
    resources and the underlying quantum resources, since this prevents
    VPC or Subnet refs from being passed in as parameters.

    This rework results in no state being stored in metadata. Route table
    relationships are inferred from the template. An assumption is made that
    the quantum router associatiated with the VPC will have the same name
    as the quantum net. The easiest way of ensuring that is to creat the VPC
    in a different Heat stack.

    Fixes bug: #1165050
    Fixes bug: #1165056
    Fixes bug: #1166779
    Fixes bug: #1166787

    Change-Id: I6fb087bfc63ed13703089a16ed57858e6911b7d8

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.