wrong log formatting

Bug #1717173 reported by Liusheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mogan
Fix Released
Undecided
Liusheng

Bug Description

ERROR messages in log:

Sep 14 01:42:32.554747 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: 2017-09-14 01:42:32.554 11370 INFO mogan.engine.manager [req-819a78fb-6c1e-4b01-bf11-c1f3724879c5 03976298162e4ba2aa1e667bc61f03e1 073514cbe78a49de8d3a7fb67ded979c default - -] Created server 344afcea-401f-4fde-acf1-b191a2dc07cc successfully.
Sep 14 01:42:35.992702 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: Traceback (most recent call last):
Sep 14 01:42:35.992954 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
Sep 14 01:42:35.994844 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: msg = self.format(record)
Sep 14 01:42:35.995061 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/local/lib/python2.7/dist-packages/oslo_log/handlers.py", line 161, in format
Sep 14 01:42:35.995374 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: return logging.StreamHandler.format(self, record)
Sep 14 01:42:35.995565 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
Sep 14 01:42:35.995737 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: return fmt.format(record)
Sep 14 01:42:35.995899 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/local/lib/python2.7/dist-packages/oslo_log/formatters.py", line 442, in format
Sep 14 01:42:35.996346 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: return logging.Formatter.format(self, record)
Sep 14 01:42:35.996522 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
Sep 14 01:42:35.996708 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: record.message = record.getMessage()
Sep 14 01:42:35.996885 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
Sep 14 01:42:35.997051 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: msg = msg % self.args
Sep 14 01:42:35.997208 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: ValueError: unsupported format character 't' (0x74) at index 38
Sep 14 01:42:35.997373 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: Logged from file manager.py, line 594
Sep 14 01:42:39.646196 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: 2017-09-14 01:42:39.645 11370 INFO mogan.engine.manager [req-97e3ed0d-c0f1-4b43-abaa-1b65b59bb97b 03976298162e4ba2aa1e667bc61f03e1 073514cbe78a49de8d3a7fb67ded979c default - -] Attaching interface successfully
Sep 14 01:42:39.725638 ubuntu-xenial-ovh-bhs1-10927052 mogan-engine[11370]: 2017-09-14 01:42:39.724 11370 DEBUG mogan.engine.manager [req-a4b453f3-dc34-450d-8c4e-f1de4f0c62e0 03976298162e4ba2aa1e667bc61f03e1 073514cbe78a49de8d3a7fb67ded979c default - -] Error formatting log line msg=u'Detaching interface *(port_id) from server *(server)s' err=TypeError('a float is required',) detach_interface /opt/stack/new/mogan/mogan/engine/manager.py:647

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mogan (master)

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

Changed in mogan:
assignee: nobody → Liusheng (liusheng)
status: New → In Progress
Liusheng (liusheng)
summary: - Gate has been broken by wrong log formatting
+ wrong log formatting
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mogan (master)

Reviewed: https://review.openstack.org/503969
Committed: https://git.openstack.org/cgit/openstack/mogan/commit/?id=06d5c4387748311a185c2e255639a9eb7433aebd
Submitter: Jenkins
Branch: master

commit 06d5c4387748311a185c2e255639a9eb7433aebd
Author: liusheng <email address hidden>
Date: Thu Sep 14 14:11:53 2017 +0800

    Correct log formatting statements

    Change-Id: I98d6324c582fad103c25398569db871ebe710af6
    Closes-Bug: #1717173

Changed in mogan:
status: In Progress → Fix Released
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.