← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1240140] Re: fail to create a snapshot for instance in gluster

 

This is a problem only with the version of qemu-img shipped in RHEL 6.5
which lacks the -s option.

** Changed in: nova
       Status: New => Invalid

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

Title:
  fail to create a snapshot for instance in gluster

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  we fail to create a snapshot for an instance booted from image. 
  looking at the compute log I can see that that qemu-img is getting exit 1: 

  Command: qemu-img convert -f qcow2 -O qcow2 -s 45b38831085a4b9ab7390eef35bc1070 /var/lib/nova/instances/9d411b4a-49cf-478d-b464-ebe053daedd0/disk /var/lib/nova/instances/snapshots/tmpaiU9IA/45b38831085a4b9ab7390eef35bc1070
  2013-10-15 19:14:11.203 3065 TRACE nova.compute.manager [instance: 9d411b4a-49cf-478d-b464-ebe053daedd0] Exit code: 1

  
  running the command manually: 

  [root@nott-vdsa ~(keystone_admin)]# qemu-img convert -f qcow2 -O qcow2 -s 45b38831085a4b9ab7390eef35bc1070 /var/lib/nova/instances/9d411b4a-49cf-478d-b464-ebe053daedd0/disk /var/lib/nova/instances/snapshots/tmpaiU9IA/45b38831085a4b9ab7390eef35bc1070fgfg
  convert: invalid option -- 's'
  qemu-img version 0.12.1, Copyright (c) 2004-2008 Fabrice Bellard
  usage: qemu-img command [command options]
  QEMU disk image utility

  Command syntax:
    check [-f fmt] [--output=ofmt] [-r [leaks | all]] filename
    create [-f fmt] [-o options] filename [size]
    commit [-f fmt] [-t cache] filename
    convert [-c] [-p] [-f fmt] [-t cache] [-O output_fmt] [-o options] [-S sparse_size] filename [filename2 [...]] output_filename
    info [-f fmt] filename
    map [-f fmt] [--output=ofmt] filename
    snapshot [-l | -a snapshot | -c snapshot | -d snapshot] filename
    rebase [-f fmt] [-t cache] [-p] [-u] -b backing_file [-F backing_fmt] filename
    resize filename [+ | -]size

  
  not sure its related but I am working with gluster storage as backend for both cinder and glance

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