← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403304] [NEW] Cisco cfg_agent: unsupported format character in logging string

 

Public bug reported:

CiscoCfgAgent.hosting_devices_removed() contains an error in the
format string used to log errors:

    LOG.error(_LE("Invalid payload format for received RPC message "
		"`hosting_devices_removed`. Error is %{error}s. "
		"Payload is %(payload)s"),
	      {'error': e, 'payload': payload})

"%{error}s" should be "%(error)s"

The existing version raises "ValueError: unsupported format character
'{' (0x7b)" when invoked.

(found via pylint)

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

Title:
  Cisco cfg_agent: unsupported format character in logging string

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

Bug description:
  CiscoCfgAgent.hosting_devices_removed() contains an error in the
  format string used to log errors:

      LOG.error(_LE("Invalid payload format for received RPC message "
  		"`hosting_devices_removed`. Error is %{error}s. "
  		"Payload is %(payload)s"),
  	      {'error': e, 'payload': payload})

  "%{error}s" should be "%(error)s"

  The existing version raises "ValueError: unsupported format character
  '{' (0x7b)" when invoked.

  (found via pylint)

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


Follow ups

References