Can't access subnet attributes from a port resource
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Ishant Tyagi |
Bug Description
I am not 100% sure of this, but I have a template (below) which creates a port and attempts to go port.subnet.
Poking with neutronclient:
| 3b75b4c8-
neutron subnet-show 92aa5214-
+------
| Field | Value |
+------
| allocation_pools | {"start": "198.51.100.2", "end": "198.51.100.10"} |
| cidr | 198.51.100.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 198.51.100.1 |
| host_routes | {"destination": "169.254.
| id | 92aa5214-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | 2c96faba-
| tenant_id | 5693efce0656455
+------
Resources:
# Override the main template which can also supply a static route.
99_undercloud
Type: OS::Heat:
Properties:
config: {Ref: undercloudVLANP
server: {Ref: undercloud}
signal_
undercloudVLA
Type: OS::Heat:
Properties:
config:
neutron:
ovs:
- ip_address
- Fn::Select:
- 0
- Fn::GetAtt:
- undercloudVLANPort
- fixed_ips
# Tell the instance to apply the default route.
- gateway_ip
- Fn::Select:
- subnet
- Fn::Select:
- 0
- Fn::GetAtt:
undercloudVLA
Type: OS::Neutron::Port
Properties:
name: undercloud_vlan
network: public
description: | updated |
summary: |
- existing subnet not looked up on port? + can't access subnet attributes from a port resources |
Changed in heat: | |
importance: | Undecided → Medium |
summary: |
- can't access subnet attributes from a port resources + Can't access subnet attributes from a port resource |
Changed in heat: | |
assignee: | nobody → Ishant Tyagi (ishant-tyagi) |
Changed in heat: | |
milestone: | none → juno-3 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | juno-3 → 2014.2 |
In the general case it would be nice if neutron resources had attributes which let you navigate the neutron associations. Adding a subnet attribute to the port resource would be a good enhancement for a new contributor.