← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1477316] Re: bad exception in neutronv2/api.py

 

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

** 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/1477316

Title:
  bad exception in neutronv2/api.py

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L1123

  >>> msg = (_("The number of defined ports: %(ports)d"
  ...                   "is over the limit: %(quota)d"),
  ...                   {'ports': 123,
  ...                    'quota': 456})
  >>> raise exception.PortLimitExceeded(msg)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  nova.exception.PortLimitExceeded: (u'The number of defined ports: %(ports)dis over the limit: %(quota)d', {'ports': 123, 'quota': 456})
  >>> msg = (_("The number of defined ports: %(ports)d"
  ...                   "is over the limit: %(quota)d") %
  ...                   {'ports': 123,
  ...                    'quota': 456})
  >>> raise exception.PortLimitExceeded(msg)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  nova.exception.PortLimitExceeded: The number of defined ports: 123is over the limit: 456

  Note:
  * the message string does not have the ports and quots
  * there should be a space between the port and "is over the limit"

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


References