← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1359427] Re: Potential codec errors during rescheduling operations

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1359427

Title:
  Potential codec errors during rescheduling operations

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  In the compute manager's 'retry' logic (i.e., handling
  RescheduledException) in _build_and_run_instance, it has a catch-all
  case for all exceptions and sets reason=str(e).  This works well in
  most cases, but for cases in which lower level code may generate
  locale-specific messages, it's possible to see the
  "UnicodeEncodeError: 'ascii' codec can't encode character..." error,
  which ultimately masks the message in the compute logs, etc.

  It also means the instance won't be rescheduled as it fails with an
  error similar to...

  WARNING nova.compute.manager [req-7fe662b1-c947-4303-b43f-114fbdafe875 None] [instance: 333474eb-dd07-4e05-b920-787da0fd5b32] Unexpected build failure, not rescheduling build.
  (i.e., as a result of the UnicodeEncodeError previously mentioned)

  The simple solution is to use six.text_type(e) instead of str(e).

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


References