← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1682345] Re: neutron metering agent does not work in DVR mode

 

Reviewed:  https://review.openstack.org/475077
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=72338d9fad620ea5615a283d1e1d3cb7b56a5d9d
Submitter: Jenkins
Branch:    master

commit 72338d9fad620ea5615a283d1e1d3cb7b56a5d9d
Author: Swaminathan Vasudevan <SVasudevan@xxxxxxxx>
Date:   Fri Jun 16 14:01:38 2017 -0700

    DVR: Fix neutron metering agent to notify hosts hosting DVR
    
    DVR router updates are notified based on where they are hosted.
    But in the case of metering rpc notifier the notification to a
    specific host was not implemented and also when a call is being
    made to routers_updated_on_host, it is being ignored since it only
    implements the routers_updated function call.
    
    Change-Id: I39b0d43b14294a8eecf6cba230d948c2c45a0b7a
    Closes-Bug: #1682345


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1682345

Title:
  neutron metering agent does not work in DVR mode

Status in neutron:
  Fix Released

Bug description:
  * High level description: 
  When a user adds a metering label/metering label rule, metering agents on compute nodes will be notified to setup iptables. However, in Mitaka Neutron DVR mode, metering agents on compute nodes will not be notified and the iptables on compude nodes will not be setup.

  After tracing the code, I believe the root cause is the side effect of "Improve DVR router sheduling mechanism for better performance/scalability"
  https://blueprints.launchpad.net/neutron/+spec/improve-dvr-l3-agent-binding
  This feature skips the binding process of L3 agents and routers. However, metering agents will only be notified based on the bindings.

  * Pre-conditions: 
  None

  * Step-by-step reproduction steps: 
  1. launch an instance
  2. create a metering label rule based on the private ip of the instance

  * Expected output: 
  The iptables should be setup in the namespace of the router of the network of the instance.

  * Actual output: 
  The iptables does not change, and the metering will not work.

  * Version: 
  Mitaka

  * Environment: 
  Neutron DVR Mode

  * Perceived severity: 
  It is a blocker for DVR environment

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1682345/+subscriptions


References