No configuration options to enable/disable automatic failover of l3 and dhcp agents

Bug #1799956 reported by Niels van Adrichem
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Neutron API Charm
Fix Released
Wishlist
Niels van Adrichem

Bug Description

The neutron-api charm does not yet have the configuration options to enable/disable automatic failover of the l3 and dhcp agents in neutron.conf for respectively versions juno and kilo upwards as described in: https://docs.openstack.org/ocata/config-reference/networking/samples/neutron.conf.html.

Although dhcp agent failover is enabled by default, l3agent failover is not. According to https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html/networking_guide/sec-dvr it is recommended to enable l3agent failover when using L3-HA for SNAT, hence I argue it is appropriate to be able to configure this option.

I already made and submitted a patch for review to Gerrit at https://review.openstack.org/#/c/613328/. I'll amend it with the appropriate reference to this bug.

Ryan Beisner (1chb1n)
Changed in charm-neutron-api:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Subscribed ~field-medium.

allow_automatic_l3agent_failover in neutron.conf is needed for Centralized SNAT failover, otherwise the snat namespace does not migrate to a different l3 agent in dvr_snat mode on failure.

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Neutron defaults (going back to the original commits):

neutron/conf/agent/database/agentschedulers_db.py
    cfg.BoolOpt('network_auto_schedule', default=True,
                help=_('Allow auto scheduling networks to DHCP agent.')),
    cfg.BoolOpt('allow_automatic_dhcp_failover', default=True,
                help=_('Automatically remove networks from offline DHCP '
                       'agents.')),

neutron/conf/db/l3_agentschedulers_db.py
    cfg.BoolOpt('router_auto_schedule', default=True,
                help=_('Allow auto scheduling of routers to L3 agent.')),
    cfg.BoolOpt('allow_automatic_l3agent_failover', default=False,
                help=_('Automatically reschedule routers from offline L3 '
                       'agents to online L3 agents.')),

Revision history for this message
James Page (james-page) wrote :
Changed in charm-neutron-api:
status: Triaged → In Progress
assignee: nobody → Niels van Adrichem (nvanadrichem)
milestone: none → 19.04
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-api (master)

Reviewed: https://review.openstack.org/613328
Committed: https://git.openstack.org/cgit/openstack/charm-neutron-api/commit/?id=5f255bc9f9c8ca1f7504b894cb073d35d1f08025
Submitter: Zuul
Branch: master

commit 5f255bc9f9c8ca1f7504b894cb073d35d1f08025
Author: Niels van Adrichem <email address hidden>
Date: Thu Oct 25 13:15:28 2018 +0000

    Enable support for l3agent- and dhcp-failover

    Implements the missing configuration options and context to configure
    allow-automatic-l3agent-failover and allow-automatic-dhcp-failover
    options in neutron.conf. The options are respectively added to
    versions juno and kilo upwards as those are the Neutron versions
    since they were first supported.

    Change-Id: I7e465b7fef13f61f7b37135a86ac2f590c0c9be6
    Closes-Bug: #1799956

Changed in charm-neutron-api:
status: In Progress → Fix Committed
David Ames (thedac)
Changed in charm-neutron-api:
status: Fix Committed → Fix Released
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.