← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1755756] [NEW] ImageUnacceptable: Image is unacceptable: 'qemu-img info' parsing failed

 

Public bug reported:

Description:
=============
During spawning of cirros kvm instance on kvm compute node, I am getting below exception:
ImageUnacceptable: Image 99aec143-35db-41d1-9c1d-020832cc5dea is unacceptable: 'qemu-img info' parsing failed

Steps to reproduce:
====================
1) Create network
2) Create subnet
3) Fetch cirros image from below link:
   wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
4) Create qcow2 image using below command:
   glance  image-create --name 'cirros-new'     --container-format bare --disk-format qcow2 --property    vmware_disktype=sparse --property vmware_adaptertype=ide   --property hypervisor_type=qemu --visibility public < cirros-0.4.0-x86_64-disk.img 

5) Boot an openstack instance using below command:
   nova boot --flavor 1 --image 99aec143-35db-41d1-9c1d-020832cc5dea --nic net-id=a9f6015e-e736-4f77-b5cb-2c3ee2fe76d2 cirros-vm-1

6) Now vm Goes into ERROR state.

$ nova list
+--------------------------------------+------+--------+------------+-------------+----------+
| ID                                   | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------+
| 207e6fd0-0053-412b-84da-e597b2f7f178 | vm-1 | ERROR  | -          | NOSTATE     |          |
| c7cb3011-6315-4a68-9993-b9d13cc07a58 | vm-2 | ERROR  | -          | NOSTATE     |          |
+--------------------------------------+------+--------+------------+-------------+----------+

Expected Result:
================
qemu-img should return output like:
$ qemu-img info /opt/stack/data/nova/instances/_base/59b8ce75fe0be35c095dedfca62a6fee9611bfe5 --force-share
image: /opt/stack/data/nova/instances/_base/59b8ce75fe0be35c095dedfca62a6fee9611bfe5
file format: raw
virtual size: 39M (41126400 bytes)
disk size: 18M

Actual Result:
==============
I am not sure why qemu-img command is getting failed:
/usr/bin/python -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /opt/stack/data/nova/instances/_base/c252077f0b8f056ceb4e6069eb491d9876d487de.part --force-share" returned: 0

Environment:
============
Devstack: Queens
Network: Neutron
Hypervisor: Ubuntu1604 KVM

Logs:
=====
Full Nova logs traces can be found in below link:
http://paste.openstack.org/show/700897/

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: queens-rc-potential

** Tags added: queens-rc-potential

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

Title:
  ImageUnacceptable: Image is unacceptable: 'qemu-img info' parsing
  failed

Status in OpenStack Compute (nova):
  New

Bug description:
  Description:
  =============
  During spawning of cirros kvm instance on kvm compute node, I am getting below exception:
  ImageUnacceptable: Image 99aec143-35db-41d1-9c1d-020832cc5dea is unacceptable: 'qemu-img info' parsing failed

  Steps to reproduce:
  ====================
  1) Create network
  2) Create subnet
  3) Fetch cirros image from below link:
     wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
  4) Create qcow2 image using below command:
     glance  image-create --name 'cirros-new'     --container-format bare --disk-format qcow2 --property    vmware_disktype=sparse --property vmware_adaptertype=ide   --property hypervisor_type=qemu --visibility public < cirros-0.4.0-x86_64-disk.img 

  5) Boot an openstack instance using below command:
     nova boot --flavor 1 --image 99aec143-35db-41d1-9c1d-020832cc5dea --nic net-id=a9f6015e-e736-4f77-b5cb-2c3ee2fe76d2 cirros-vm-1

  6) Now vm Goes into ERROR state.

  $ nova list
  +--------------------------------------+------+--------+------------+-------------+----------+
  | ID                                   | Name | Status | Task State | Power State | Networks |
  +--------------------------------------+------+--------+------------+-------------+----------+
  | 207e6fd0-0053-412b-84da-e597b2f7f178 | vm-1 | ERROR  | -          | NOSTATE     |          |
  | c7cb3011-6315-4a68-9993-b9d13cc07a58 | vm-2 | ERROR  | -          | NOSTATE     |          |
  +--------------------------------------+------+--------+------------+-------------+----------+

  Expected Result:
  ================
  qemu-img should return output like:
  $ qemu-img info /opt/stack/data/nova/instances/_base/59b8ce75fe0be35c095dedfca62a6fee9611bfe5 --force-share
  image: /opt/stack/data/nova/instances/_base/59b8ce75fe0be35c095dedfca62a6fee9611bfe5
  file format: raw
  virtual size: 39M (41126400 bytes)
  disk size: 18M

  Actual Result:
  ==============
  I am not sure why qemu-img command is getting failed:
  /usr/bin/python -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /opt/stack/data/nova/instances/_base/c252077f0b8f056ceb4e6069eb491d9876d487de.part --force-share" returned: 0

  Environment:
  ============
  Devstack: Queens
  Network: Neutron
  Hypervisor: Ubuntu1604 KVM

  Logs:
  =====
  Full Nova logs traces can be found in below link:
  http://paste.openstack.org/show/700897/

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