Can't disassociate gateway ip for subnet

Bug #1510800 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
huangtianhua

Bug Description

1. create a stack with neutron subnet
***********************
heat_template_version: 2014-10-16
resources:
  subnet:
    type: OS::Neutron::Subnet
    properties:
      network: 3447dd80-14ef-4059-8ea6-35f4fd60ba26
      cidr: 20.0.1.0/29
      gateway_ip: 20.0.1.5

2. want to disassociate the gateway ip(20.0.1.5), so to update the stack with template:
****************************
heat_template_version: 2014-10-16
resources:
  subnet:
    type: OS::Neutron::Subnet
    properties:
      network: 3447dd80-14ef-4059-8ea6-35f4fd60ba26
      cidr: 20.0.1.0/29

3. the stack went to UPDATE_COMPLETE, but we can find that the subnet also has the gateway ip(20.0.1.5)

4. Also, we can't set 'gateway_ip: null' in template, an error raised: BadRequest: Invalid input for gateway_ip. Reason: '' is not a valid IP address.

description: updated
Changed in heat:
assignee: nobody → huangtianhua (huangtianhua)
description: updated
Changed in heat:
importance: Undecided → Medium
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/250136

Changed in heat:
status: New → In Progress
Changed in heat:
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/250136
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=794a39cf670920ef58137f471e5f516a2227ac67
Submitter: Jenkins
Branch: master

commit 794a39cf670920ef58137f471e5f516a2227ac67
Author: huangtianhua <email address hidden>
Date: Sat Oct 31 11:26:55 2015 +0800

    Improve gateway_ip updation for subnet

    Allow update 'gateway_ip' to null or empty for
    neutron subnet, and keep the same behavior as
    creation.
    Also, this change adds some related functional
    tests for neutron subnet resource.

    Closes-Bug: #1510800
    Change-Id: Ib5511402e1d118457356a8add0042be2b157eb24

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b2

This issue was fixed in the openstack/heat 6.0.0.0b2 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

This issue was fixed in the openstack/heat 6.0.0.0b2 development milestone.

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.