TypeError in neutron.cmd.checks._vf_management_support

Bug #1623176 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Matt Riedemann

Bug Description

Seen here:

2016-09-13 19:39:39.079596 | 2016-09-13 19:39:39.079 | {3} neutron.tests.functional.sanity.test_sanity.SanityTestCaseRoot.test_vf_extended_management_runs [0.086337s] ... ok
2016-09-13 19:39:39.081288 | 2016-09-13 19:39:39.080 |
2016-09-13 19:39:39.083105 | 2016-09-13 19:39:39.082 | Captured stderr:
2016-09-13 19:39:39.084958 | 2016-09-13 19:39:39.084 | ~~~~~~~~~~~~~~~~
2016-09-13 19:39:39.095929 | 2016-09-13 19:39:39.088 | Traceback (most recent call last):
2016-09-13 19:39:39.100121 | 2016-09-13 19:39:39.099 | File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
2016-09-13 19:39:39.101455 | 2016-09-13 19:39:39.101 | msg = self.format(record)
2016-09-13 19:39:39.103616 | 2016-09-13 19:39:39.103 | File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
2016-09-13 19:39:39.106691 | 2016-09-13 19:39:39.106 | return fmt.format(record)
2016-09-13 19:39:39.110263 | 2016-09-13 19:39:39.109 | File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_log/formatters.py", line 297, in format
2016-09-13 19:39:39.112274 | 2016-09-13 19:39:39.111 | return logging.Formatter.format(self, record)
2016-09-13 19:39:39.113743 | 2016-09-13 19:39:39.113 | File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
2016-09-13 19:39:39.115538 | 2016-09-13 19:39:39.115 | record.message = record.getMessage()
2016-09-13 19:39:39.120019 | 2016-09-13 19:39:39.118 | File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
2016-09-13 19:39:39.123320 | 2016-09-13 19:39:39.122 | msg = msg % self.args
2016-09-13 19:39:39.125517 | 2016-09-13 19:39:39.125 | TypeError: format requires a mapping
2016-09-13 19:39:39.127435 | 2016-09-13 19:39:39.127 | Logged from file checks.py, line 157

Tags: logging
Matt Riedemann (mriedem)
Changed in neutron:
status: New → Confirmed
assignee: nobody → Matt Riedemann (mriedem)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/369656

Changed in neutron:
status: Confirmed → In Progress
tags: added: logging
Changed in neutron:
milestone: none → newton-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/369656
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=c231bfb6c4743baaa1429487621d3bf18e4f1c6a
Submitter: Jenkins
Branch: master

commit c231bfb6c4743baaa1429487621d3bf18e4f1c6a
Author: Matt Riedemann <email address hidden>
Date: Tue Sep 13 15:56:50 2016 -0400

    Fix TypeError in sanity check logging format

    The logger needs 'cap' in a replacement dict else you
    get a TypeError when formatting.

    Change-Id: I0bc9c8fe8f0f4e5fc44030fcc3217ccd1b485d51
    Closes-Bug: #1623176

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
lilintan (lilintan) wrote :

How to reproduce the scene?
when i run neutron.tests.functional.sanity.test_sanity.SanityTestCaseRoot.test_vf_management_runs
i received "skipped u'Testing with sudo is not enabled'"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.0.0.0rc1

This issue was fixed in the openstack/neutron 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.