Ask Your Question
1

Error when creating snapshot of active instance

asked 2014-06-04 08:36:24 -0500

Hiki gravatar image

updated 2014-06-04 23:42:14 -0500

dbaxps gravatar image

Getting these errors when creating a snapshot of an active instance. In the gui I can see it for a few seconds but it gets deleted.

2014-06-04 15:05:28.028 4060 TRACE nova.openstack.common.rpc.amqp Command: qemu-img convert -f qcow2 -O qcow2 -s b67e271013354de7b367f5125772eeff /var/lib/nova/instances/04e04499-7a53-465b-abcb-2918c7fedd2f/disk /var/lib/nova/instances/snapshots/tmpwJV7c4/b67e271013354de7b367f5125772eeff
2014-06-04 15:05:28.028 4060 TRACE nova.openstack.common.rpc.amqp Exit code: 1
2014-06-04 15:05:28.028 4060 TRACE nova.openstack.common.rpc.amqp Stdout: "qemu-img version 0.12.1, Copyright (c) 2004-2008 Fabrice Bellard\nusage: qemu-img command [command options]\nQEMU disk image utility\n\nCommand syntax:\n  check [-f fmt] [--output=ofmt] [-r [leaks | all]] filename\n  create [-f fmt] [-o options] filename [size]\n  commit [-f fmt] [-t cache] filename\n  convert [-c] [-p] [-f fmt] [-t cache] [-O output_fmt] [-o options] [-S sparse_size] filename [filename2 [...]] output_filename\n  info [-f fmt] [--output=ofmt] filename\n  map [-f fmt] [--output=ofmt] filename\n  snapshot [-l | -a snapshot | -c snapshot | -d snapshot] filename\n  rebase [-f fmt] [-t cache] [-p] [-u] -b backing_file [-F backing_fmt] filename\n  resize filename [+ | -]size\n\nCommand parameters:\n  'filename' is a disk image filename\n  'fmt' is the disk image format. It is guessed automatically in most cases\n  'cache' is the cache mode used to write the output disk image, the valid\n    options are: 'none', 'writeback' (default), 'writethrough' and 'unsafe'\n  'size' is the disk image size in bytes. Optional suffixes\n    'k' or 'K' (kilobyte, 1024), 'M' (megabyte, 1024k), 'G' (gigabyte, 1024M)\n    and T (terabyte, 1024G) are supported. 'b' is ignored.\n  'output_filename' is the destination disk image filename\n  'output_fmt' is the destination format\n  'options' is a comma separated list of format specific options in a\n    name=value format. Use -o ? for an overview of the options supported by the\n    used format\n  '-c' indicates that target image must be compressed (qcow format only)\n  '-u' enables unsafe rebasing. It is assumed that old and new backing file\n       match exactly. The image doesn't need a working backing file before\n       rebasing in this case (useful for renaming the backing file)\n  '-h' with or without a command shows this help and lists the supported formats\n  '-p' show progress of command (only certain commands)\n  '-S' indicates the consecutive number of bytes that must contain only zeros\n       for qemu-img to create a sparse image during conversion\n  '--output' takes the format in which the output must be done (human or json)\n\nParameters to check subcommand:\n  '-r' tries to repair any inconsistencies that are found during the check.\n       '-r leaks' repairs only cluster leaks, whereas '-r all' fixes all\n       kinds of errors, with a higher risk of choosing the wrong fix or\n       hiding corruption that has already occurred.\n\nParameters to snapshot subcommand:\n  'snapshot' is the name of the snapshot to create, apply or delete ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-05 02:48:58 -0500

Hiki gravatar image

Yeah found that bug eventually, Redhat removed the -s flag. Fixed it by installing an earlier version of qemu-img on my centos 6.5 box with openstack havana.

Installed Packages Name : qemu-img Arch : x86_64 Epoch : 2 Version : 0.12.1.2 Release : 2.355.el6_4.5 Size : 712 k Repo : installed Summary : QEMU command line tool for manipulating disk images URL : http://www.linux-kvm.org License : GPLv2+ and LGPLv2+ and BSD Description : This package provides a command line tool for manipulating disk images

Available Packages Name : qemu-img Arch : x86_64 Epoch : 2 Version : 0.12.1.2 Release : 2.415.el6_5.8 Size : 595 k Repo : updates Summary : QEMU command line tool for manipulating disk images URL : http://www.linux-kvm.org License : GPLv2+ and LGPLv2+ and BSD Description : This package provides a command line tool for manipulating disk images

edit flag offensive delete link more
0

answered 2014-06-04 17:03:42 -0500

Itzik gravatar image

Which Openstack version are you using ? Which OS?

There is a bug related that was fixed: https://bugs.launchpad.net/nova/+bug/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-06-04 08:36:24 -0500

Seen: 670 times

Last updated: Jun 05 '14