← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1404755] [NEW] midonet_lib.py contains a typo'd format parameter

 

Public bug reported:

In add_static_nat(...):

        LOG.debug("MidoClient.add_static_nat called: "
                  "tenant_id=%(tenant_id)s, chain_name=%(chain_name)s, "
                  "from_ip=%(from_ip)s, to_ip=%(to_ip)s, "
                  "port_id=%(port_id)s, nat_type=%(nat_type)s",
                  {'tenant_id': tenant_id, 'chain_name': chain_name,
                   'from_ip': from_ip, 'to_ip': to_ip,
                   'portid': port_id, 'nat_type': nat_type})

Note port_id vs portid.  This line of code will raise a KeyError if
debug logging is enabled.

** Affects: neutron
     Importance: Undecided
     Assignee: Angus Lees (gus)
         Status: In Progress

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

Title:
  midonet_lib.py contains a typo'd format parameter

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

Bug description:
  In add_static_nat(...):

          LOG.debug("MidoClient.add_static_nat called: "
                    "tenant_id=%(tenant_id)s, chain_name=%(chain_name)s, "
                    "from_ip=%(from_ip)s, to_ip=%(to_ip)s, "
                    "port_id=%(port_id)s, nat_type=%(nat_type)s",
                    {'tenant_id': tenant_id, 'chain_name': chain_name,
                     'from_ip': from_ip, 'to_ip': to_ip,
                     'portid': port_id, 'nat_type': nat_type})

  Note port_id vs portid.  This line of code will raise a KeyError if
  debug logging is enabled.

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


Follow ups

References