← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383255] [NEW] non-unicode error message -> glance-reg dies without saying why

 

Public bug reported:

My logs were full of:

Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance Traceback (most recent call last):
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/bin/glance-registry", line 10, in <module>
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     sys.exit(main())
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/local/lib/python2.7/site-packages/glance/cmd/registry.py", line 74, in main
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     sys.exit("ERROR: %s" % e)
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/local/lib/python2.7/site-packages/oslo/i18n/_message.py", line 167, in __str__
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     raise UnicodeError(msg)
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance

After this, init would restart glance-reg, ready for it to die again
shortly afterwards.

The original error is swallowed by the error processing the first error
message, and I can't tell what the original error was.

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  non-unicode error message -> glance-reg dies without saying why

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

Bug description:
  My logs were full of:

  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance Traceback (most recent call last):
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/bin/glance-registry", line 10, in <module>
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     sys.exit(main())
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/local/lib/python2.7/site-packages/glance/cmd/registry.py", line 74, in main
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     sys.exit("ERROR: %s" % e)
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance   File "/opt/stack/venvs/glance/local/lib/python2.7/site-packages/oslo/i18n/_message.py", line 167, in __str__
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance     raise UnicodeError(msg)
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
  Oct 20 11:21:35 undercloud-undercloud-uxtyfj4ag5qy glance-reg: 2014-10-20 11:21:35.199 34161 TRACE glance

  After this, init would restart glance-reg, ready for it to die again
  shortly afterwards.

  The original error is swallowed by the error processing the first
  error message, and I can't tell what the original error was.

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


Follow ups

References