FloatingIPAssociation problem

Bug #1608973 reported by Dmitriy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Dmitriy

Bug Description

a heat template which creates a network, server and allocates + associates a floating ip to server interface don't work in Mitaka 9.0.
Same template tested in Liberty and Kilo without errors.

mitaka_ipassociation.yaml
heat_template_version: 2015-04-30

parameters:
  Public:
    type: string
    default: 'admin_floating_net'
    description: Public net
  Image:
    type: string
    default: 'TestVM'

resources:
  My_net:
    type: OS::Neutron::Net
    properties:
      name: My_net

  My_subnet:
    type: OS::Neutron::Subnet
    properties:
      name: My_subnet
      cidr: 192.168.1.0/24
      network: {get_resource: My_net}

  My_router:
    type: OS::Neutron::Router
    properties:
      name: My_router
      distributed: false
      external_gateway_info:
        network: {get_param: Public}

  My_router_interface:
    type: OS::Neutron::RouterInterface
    properties:
      router: {get_resource: My_router}
      subnet: {get_resource: My_subnet}

  My_port:
    type: OS::Neutron::Port
    properties:
      name: My_port
      network: { get_resource: My_net }

  Server:
    type: OS::Nova::Server
    properties:
      name: MyServer
      image: {get_param: Image}
      flavor: m1.medium
      networks:
        - port: { get_resource: My_port }
      availability_zone: nova

  My-IP:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network: { get_param: Public }

  My-IP-Association:
    type: OS::Neutron::FloatingIPAssociation
    properties:
      floatingip_id: { get_resource: My-IP }
      port_id: { get_resource: My_port }

steps to reproduce:
Note. The command must be run as an Admin because router operations seems to require it.
(OS_PROJECT_NAME=admin, OS_USERNAME=admin etc)
heat stack-create mystack -f mitaka_ipassociation.yaml --poll

ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect.
The error "ERROR heat.common.wsgi " <clip> "Exception handling resource: 'NoneType' object is not iterable" might have something to do with this problem.

Seems that there is a parsing problem.

If the My-IP-Association block is commented out then stack will be created.
The association can be done successfully later e.g. from Horizon

Dmitriy (duvarenkov)
Changed in heat:
assignee: nobody → Dmitriy (duvarenkov)
Thomas Herve (therve)
Changed in heat:
status: New → Confirmed
milestone: none → newton-3
importance: Undecided → High
Changed in heat:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/350029
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=432e24027053b485335f1262aa6d150ee4176faa
Submitter: Jenkins
Branch: master

commit 432e24027053b485335f1262aa6d150ee4176faa
Author: Dmitriy Uvarenkov <email address hidden>
Date: Tue Aug 2 16:53:40 2016 +0300

    Fix iteration in floatingip's add dependencies method

    port.Port.FIXED_IPS can be None and we can't iterate by None.

    Closes bug: #1608973

    Change-Id: I273c6383ab77adfbc5c51b94a2f3b2fa7cdbafc0

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/357196

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

Reviewed: https://review.openstack.org/357196
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=13aaa7e7aeeb51ebdb1b4284b72aac2ddf2edc70
Submitter: Jenkins
Branch: stable/mitaka

commit 13aaa7e7aeeb51ebdb1b4284b72aac2ddf2edc70
Author: Dmitriy Uvarenkov <email address hidden>
Date: Tue Aug 2 16:53:40 2016 +0300

    Fix iteration in floatingip's add dependencies method

    port.Port.FIXED_IPS can be None and we can't iterate by None.

    Closes bug: #1608973

    Change-Id: I273c6383ab77adfbc5c51b94a2f3b2fa7cdbafc0
    (cherry picked from commit 432e24027053b485335f1262aa6d150ee4176faa)

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 7.0.0.0b3

This issue was fixed in the openstack/heat 7.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/heat 6.1.0

This issue was fixed in the openstack/heat 6.1.0 release.

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.