Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 868778 Details for
Bug 1071023
RHEV: Cannot start VMs that have more than 23 snapshots.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script to reproduce relative pathname bug with just qemu-kvm and qemu-img
snap.sh (text/plain), 2.38 KB, created by
Jeff Cody
on 2014-02-27 23:17:21 UTC
(
hide
)
Description:
Script to reproduce relative pathname bug with just qemu-kvm and qemu-img
Filename:
MIME Type:
Creator:
Jeff Cody
Created:
2014-02-27 23:17:21 UTC
Size:
2.38 KB
patch
obsolete
>#!/bin/bash ># Large snapshot chain with relative path backing files > ># change to reflect your qemu executable to test; e.g. qemu-kvm >QEMU_PROG=/usr/libexec/qemu-kvm >#QEMU_PROG=/home/Jeff.Cody/deploy-rhel6/bin/qemu-system-x86_64 >QEMU_IMG_PROG=qemu-img >#QEMU_IMG_PROG=/home/Jeff.Cody/deploy-rhel6/bin/qemu-img > >MAX_SNAPSHOTS=80 > >TEST_DIR=this-is-a-test-dir-for-snapshots-$$ >TEST_BASE=base.qcow2 > >orig_cwd=${PWD} > >mkdir "${TEST_DIR}" >logfile="${PWD}/${TEST_DIR}/output.log" > >cd "${TEST_DIR}" >"${QEMU_IMG_PROG}" create -f qcow2 "${TEST_BASE}" 1G >("${QEMU_PROG}" -enable-kvm -drive file="${TEST_BASE}",if=virtio -m 256 -qmp tcp:localhost:44444,server,nowait)>>"$logfile" 2>&1& >qemu_pid=$! > >trap cleanup EXIT > >cleanup() { > echo "" > echo "Killing qemu process (${qemu_pid})...." > kill -KILL ${qemu_pid} > echo "done, left directory ${TEST_DIR} intact" > cd "${orig_cwd}" >} > > >let i=0 > >echo "Performing live snapshot test" | tee -a "${logfile}" >echo "-----------------------------" | tee -a "${logfile}" > >echo "Waiting to connect to qmp socket..." >while [ 1 ] >do > exec 3<>/dev/tcp/localhost/44444 > if [ $? -eq 0 ] > then > break; > fi > usleep 100000 # 100 ms >done >echo "connected!" > >echo -e "{ 'execute': 'qmp_capabilities' }" >&3 >read response <&3 >echo ${response} >> "${logfile}" >while [ $i -lt $MAX_SNAPSHOTS ] >do > echo -e "{ 'execute': 'blockdev-snapshot-sync', > 'arguments': { 'device': 'virtio0', > 'snapshot-file':'../${TEST_DIR}/live-snapshot-${i}.qcow2', > 'format': 'qcow2' } }" >&3 > read response <&3 > echo "${response}" | grep -q "^{\"return\": {}}" >/dev/null > if [ $? -eq 0 ] > then > echo "snapshot-${i}: success!" > else > echo "snapshot-${i}: failed! (see ${TEST_DIR}/output.log)" > fi > echo "$i: $response" >> "${logfile}" > let i=$i+1 >done > >echo "" | tee -a "${logfile}" >echo "Performing qemu-img snapshot test" | tee -a "${logfile}" >echo "---------------------------------" | tee -a "${logfile}" > >i=0 >prev_img=${TEST_BASE} >ret=0 >while [ $i -lt $MAX_SNAPSHOTS ] >do > "${QEMU_IMG_PROG}" create -f qcow2 qimg-snapshot-${i}.qcow2 -b "$prev_img" >>"$logfile" 2>&1 > if [ $? -eq 0 ] > then > echo "snapshot-${i}: success!" > else > echo "snapshot-${i}: failed! (see ${TEST_DIR}/output.log)" > fi > prev_img="../${TEST_DIR}/qimg-snapshot-${i}.qcow2" > let i=$i+1 >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1071023
: 868778