Failure to log warning when injection fails results in instance failure

Bug #733079 reported by guanxiaohua2k6
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I failed to run instance when network_manager was FlatManager. The related log and version info was as followings.

nova-compute.log:

2011-03-11 14:13:51,326 DEBUG nova.utils [-] execution result: 1 from (pid=12476) execute /usr/lib/pymodules/python2.6/nova/utils.py:161
2011-03-11 14:13:51,326 DEBUG nova.utils [-] execute command (subprocess): sudo umount /dev/nbd15 from (pid=12476) execute /usr/lib/pymodules/python2.6/nova/utils.py:148
2011-03-11 14:13:53,015 DEBUG nova.utils [-] execute command (subprocess): rmdir /tmp/tmphKFfeW from (pid=12476) execute /usr/lib/pymodules/python2.6/nova/utils.py:148
2011-03-11 14:13:53,068 DEBUG nova.utils [-] execute command (subprocess): sudo qemu-nbd -d /dev/nbd15 from (pid=12476) execute /usr/lib/pymodules/python2.6/nova/utils.py:148
2011-03-11 14:13:53,178 ERROR nova.exception [-] Excpetion not caught
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 408, in spawn
(nova.exception): TRACE: self._create_image(instance, xml)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 672, in _create_image
(nova.exception): TRACE: ' data into image %(img_id)s (%(e)s)') % locals())
(nova.exception): TRACE: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-25: ordinal not in range(128)
(nova.exception): TRACE:
2011-03-11 14:13:53,199 ERROR nova.compute.manager [9X8WPVKT5PFGRFW2R7V7 anne IRT] it failed to start instance 1.
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 213, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: 'ascii' codec can't encode characters in position 0-25: ordinal not in range(128)
(nova.compute.manager): TRACE:

Version of nova-compute: 2011.2~bzr786-0ubuntu0ppa1~maverick1

Contents of nova.conf:

--sql_connection=mysql://root:nova@ubuntu7/nova
--s3_host=ubuntu7
--rabbit_host=192.168.32.202
--cc_host=192.168.32.202
--ec2_url=http://192.168.32.202:8773/services/Cloud

--daemonize=1

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge

--FAKE_subdomain=ec2

--ca_path=/var/lib/nova/CA
--keys_path=/var/lib/nova/keys
--networks_path=/var/lib/nova/networks
--instances_path=/var/lib/nova/instances
--images_path=/var/lib/nova/images
--buckets_path=/var/lib/nova/buckets

--libvirt_type=kvm

--network_manager=nova.network.manager.FlatManager

--vlan_interface=eth0

--logdir=/var/log/nova
--verbose
--volume_group=ubuntu7
--fixed_range=192.168.2.64/26
--network_size=64
--lock_path=/home/nii/tmp

Revision history for this message
Thierry Carrez (ttx) wrote :

data injection is failing (probably due to the image you're using), which should just result in a warning message... but the warning log attempt fails with a real error.

Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Thierry Carrez (ttx)
summary: - Failed to run instance if network_manager was FlatManager
+ Failure to log warning when injection fails results in instance failure
Revision history for this message
Thierry Carrez (ttx) wrote :

Hmm, I can't reproduce that in my testing, even using japanese locale. I can log exceptions alright... Could you check with current trunk ?

Changed in nova:
importance: Medium → Undecided
status: Confirmed → Incomplete
Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

Thank you, Thierry. I tried it with the newest version. There was no error. So maybe it has been fixed by other bug fix.

Revision history for this message
Thierry Carrez (ttx) wrote :

Thanks for the feedback, closing as Invalid.

Changed in nova:
status: Incomplete → Invalid
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.