← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1477737] Re: neutronv2 api validate_networks method has incorrect formatting for PortLimitExceeded

 

*** This bug is a duplicate of bug 1483022 ***
    https://bugs.launchpad.net/bugs/1483022

** This bug is no longer a duplicate of bug 1477316
   bad exception in neutronv2/api.py
** This bug has been marked a duplicate of bug 1483022
   Missing string substitution results in ugly exception

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1477737

Title:
  neutronv2 api validate_networks method has incorrect formatting for
  PortLimitExceeded

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  http://git.openstack.org/cgit/openstack/nova/tree/nova/network/neutronv2/api.py?id=12.0.0.0b1#n1135

  This is using args for creating a Message object like it's calling a
  log statement, which isn't correct.

                      msg = (_("The number of defined ports: %(ports)d"
                                        "is over the limit: %(quota)d"),
                                        {'ports': len(ports),
                                         'quota': quotas.get('port')})
                      raise exception.PortLimitExceeded(msg)

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


References