"QCOW2" image has a problem in Creating an instance on Compute node

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

Bug Description

Hello everyone,

  I have meet a problem when I want to create an instance in Compute node (in Multi node systems)

  I installed Multi nodes system with two machines by Devstack ( stable version havanna) and installed Savanna by myself (0.3 stable version).

  I can create an instance in whichever node by default image (format "AMI" ) and I success to create an instance in each node by an "ISO" image created by myself. Everything is OK.

  But when I want to create an instance by "QCOW2" image, I just can create instance in Controller node, And when I use the bellow command to forcefully creant instance in compute node

  "nova boot --flavor m1.tiny --image (id of "QCOW2" image) --availability-zone nova:server2 Test"

  The node is always on Status "ERROR"

   I check its information by "nova show (id of instance)", it show me the bellow information.

| fault | {"message": "'ascii' codec can't encode character u'\\xe8' in position 28: ordinal not in range(128)", "code": 500, "details": " File \"/opt/stack/nova/nova/compute/manager.py\", line 258, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 1630, in run_instance |
| | do_run_instance() |
| | File \"/opt/stack/nova/nova/openstack/common/lockutils.py\", line 246, in inner |
| | return f(*args, **kwargs) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 1629, in do_run_instance |
| | legacy_bdm_in_spec) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 968, in _run_instance |
| | notify(\"error\", msg=unicode(e)) # notify that build failed |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 952, in _run_instance |
| | instance, image_meta, legacy_bdm_in_spec) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 1043, in _build_instance |
| | set_access_ip=set_access_ip) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 1426, in _spawn |
| | LOG.exception(_('Instance failed to spawn'), instance=instance) |
| | File \"/opt/stack/nova/nova/compute/manager.py\", line 1423, in _spawn |
| | block_device_info) |
| | File \"/opt/stack/nova/nova/virt/libvirt/driver.py\", line 2084, in spawn |
| | admin_pass=admin_password) |
| | File \"/opt/stack/nova/nova/virt/libvirt/driver.py\", line 2389, in _create_image |
| | project_id=instance['project_id']) |
| | File \"/opt/stack/nova/nova/virt/libvirt/imagebackend.py\", line 174, in cache |
| | *args, **kwargs) |
| | File \"/opt/stack/nova/nova/virt/libvirt/imagebackend.py\", line 337, in create_image |
| | copy_qcow2_image(base, self.path, size) |
| | File \"/opt/stack/nova/nova/openstack/common/lockutils.py\", line 246, in inner |
| | return f(*args, **kwargs) |
| | File \"/opt/stack/nova/nova/virt/libvirt/imagebackend.py\", line 303, in copy_qcow2_image |
| | disk.extend(target, size, use_cow=True) |
| | File \"/opt/stack/nova/nova/virt/disk/api.py\", line 141, in extend |
| | if not is_image_partitionless(image, use_cow): |
| | File \"/opt/stack/nova/nova/virt/disk/api.py\", line 181, in is_image_partitionless |
| | fs.setup() |
| | File \"/opt/stack/nova/nova/virt/disk/vfs/localfs.py\", line 83, in setup |
| | LOG.debug(_(\"Failed to mount image %(ex)s)\"), {'ex': str(e)}) |
| | ", "created": "2014-03-19T16:39:32Z"}

I'm sure that in the name of image and path of image, there is no strange character. And I'm sure that the Server2 has enough resource (CPU, RAM and disk).

So, I'm not sure this is a bug or not.

I hope someone could help me and thanks in advance.

PS: the "QCOW2" image is the pre-built image which we could download from "https://savanna.readthedocs.org/en/0.3/userdoc/vanilla_plugin.html" and "https://savanna.readthedocs.org/en/0.3/userdoc/hdp_plugin.html".

Tags: libvirt
Tracy Jones (tjones-i)
tags: added: compute
tags: added: libvirt
removed: compute
Revision history for this message
Bo ZHANG (bo-zhang) wrote :

I think I foud a little thing in the error log, and hava a try in Terminal.

In error log, there is " 'ascii' codec can't encode character u'\\xe8' ". So I try " print u'\xe8' " in Python, it show "è".
But" print u'\\xe8' ", it just show " \xe8".

It is not a character!!

But I'm not sure this is a little problem or not.

Revision history for this message
Bo ZHANG (bo-zhang) wrote :

Hello everyone,

  I have solved my problem.

  It is caused by the different system language.

  My controller node install ubuntu 12.04 english. But my compute node install ubuntu 12.04 french !! (I'm a asiatic student in France, so french, english all work for me.)

  When I reinstall ubuntu on my compute node (of crouse, version english), the problem has gone.

  Hope it will help you.

Solly Ross (sross-7)
Changed in nova:
status: New → 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.