← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1361264] [NEW] Neutron metering do not check overlap ip range

 

Public bug reported:

I use neutron metering api to create two same rules, I did not get any
error. I think that I should get the error  "MeteringLabelRuleOverlaps"
defined in neutron/extensions/metering.py

BTW,
We define the following error inherit "NotFound", I think "Conflict" is better:

In neutron/extensions/metering.py

class MeteringLabelRuleOverlaps(qexception.NotFound):
    message = _("Metering label rule with remote_ip_prefix "
                "%(remote_ip_prefix)s overlaps another")

** Affects: neutron
     Importance: Undecided
     Assignee: Liping Mao (limao)
         Status: In Progress

** Description changed:

- I use neutron metering api to create two same rule, I did not get any
+ I use neutron metering api to create two same rules, I did not get any
  error. I think that I should get the error  "MeteringLabelRuleOverlaps"
  defined in neutron/extensions/metering.py
  
  BTW,
  We define the following error inherit "NotFound", I think "Conflict" is better:
  
  In neutron/extensions/metering.py
  
  class MeteringLabelRuleOverlaps(qexception.NotFound):
-     message = _("Metering label rule with remote_ip_prefix "
-                 "%(remote_ip_prefix)s overlaps another")
+     message = _("Metering label rule with remote_ip_prefix "
+                 "%(remote_ip_prefix)s overlaps another")

** Summary changed:

- Neutron metering overlap ip range
+ Neutron metering do not overlap ip range

** Summary changed:

- Neutron metering do not overlap ip range
+ Neutron metering do not check overlap ip range

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

Title:
  Neutron metering do not check overlap ip range

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  I use neutron metering api to create two same rules, I did not get any
  error. I think that I should get the error
  "MeteringLabelRuleOverlaps" defined in neutron/extensions/metering.py

  BTW,
  We define the following error inherit "NotFound", I think "Conflict" is better:

  In neutron/extensions/metering.py

  class MeteringLabelRuleOverlaps(qexception.NotFound):
      message = _("Metering label rule with remote_ip_prefix "
                  "%(remote_ip_prefix)s overlaps another")

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


Follow ups

References