"OS::Neutron::Subnet" ignore gateway_ip when subnetpool used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Unassigned | ||
neutron |
Won't Fix
|
High
|
Unassigned |
Bug Description
heat version - 8.0.4
Step to reproduce:
1. template:
heat_template_
description: test template
resources:
test_subnetpool:
type: OS::Neutron:
properties:
default_
max_
min_
prefixes:
- "192.168.0.0/16"
test_net1:
type: OS::Neutron::Net
test_subnet1:
type: OS::Neutron::Subnet
properties:
network: { get_resource: test_net1 }
ip_version: 4
subnetpool: { get_resource: test_subnetpool }
gateway_ip: null
2. create stack
3. created subnet have gateway IP: 192.168.0.1 but expected disabled gateway
Because of gateway_ip property ignored when subnetpool present there is no way to create subnet without gateway from subnetpool.
Changed in neutron: | |
assignee: | nobody → Yang Li (yang-li) |
status: | Confirmed → In Progress |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
I think heat is sending 'gateway_ip': None in the request, but neutron is ignoring it.
2017-09-13 05:22:44.089 DEBUG neutron.api.v2.base [req-c7b87873- d640-4ea6- ae80-34843c321d 0a demo demo] Request body: {'subnet': {'subnetpool_id': 'e59a988e- 0076-436b- b147-e78bb9e86e 77', 'dns_nameserve test_subnet1- zrfaogklhwls' , 'network_id': 'cd2cd3be- 5d0a-448e- 8e8c-73371f2cbc e3', 'enable_dhcp': True, 'gateway_ip': None, 'ip_version': 4}} from (pid=13385) prepare_reque neutron/ neutron/ api/v2/ base.py: 695
rs': [], 'name': 'test_stack-
st_body /opt/stack/