qemu-img: symbol lookup error: qemu-img: undefined symbol: rbd_aio_discard

Bug #1440948 reported by Ryan Beisner on 2015-04-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cinder (Juju Charms Collection)
High
Ryan Beisner
qemu-kvm (Ubuntu)
High
Unassigned

Bug Description

On Precise or Trusty:

$ qemu-img --help
qemu-img: symbol lookup error: qemu-img: undefined symbol: rbd_aio_discard

$ qemu-img
qemu-img: symbol lookup error: qemu-img: undefined symbol: rbd_aio_discard

$ dpkg-query --show qemu-utils
qemu-utils 2.0.0+dfsg-2ubuntu1.6~cloud0

Workaround:
$ sudo apt-get install librbd1

Then qemu-img works.

cinder (next and stable) charm amulet tests fail with: vol create failed - from glance img

juju-test.conductor.14-basic-precise-icehouse DEBUG : vol create failed - from glance img: id:f3fcd8fb-4ecd-46a7-bde1-0d83ac0166c8 stat:error boot:false

next: revno 82
stable: revno 73

Related branches

Ryan Beisner (1chb1n) on 2015-04-07
summary: - cinder next charm amulet test fails with: vol create failed - from
- glance img
+ cinder (next and stable) charm amulet tests fail with: vol create
+ failed - from glance img
description: updated
Download full text (4.5 KiB)

Liam mentioned he'd take a look as it sounded familiar.

The log mentions "qemu-img is not installed and image is of type qcow2.
Only RAW images can be used if qemu-img is not installed"

Here are some more details from /var/log/cinder/cinder-volume.log:

2015-04-01 21:08:56.872 18941 ERROR oslo.messaging._drivers.common
[req-b7aff4bf-8033-4136-9908-ec68c8227f9f 21c75ead5c314b9d9f4074b1d420bcb5
20f3cd68c4db4f9aaabca34c28b6e307 - - -] Returning exception Image
e403df40-e94b-4b7d-855f-8292517b2d7a is unacceptable: qemu-img is not
installed and image is of type qcow2. Only RAW images can be used if
qemu-img is not installed. to caller
2015-04-01 21:08:56.872 18941 ERROR oslo.messaging._drivers.common
[req-b7aff4bf-8033-4136-9908-ec68c8227f9f 21c75ead5c314b9d9f4074b1d420bcb5
20f3cd68c4db4f9aaabca34c28b6e307 - - -] ['Traceback (most recent call
last):\n', ' File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
133, in _dispatch_and_reply\n incoming.message))\n', ' File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
176, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt,
args)\n', ' File
"/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line
122, in _do_dispatch\n result = getattr(endpoint, method)(ctxt,
**new_args)\n', ' File
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 363, in
create_volume\n _run_flow()\n', ' File
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 356, in
_run_flow\n flow_engine.run()\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/utils/lock_utils.py", line 53,
in wrapper\n return f(*args, **kwargs)\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 111, in run\n self._run()\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 121, in _run\n self._revert(misc.Failure())\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/engine.py",
line 78, in _revert\n misc.Failure.reraise_if_any(failures.values())\n',
' File "/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line
558, in reraise_if_any\n failures[0].reraise()\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/utils/misc.py", line 565, in
reraise\n six.reraise(*self._exc_info)\n', ' File
"/usr/lib/python2.7/dist-packages/taskflow/engines/action_engine/executor.py",
line 36, in _execute_task\n result = task.execute(**arguments)\n', '
 File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 594, in execute\n **volume_spec)\n', ' File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 556, in _create_from_image\n image_id, image_location,
image_service)\n', ' File
"/usr/lib/python2.7/dist-packages/cinder/volume/flows/manager/create_volume.py",
line 463, in _copy_image_to_volume\n raise
exception.ImageUnacceptable(ex)\n', 'ImageUnacceptable: Image
e403df40-e94b-4b7d-855f-8292517b2d7a is unacceptable: qemu-img is not
installed and image is of type qcow2. Only RAW images can be used if
qemu-img is not installed.\n'...

Read more...

Even with qemu-img installed, the test fails. This appears to be due to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680307

Please see this demonstration of the busted qemu-img on Precise:

http://paste.ubuntu.com/10764770/

summary: - cinder (next and stable) charm amulet tests fail with: vol create
- failed - from glance img
+ qemu-img: symbol lookup error: qemu-img: undefined symbol:
+ rbd_aio_discard
Ryan Beisner (1chb1n) on 2015-04-07
description: updated
description: updated
Ryan Beisner (1chb1n) wrote :

FYI, a potentially-related precise rbd libvirt issue: https://bugs.launchpad.net/charms/+source/nova-compute/+bug/1427660

Ryan Beisner (1chb1n) on 2015-04-08
description: updated
description: updated
Ryan Beisner (1chb1n) wrote :

ubuntu@juju-osci-sv07-machine-1:~$ tail /etc/apt/sources.list.d/*
==> /etc/apt/sources.list.d/cloud-archive.list <==
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/icehouse main
==> /etc/apt/sources.list.d/cloud_config_sources.list <==
deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/cloud-tools main

ubuntu@juju-osci-sv07-machine-1:~$ dpkg -l | egrep 'qemu|rbd|ceph'
ii librbd1 0.41-1ubuntu2.1 RADOS block device client library
ii qemu-utils 2.0.0+dfsg-2ubuntu1.6~cloud0 QEMU utilities

ubuntu@juju-osci-sv07-machine-1:~$ apt-cache policy qemu-utils
qemu-utils:
  Installed: 2.0.0+dfsg-2ubuntu1.6~cloud0
  Candidate: 2.0.0+dfsg-2ubuntu1.6~cloud0
  Version table:
 *** 2.0.0+dfsg-2ubuntu1.6~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/icehouse/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0+noroms-0ubuntu14.21 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     1.0+noroms-0ubuntu13 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

ubuntu@juju-osci-sv07-machine-1:~$ apt-cache policy librbd1
librbd1:
  Installed: 0.41-1ubuntu2.1
  Candidate: 0.80.5-0ubuntu0.14.04.1~cloud0
  Version table:
     0.80.5-0ubuntu0.14.04.1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ precise-updates/icehouse/main amd64 Packages
 *** 0.41-1ubuntu2.1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.41-1ubuntu2 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Changed in qemu-kvm (Ubuntu):
importance: Undecided → High
status: New → Triaged
Serge Hallyn (serge-hallyn) wrote :

(marking wontfix for clarity on quick qemu bugs triage; this will be handled in the charms)

Changed in qemu-kvm (Ubuntu):
status: Triaged → Won't Fix
James Page (james-page) on 2015-04-13
Changed in cinder (Juju Charms Collection):
status: New → Fix Released
milestone: none → 15.04
importance: Undecided → High
Ryan Beisner (1chb1n) on 2015-04-13
Changed in cinder (Juju Charms Collection):
assignee: nobody → Ryan Beisner (1chb1n)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.