← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1295608] [NEW] "QCOW2" image has a problem in Creating an instance on Compute node

 

Public bug reported:

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";.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1295608

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

Status in OpenStack Compute (Nova):
  New

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";.

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


Follow ups

References