Compare commits
230 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
daaa263ad1 | ||
|
|
1a5178ef0c | ||
|
|
b07fed3631 | ||
|
|
7ba7c65438 | ||
|
|
5af6be536a | ||
|
|
a0f001aa68 | ||
|
|
790400f357 | ||
|
|
f5b4a66269 | ||
|
|
9ba178aca4 | ||
|
|
792368a646 | ||
|
|
4a7db74788 | ||
|
|
0300363379 | ||
|
|
4a4aa3a938 | ||
|
|
1fa63ef939 | ||
|
|
520c690092 | ||
|
|
66650d837a | ||
|
|
26965f881b | ||
|
|
72edbc55f8 | ||
|
|
3a85108e5c | ||
|
|
71d5e395b2 | ||
|
|
25e2eae876 | ||
|
|
10c9afdfa8 | ||
|
|
69d7d754bc | ||
|
|
5b7f91c42f | ||
|
|
d99c2b9523 | ||
|
|
b406c18f55 | ||
|
|
689bbb8b49 | ||
|
|
0950fa2dd4 | ||
|
|
5d3dce2ea5 | ||
|
|
b04c24f962 | ||
|
|
670ec36027 | ||
|
|
959a529547 | ||
|
|
a9f381c640 | ||
|
|
d82a76fce5 | ||
|
|
b9cfcbc1bd | ||
|
|
eef1115428 | ||
|
|
e94005d4ae | ||
|
|
87a7e3cd66 | ||
|
|
f575eed3ef | ||
|
|
fbf3a55ceb | ||
|
|
bc0707eb3b | ||
|
|
dba25ec5fb | ||
|
|
27be67588b | ||
|
|
1765b12755 | ||
|
|
68cc862c48 | ||
|
|
938ffd31a8 | ||
|
|
ea0459111d | ||
|
|
ec70683380 |
||
|
|
5cf65da2df | ||
|
|
0c56c2baac | ||
|
|
d0673fc50f | ||
|
|
36d6e0b700 | ||
|
|
501cdb20ae | ||
|
|
c28b7c26fc | ||
|
|
6fddb7b7d9 | ||
|
|
a53ed8e5fc | ||
|
|
ff66613be2 | ||
|
|
90d18ab510 | ||
|
|
0cc7156fdf | ||
|
|
325d55230c | ||
|
|
8935660aa2 | ||
|
|
c7a2f1f49a | ||
|
|
fe16fdb390 | ||
|
|
c3753c426c | ||
|
|
6b78c8afd5 | ||
|
|
fec9e2b674 | ||
|
|
0a9c525871 | ||
|
|
4ca1dbba4b | ||
|
|
37f4f2f35d | ||
|
|
41bc8532d0 | ||
|
|
f722fff733 | ||
|
|
5c09841651 | ||
|
|
8b3ce35899 | ||
|
|
8aab9f5c68 | ||
|
|
6084b1f112 | ||
|
|
c087ce454e | ||
|
|
5d4370f788 | ||
|
|
3417df1151 | ||
|
|
aae2f9ce73 | ||
|
|
c66f3a4d68 | ||
|
|
db13600d9d | ||
|
|
8d27cb1379 | ||
|
|
1dba3b8c1b | ||
|
|
faab6c711a | ||
|
|
f979570668 | ||
|
|
557617d39a | ||
|
|
354d961584 | ||
|
|
6f1854e2fb | ||
|
|
a6ffe0a668 | ||
|
|
df9fe268db | ||
|
|
ba6123fc75 | ||
|
|
04f4df6031 | ||
|
|
3777fa33c6 | ||
|
|
1b882146a3 | ||
|
|
5b1d48a6d9 | ||
|
|
8f1820aa6f | ||
|
|
71520a8e8f | ||
|
|
53cd983946 | ||
|
|
19b8f91663 | ||
|
|
2eb925871d | ||
|
|
6f4ec77358 | ||
|
|
484ddbffba | ||
|
|
20323cd1bc | ||
|
|
686b606973 | ||
|
|
0aacc5e2aa | ||
|
|
32e3130e0f | ||
|
|
1f21f51f2e | ||
|
|
367ef1d16e | ||
|
|
8d307c79fb | ||
|
|
dcd10a79fd | ||
|
|
cf3e580f28 | ||
|
|
060522be72 | ||
|
|
d5dbc41678 | ||
|
|
eda3bba64d | ||
|
|
cceac096a8 | ||
|
|
2871ca2648 | ||
|
|
c4fd3776bc | ||
|
|
55ac73a3a6 | ||
|
|
898c0086da | ||
|
|
a0b231bb84 | ||
|
|
7fbfa0974e | ||
|
|
4adf248ad7 | ||
|
|
5b1f7b0dca | ||
|
|
754f31a25a | ||
|
|
76a47e52e4 | ||
|
|
1180dbb912 | ||
|
|
cb7aba7e97 | ||
|
|
8eba39402e | ||
|
|
91effd1448 | ||
|
|
efe47b57c3 | ||
|
|
56f912639f | ||
|
|
3c02e4033d | ||
|
|
071890f38a | ||
|
|
bc43f9d3fe | ||
|
|
715f90f312 | ||
|
|
b30f630728 | ||
|
|
ba3ddbc065 | ||
|
|
1dc352f4e4 | ||
|
|
f7fec29fc3 | ||
|
|
71c77c8ee4 | ||
|
|
d1a170c6ce | ||
|
|
1ef832f053 | ||
|
|
287af44206 | ||
|
|
66047589bf | ||
|
|
8d832087f2 | ||
|
|
41daf44a4d | ||
|
|
b06ee3b61c | ||
|
|
3ef8072669 | ||
|
|
df4a127b93 | ||
|
|
d58960176f | ||
|
|
2821511444 | ||
|
|
2e0afa9b91 | ||
|
|
f8610faa00 | ||
|
|
7ba90de2bf | ||
|
|
88e3f5af25 | ||
|
|
ea395b60dc | ||
|
|
4e3368f10c | ||
|
|
c8d08693ef | ||
|
|
7dc6e87cf5 | ||
|
|
be8fe16bb5 | ||
|
|
3f9c446680 | ||
|
|
29135227ce | ||
|
|
85358a3226 | ||
|
|
3a7cb22e41 | ||
|
|
c1c9277cd1 | ||
|
|
b004c17388 | ||
|
|
00d876a814 | ||
|
|
41e9bece4c | ||
|
|
7599291a16 | ||
|
|
6e9ced10a5 | ||
|
|
7dd7c798f3 | ||
|
|
4ba366e0fb | ||
|
|
989dd6b636 | ||
|
|
d81b7720bf | ||
|
|
3b8b4a2357 | ||
|
|
4c68cfae20 | ||
|
|
bed8938b69 | ||
|
|
6be9aa8e5f | ||
|
|
65fcab520f | ||
|
|
0ef32f9020 | ||
|
|
104a51bea0 | ||
|
|
ff416b9134 | ||
|
|
3b9c0f9f7b | ||
|
|
dbae216c18 | ||
|
|
4b2c8b6497 | ||
|
|
94934a6a89 | ||
|
|
493bd4f36e | ||
|
|
289db7e0c0 | ||
|
|
6ec7a0de06 | ||
|
|
db25f16e0c | ||
|
|
2afadc4a83 | ||
|
|
658df65b8c | ||
|
|
4ca512e184 | ||
|
|
893e8138a2 | ||
|
|
a3e6ed7219 | ||
|
|
be446a8c85 | ||
|
|
2692e3d6b8 | ||
|
|
805d78dcca | ||
|
|
4ec7e2eac6 | ||
|
|
d3d1fda8db | ||
|
|
e656ffdd3c | ||
|
|
b5277f69cf | ||
|
|
3e8c43329c | ||
|
|
e47ea98a14 | ||
|
|
153ba641ec | ||
|
|
fef847ab60 | ||
|
|
5924ae47ea | ||
|
|
7926cffa5e | ||
|
|
1bf3000160 | ||
|
|
17d121add7 | ||
|
|
83694a96ed | ||
|
|
4f8d3a8922 | ||
| 8beed2edaf | |||
|
|
969ea56ce1 | ||
|
|
3281f2d8ad | ||
|
|
aa0901eab3 | ||
|
|
e61741b6b1 | ||
|
|
79f47d1cc3 | ||
|
|
6f7b339f01 | ||
|
|
6c163da4d5 | ||
|
|
a224796ba7 | ||
|
|
bda6837d2d | ||
|
|
9fe2cbe459 | ||
|
|
621a89ab7c | ||
|
|
3cdbc99c57 | ||
|
|
5fd58c0eb4 | ||
|
|
935c45107e | ||
|
|
670b6fe9e0 | ||
|
|
d8e2462b5c | ||
|
|
c2522473e2 |
9 changed files with 879 additions and 274 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -1,11 +1,14 @@
|
|||
*~
|
||||
|
||||
# RPM target directories
|
||||
/noarch
|
||||
/x86_64
|
||||
|
||||
# Version-dependent build artifacts
|
||||
/.build-*.log
|
||||
/virt-v2v-v*/
|
||||
/virt-v2v-*.src.rpm
|
||||
/results_virt-v2v/
|
||||
|
||||
# Source
|
||||
/virt-v2v-v*.tar.gz
|
||||
/virt-v2v-*.tar.gz
|
||||
/virt-v2v-*.tar.gz.sig
|
||||
|
|
|
|||
55
copy-patches.sh
Executable file
55
copy-patches.sh
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash -
|
||||
|
||||
set -e
|
||||
|
||||
# Maintainer script to copy patches from the git repo to the current
|
||||
# directory. Use it like this:
|
||||
# ./copy-patches.sh
|
||||
|
||||
rhel_version=av-8.3.0
|
||||
|
||||
# Check we're in the right directory.
|
||||
if [ ! -f virt-v2v.spec ]; then
|
||||
echo "$0: run this from the directory containing 'virt-v2v.spec'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git_checkout=$HOME/d/virt-v2v-rhel-$rhel_version
|
||||
if [ ! -d $git_checkout ]; then
|
||||
echo "$0: $git_checkout does not exist"
|
||||
echo "This script is only for use by the maintainer when preparing a"
|
||||
echo "virt-v2v release on RHEL."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get the base version of virt-v2v.
|
||||
version=`grep '^Version:' virt-v2v.spec | awk '{print $2}'`
|
||||
tag="v$version"
|
||||
|
||||
# Remove any existing patches.
|
||||
git rm -f [0-9]*.patch ||:
|
||||
rm -f [0-9]*.patch
|
||||
|
||||
# Get the patches.
|
||||
(cd $git_checkout; rm -f [0-9]*.patch; git format-patch -N --submodule=diff $tag)
|
||||
mv $git_checkout/[0-9]*.patch .
|
||||
|
||||
# Remove any not to be applied.
|
||||
rm -f *NOT-FOR-RPM*.patch
|
||||
|
||||
# Add the patches.
|
||||
git add [0-9]*.patch
|
||||
|
||||
# Print out the patch lines.
|
||||
echo
|
||||
echo "--- Copy the following text into virt-v2v.spec file"
|
||||
echo
|
||||
|
||||
echo "# Patches."
|
||||
for f in [0-9]*.patch; do
|
||||
n=`echo $f | awk -F- '{print $1}'`
|
||||
echo "Patch$n: $f"
|
||||
done
|
||||
|
||||
echo
|
||||
echo "--- End of text"
|
||||
7
gating.yaml
Executable file
7
gating.yaml
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
- !PassingTestCaseRule {test_case_name: libvirt-ci.v2v.brew-build.gating.x86_64.tier1.functional}
|
||||
BIN
libguestfs.keyring
Normal file
BIN
libguestfs.keyring
Normal file
Binary file not shown.
3
sources
3
sources
|
|
@ -1 +1,2 @@
|
|||
2caf55a34ae086d34cbe82375c1b12c5 virt-v2v-v0.8.5.tar.gz
|
||||
SHA512 (virt-v2v-2.10.0.tar.gz) = 035f2181c1cc5f482e96d3e21b513b95939ca224d71ac6ad938842d5af5d60ef07db1600d2ccb609dc2042b1c74088f6f39ffbe595cb51e80278ecb50c314515
|
||||
SHA512 (virt-v2v-2.10.0.tar.gz.sig) = cb6301224ef00577a9cd0fc8fa504e583eb447341bd3849e6854f2d78ae72ca39bca68b70f30efd3d1d64480acf161c5e4bc9ba943595ef4dd2a654c3268aa66
|
||||
|
|
|
|||
13
tests/basic-test.sh
Executable file
13
tests/basic-test.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash -
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# This only makes sure that virt-v2v isn't totally broken.
|
||||
# virt-v2v is extensively tested on real guests by the QE
|
||||
# team using a mix of automated and manual testing.
|
||||
|
||||
# Fix libvirt.
|
||||
systemctl restart virtqemud virtsecretd virtstoraged virtnetworkd
|
||||
|
||||
virt-builder fedora-30
|
||||
virt-v2v -i disk fedora-30.img -o null
|
||||
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- virt-v2v
|
||||
- guestfs-tools
|
||||
- libvirt-daemon-kvm
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: ./basic-test.sh
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
commit 786a74f0f1c14cfb54a65ea8c5fc097f612b03a5
|
||||
Author: Matthew Booth <mbooth@redhat.com>
|
||||
Date: Tue Dec 13 14:18:10 2011 +0000
|
||||
|
||||
Fix crash during format conversions
|
||||
|
||||
Fix a regression introduced by commit 6dec2753fd9e7d726e140bb246ccf32df8af9fb5.
|
||||
We didn't update the format conversion code when updating the GuestfsHandle API.
|
||||
This change updates the API again, removing an unnecessary dependency between
|
||||
GuestfsHandle and Volume.
|
||||
|
||||
diff --git a/lib/Sys/VirtConvert/GuestfsHandle.pm b/lib/Sys/VirtConvert/GuestfsHandle.pm
|
||||
index f6fa63f..fe34d14 100644
|
||||
--- a/lib/Sys/VirtConvert/GuestfsHandle.pm
|
||||
+++ b/lib/Sys/VirtConvert/GuestfsHandle.pm
|
||||
@@ -57,9 +57,9 @@ close() method, and the ability to register pre-close callbacks.
|
||||
=item new(disks, transferiso, isrhev)
|
||||
|
||||
Create a new object. Open a new Sys::Guestfs handle to proxy, using the disks
|
||||
-defined in I<disks>, which is taken from the guest metadata. Add I<transferiso>
|
||||
-as a read-only drive if it is given. If I<isrhev> is true, the handle will use
|
||||
-user and group 36:36.
|
||||
+defined in I<disks>, which is list of disk metadata defined as: [ [ name, path,
|
||||
+format ], ... ]. Add I<transferiso> as a read-only drive if it is given. If
|
||||
+I<isrhev> is true, the handle will use user and group 36:36.
|
||||
|
||||
=cut
|
||||
|
||||
@@ -77,12 +77,12 @@ sub new
|
||||
|
||||
$g = Sys::Guestfs->new();
|
||||
foreach my $disk (@{$disks}) {
|
||||
- my $vol = $disk->{dst};
|
||||
+ my ($name, $path, $format) = @$disk;
|
||||
|
||||
- $g->add_drive_opts($vol->get_path(),
|
||||
- format => $vol->get_format(),
|
||||
+ $g->add_drive_opts($path,
|
||||
+ format => $format,
|
||||
iface => $interface,
|
||||
- name => $disk->{device});
|
||||
+ name => $name);
|
||||
}
|
||||
|
||||
# Add the transfer iso if there is one
|
||||
diff --git a/lib/Sys/VirtConvert/Transfer/Local.pm b/lib/Sys/VirtConvert/Transfer/Local.pm
|
||||
index 667b282..5053ccb 100644
|
||||
--- a/lib/Sys/VirtConvert/Transfer/Local.pm
|
||||
+++ b/lib/Sys/VirtConvert/Transfer/Local.pm
|
||||
@@ -179,12 +179,13 @@ package Sys::VirtConvert::Transfer::GuestfsStream;
|
||||
sub new
|
||||
{
|
||||
my $class = shift;
|
||||
- my ($path) = @_;
|
||||
+ my ($path, $format) = @_;
|
||||
|
||||
my $self = {};
|
||||
bless($self, $class);
|
||||
|
||||
- $self->{g} = new Sys::VirtConvert::GuestfsHandle([$path], undef, 0);
|
||||
+ $self->{g} = new Sys::VirtConvert::GuestfsHandle([['sda', $path, $format]],
|
||||
+ undef, 0);
|
||||
|
||||
return $self;
|
||||
}
|
||||
diff --git a/p2v/server/virt-p2v-server.pl b/p2v/server/virt-p2v-server.pl
|
||||
index 8c52b08..7427055 100755
|
||||
--- a/p2v/server/virt-p2v-server.pl
|
||||
+++ b/p2v/server/virt-p2v-server.pl
|
||||
@@ -343,8 +343,12 @@ sub convert
|
||||
eval {
|
||||
my $transferiso = $config->get_transfer_iso();
|
||||
|
||||
+ my @disks = map { [ $_->{device},
|
||||
+ $_->{dst}->get_path(),
|
||||
+ $_->{dst}->get_format() ] } @{$meta->{disks}};
|
||||
+
|
||||
$g = new Sys::VirtConvert::GuestfsHandle(
|
||||
- $meta->{disks},
|
||||
+ \@disks,
|
||||
$transferiso,
|
||||
$target->isa('Sys::VirtConvert::Connection::RHEVTarget')
|
||||
);
|
||||
diff --git a/v2v/virt-v2v.pl b/v2v/virt-v2v.pl
|
||||
index dead384..b438766 100755
|
||||
--- a/v2v/virt-v2v.pl
|
||||
+++ b/v2v/virt-v2v.pl
|
||||
@@ -518,8 +518,12 @@ v2vdie __('Guest doesn\'t define any storage devices')
|
||||
$source->copy_storage($target, $output_format, $output_sparse);
|
||||
|
||||
# Open a libguestfs handle on the guest's storage devices
|
||||
+my @disks = map { [ $_->{device},
|
||||
+ $_->{dst}->get_path(),
|
||||
+ $_->{dst}->get_format() ] } @{$meta->{disks}};
|
||||
+
|
||||
my $g = new Sys::VirtConvert::GuestfsHandle(
|
||||
- $meta->{disks},
|
||||
+ \@disks,
|
||||
$transferiso,
|
||||
$output_method eq 'rhev'
|
||||
);
|
||||
954
virt-v2v.spec
954
virt-v2v.spec
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue