← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1447463] Re: glance.tests.functional.v2.test_images.TestImages.test_download_random_access failed

 

** Also affects: glance/kilo
   Importance: Undecided
       Status: New

** Changed in: glance/kilo
    Milestone: None => kilo-rc2

** Changed in: glance/kilo
   Importance: Undecided => Critical

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

Title:
  glance.tests.functional.v2.test_images.TestImages.test_download_random_access
  failed

Status in OpenStack Image Registry and Delivery Service (Glance):
  Confirmed
Status in Glance kilo series:
  New

Bug description:
  The error message is below.

  Traceback (most recent call last):
    File "tools/colorizer.py", line 326, in <module>
      if runner.run(test).wasSuccessful():
    File "/usr/lib/python2.7/unittest/runner.py", line 158, in run
      result.printErrors()
    File "tools/colorizer.py", line 305, in printErrors
      self.printErrorList('FAIL', self.failures)
    File "tools/colorizer.py", line 315, in printErrorList
      self.stream.writeln("%s" % err)
    File "/usr/lib/python2.7/unittest/runner.py", line 24, in writeln
      self.write(arg)
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 600-602: ordinal not in range(128)

  There is get method from glance server.

  response = requests.get(path, headers=headers)

  The type of text in this response is unicode, which is
  '\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\x8b\x02\x00gW\xbcY\x01\x00\x00\x00'

  ascii codec can't encode this unicode type.

  This issue is also related other unit test like test_image_life_cycle.

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


References