UnicodeDecodeError in the nova gate logs

Bug #1320655 reported by Attila Fazekas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Won't Fix
Undecided
Unassigned
Glance Client
Fix Released
Medium
Zhi Yan Liu
OpenStack Compute (nova)
Invalid
Low
Unassigned
Tags: compute
Tracy Jones (tjones-i)
tags: added: compute
Joe Gordon (jogo)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Michael Still (mikal) wrote :

Joe and I have come up with a theory that this is a problem with python-glanceclient. I'm testing it out now.

Changed in nova:
assignee: nobody → Michael Still (mikalstill)
Revision history for this message
Mark Washenberger (markwash) wrote :

Note from chat with mikal:

mikal: markwash: commenting out the LOG.debug lines "fixes" the tracebacks, but makes those logging methods useless
mikal: i.e. we need to think harder than that

Changed in python-glanceclient:
importance: Undecided → Medium
status: New → Confirmed
Michael Still (mikal)
Changed in nova:
status: Confirmed → Invalid
assignee: Michael Still (mikalstill) → nobody
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :
Changed in python-glanceclient:
assignee: nobody → Zhi Yan Liu (lzy-dev)
Changed in python-glanceclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/100412
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=dec9c9f3525577dd865bd12d43e4578ae32e4d3c
Submitter: Jenkins
Branch: master

commit dec9c9f3525577dd865bd12d43e4578ae32e4d3c
Author: Michael Still <email address hidden>
Date: Tue Jun 17 17:45:47 2014 +1000

    Change a debug line to prevent UnicodeDecodeError issue

    This debug line is causing tracebacks in the n-cpu logs for
    tempest runs. Its because the logged data is sometimes unicode:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
        msg = self.format(record)
      File "/opt/stack/new/nova/nova/openstack/common/log.py", line 710, in format
        return logging.StreamHandler.format(self, record)
      File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
        return fmt.format(record)
      File "/opt/stack/new/nova/nova/openstack/common/log.py", line 674, in format
        return logging.Formatter.format(self, record)
      File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
        s = self._fmt % record.__dict__
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1234: ordinal not in range(128)
    Logged from file http.py, line 153

    The change used correct encoding error handling policy for the log
    which may includes non-ascii char.

    Closes-bug: 1320655
    Change-Id: I97f5f14b9beddcceb7fbd371062caf5a38a62a20

Changed in python-glanceclient:
status: In Progress → Fix Committed
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :

Failing here in log_http_response:

http://git.openstack.org/cgit/openstack/python-glanceclient/tree/glanceclient/common/http.py#n133

http://logs.openstack.org/35/118135/5/gate/gate-tempest-dsvm-full/8e230bc/logs/screen-n-cpu.txt.gz#_2014-09-10_14_27_45_271

2014-09-10 14:27:45.271 28251 INFO nova.compute.manager [-] [instance: 3634459f-2177-4a17-bc57-074610d2f6e5] VM Started (Lifecycle Event)
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/opt/stack/new/nova/nova/openstack/common/log.py", line 705, in format
    return logging.StreamHandler.format(self, record)
  File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/opt/stack/new/nova/nova/openstack/common/log.py", line 632, in format
    record.msg = six.text_type(record.msg)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 319: ordinal not in range(128)
Logged from file http.py, line 133

Revision history for this message
Matt Riedemann (mriedem) wrote :

I opened bug 1369756 for the new failure.

Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
Changed in glance:
status: New → Incomplete
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

This is old and looks Py2-related, so we won't be fixing this.

Changed in glance:
status: Incomplete → Won't Fix
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.