Bug 915215

Summary: Virt-convert prints incorrect error message while using a nonexistent path
Product: [Community] Virtualization Tools Reporter: Geyang Kong <gkong>
Component: virtinstAssignee: Martin Kletzander <mkletzan>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, dallan, dyasny, lcui, mjenner, mkletzan, mzhan, rwu, tzheng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-07 09:52:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Geyang Kong 2013-02-25 08:59:07 UTC
Description of problem:
  Virt-convert on RHEL7 printed incorrect error message while using a nonexistent path.

Version-Release number of selected component (if applicable):
python-virtinst-0.600.3-2.el7.noarch

Reproduce steps:
1. Have prepared an image file such as this:
[root@dhcp-66-71-159 vmware]# ls
esx5.0-rhel6.3-i386-flat.vmdk  esx5.0-rhel6.3-i386.vmx
esx5.0-rhel6.3-i386.vmdk       esx5.0-rhel6.3-i386.vmxf

2. Run: virt-convert -i vmx -o virt-image /tmp/vmware/ /root/asdfzxcv/tyuiopjkl/

Actual results:
1. Got: ERROR    Could not create directory %s: %s

Expected results:
1. Got: ERROR    Could not create directory /root/asdfzxcv/tyuiopjkl/: No such file or directory.

Additional info:

Comment 1 Martin Kletzander 2013-03-06 15:47:57 UTC
Fixed upstream in following commit, but we have to wait for the merge (added into "Depends on") to be done.

commit 7a18b874388e23bda9972b267937309626664059
Author: Martin Kletzander <mkletzan>
Date:   Wed Mar 6 13:18:50 2013 +0100

    Fix error message

Comment 2 Martin Kletzander 2013-03-07 09:52:18 UTC
Don't mind the "merge" part of previous comment, changing to upstream and closing as NEXTRELEASE.