Exception injecting key results in another error in some i18n cases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Dan Prince |
Bug Description
nova rev 1388 on Ubuntu 11.04
If an error occur in injecting data in the image befor the boot, the libvirt driver raises an exception an just puts a warning log (cf. nova/virt/
2011-08-08 14:40:18,776 INFO nova.virt.
2011-08-08 14:40:18,776 DEBUG nova.utils [-] Execution de la commande (sous-processus) : sudo qemu-nbd -c /dev/nbd15 /var/lib/
s/instance-
2011-08-08 14:40:19,796 DEBUG nova.utils [-] Execution de la commande (sous-processus) : sudo tune2fs -c 0 -i 0 /dev/nbd15 from (pid=18279)
execute /usr/lib/
2011-08-08 14:40:21,372 DEBUG nova.utils [-] Execution de la commande (sous-processus) : sudo mount /dev/nbd15 /tmp/tmpcz0Gtc from (pid=182
79) execute /usr/lib/
2011-08-08 14:40:21,391 DEBUG nova.utils [-] Le résultat était 32 from (pid=18279) execute /usr/lib/
2011-08-08 14:40:21,391 DEBUG nova.utils [-] Execution de la commande (sous-processus) : rmdir /tmp/tmpcz0Gtc from (pid=18279) execute /usr
/lib/pymodules/
2011-08-08 14:40:21,401 DEBUG nova.utils [-] Execution de la commande (sous-processus) : sudo qemu-nbd -d /dev/nbd15 from (pid=18279) execu
te /usr/lib/
2011-08-08 14:40:21,417 ERROR nova.exception [-] Exception non prévue
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: block_device_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: ' data into image %(img_id)s (%(e)s)') % locals())
(nova.exception): TRACE: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)
(nova.exception): TRACE:
2011-08-08 14:40:21,418 ERROR nova.compute.
i' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
(nova.compute.
2011-08-08 14:40:21,523 DEBUG nova.compute.
pymodules/
Changed in nova: | |
assignee: | nobody → justinsb (justin-fathomdb) |
Changed in nova: | |
milestone: | none → essex-4 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
assignee: | nobody → Dan Prince (dan-prince) |
Changed in nova: | |
milestone: | essex-4 → 2012.1 |
I found the problem. I use a system configure in french language.
In this case, the return error message contains some accentuated letters and the log message cannot decode this warning.
Is it a bug ?