Bug 705113

Summary: YAML error during conversion
Product: [Fedora] Fedora Reporter: Matthew Booth <mbooth>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14CC: grant_williamson, mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-v2v-0.8.1-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-15 18:35:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Booth 2011-05-16 17:12:05 UTC
Description of problem:
Conversion fails with the following error:

FATAL: Error parsing metadata: YAML Error: Invalid element in map#012   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT#012   Line: 3#012   Document: 1#012 at /usr/share/perl5/YAML.pm line 36

Version-Release number of selected component (if applicable):
virt-v2v-0.8.1-1.fc14

Comment 1 Matthew Booth 2011-05-16 17:15:38 UTC
It turns out that perl's YAML module can't reliably parse YAML produced by ruby. However, YAML::Syck and YAML::Tiny both can. virt-p2v-server uses YAML::Any, which actually uses these other modules by preference if they are installed, so the workaround is to install either of these modules manually.

The virt-v2v package requires perl(YAML::Any), which is only provided by perl-YAML (which doesn't work). As not all modules work, virt-p2v-server should pick a specific alternative module and require it explicitly.

Comment 2 Fedora Update System 2011-05-17 09:40:08 UTC
virt-v2v-0.8.1-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/virt-v2v-0.8.1-2.fc14

Comment 3 Fedora Update System 2011-05-17 20:57:23 UTC
Package virt-v2v-0.8.1-2.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing virt-v2v-0.8.1-2.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/virt-v2v-0.8.1-2.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-06-15 18:35:35 UTC
virt-v2v-0.8.1-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.