subnet host routes are not added to the lbaasv2 namespace

Bug #1635355 reported by Flávio Ramalho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Flávio Ramalho

Bug Description

Using mitaka@3cf4a7cffd5f76b9f8a3eed649d04075714dcd9c.

LBaaSv2 with HAProxy driver.

Creating a network with a subnet with host routes and using this network in the load balancer, the host routes are not being added to the namespace created by the lbaas.

$ neutron subnet-show 6937f8fa-858d-4bc9-a3a5-18d2c957452a
+-------------------+---------------------------------------------------------+
| Field | Value |
+-------------------+---------------------------------------------------------+
| allocation_pools | {"start": "10.0.0.2", "end": "10.0.0.254"} |
| cidr | 10.0.0.0/16 |
| created_at | 2016-09-19T16:04:54 |
| description | |
| dns_nameservers | 10.20.6.1 |
| enable_dhcp | True |
| gateway_ip | 10.0.0.1 |
| host_routes | {"destination": "10.0.0.0/8", "nexthop": "10.0.1.1"} |
| id | 6937f8fa-858d-4bc9-a3a5-18d2c957452a |
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | provider |
| network_id | 64ee4355-4d7f-4170-80b4-5e2348af6a61 |
| subnetpool_id | |
| tenant_id | 3f7a886d30404c22aee51f93b0d50e46 |
| updated_at | 2016-09-19T16:10:15 |
+-------------------+---------------------------------------------------------+

# ip netns exec qlbaas-df0db86b-b3fd-4538-bfeb-f79f3a812059 route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 qg-4cbe0b85-75
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 ns-e285ebec-71

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

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

Changed in neutron:
assignee: nobody → Flávio Ramalho (flaviosr)
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (master)

Reviewed: https://review.openstack.org/389282
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=4a708bfce90e50018a74f3c69a5115458d4c7dcb
Submitter: Jenkins
Branch: master

commit 4a708bfce90e50018a74f3c69a5115458d4c7dcb
Author: Flávio Ramalho <email address hidden>
Date: Thu Oct 20 14:15:20 2016 -0300

    HAProxy - Add host routes to the lbaas namespace

    This change adds a loop through the subnet host routes and
    if any of this routes have the destination different from
    0.0.0.0/0, adds it to the lbaas namespace.

    Change-Id: I08cd006faed2291d731768d71149d07592bce301
    Closes-Bug: #1635355

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

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/396808

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (stable/mitaka)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 10.0.0.0b1

This issue was fixed in the openstack/neutron-lbaas 10.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/403632

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lbaas (stable/liberty)

Change abandoned by Flávio Ramalho (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/396808
Reason: liberty is nearly EOL

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (stable/newton)

Reviewed: https://review.openstack.org/403632
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=9ee306fb371c9cbf3f784f655e40f77f039c5714
Submitter: Jenkins
Branch: stable/newton

commit 9ee306fb371c9cbf3f784f655e40f77f039c5714
Author: Flávio Ramalho <email address hidden>
Date: Thu Oct 20 14:15:20 2016 -0300

    HAProxy - Add host routes to the lbaas namespace

    This change adds a loop through the subnet host routes and
    if any of this routes have the destination different from
    0.0.0.0/0, adds it to the lbaas namespace.

    Change-Id: I08cd006faed2291d731768d71149d07592bce301
    Closes-Bug: #1635355
    (cherry picked from commit 4a708bfce90e50018a74f3c69a5115458d4c7dcb)

tags: added: in-stable-newton
tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (stable/mitaka)

Reviewed: https://review.openstack.org/396809
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=efacaecfba9d18960b54cd8fefba36e0e4f2126f
Submitter: Jenkins
Branch: stable/mitaka

commit efacaecfba9d18960b54cd8fefba36e0e4f2126f
Author: Flávio Ramalho <email address hidden>
Date: Thu Oct 20 14:15:20 2016 -0300

    HAProxy - Add host routes to the lbaas namespace

    This change adds a loop through the subnet host routes and
    if any of this routes have the destination different from
    0.0.0.0/0, adds it to the lbaas namespace.

    Change-Id: I08cd006faed2291d731768d71149d07592bce301
    Closes-Bug: #1635355
    (cherry picked from commit 4a708bfce90e50018a74f3c69a5115458d4c7dcb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 9.2.0

This issue was fixed in the openstack/neutron-lbaas 9.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 8.4.0

This issue was fixed in the openstack/neutron-lbaas 8.4.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.