← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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"

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups