Public bug reported: * 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 ** Affects: neutron Importance: Undecided Status: New -- 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: New 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

