Bug 749763 - The -ic parameter descripted in virt-v2v manual doesn't match the actual behaviour
Summary: The -ic parameter descripted in virt-v2v manual doesn't match the actual beha...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v
Version: 6.2
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-28 09:41 UTC by tingting zheng
Modified: 2014-11-18 11:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-18 11:26:04 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description tingting zheng 2011-10-28 09:41:59 UTC
Description of problem:
In virt-v2v manual,there is description of -ic parameter as:
-ic URI
Specifies the connection to use when using the libvirt input method. If omitted, this defaults to
qemu:///system when virt-v2v runs as root, or qemu:///session when virt-v2v runs as a regular user

When use virt-v2v as regular user,the -ic parameter descripted in virt-v2v manual doesn't match the actual behaviour

Version-Release number of selected component (if applicable):
virt-v2v-0.8.3-5.el6.x86_64
libguestfs-1.7.17-26.el6.x86_64
libvirt-0.9.4-20.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Make sure there are two pools created by non-root user,and there is a guest in one pool.
[tzheng@tzheng-linux ~]$ virsh pool-list 
Name                 State      Autostart 
-----------------------------------------
test-pool            active     no        
tzheng-pool          active     no 

[tzheng@tzheng-linux ~]$ virsh list --all
 Id Name                 State
----------------------------------
  - esx4.0-rhel5.6-x86_64 shut off

2.Use virt-v2v to convert the guest to another pool as non-root user.
[tzheng@tzheng-linux ~]$ virt-v2v -os test-pool -on test esx4.0-rhel5.6-x86_64 
virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45, message: authentication failed: authentication failed

When I add "-ic qemu:///session" to the command,it will convert successfully.
[tzheng@tzheng-linux ~]$ virt-v2v -ic qemu:///session -os test-pool -on test esx4.0-rhel5.6-x86_64 
ESX4.0-rhel5u6-64b_ESX4.0-rhel5u6-64b: 100% [=====================================================================]D 0h03m04s
virt-v2v: test configured with virtio drivers.


Actual results:
If omit the -ic parameter,the error message showed as:Failed to connect to qemu:///system.

Expected results:
Since in virt-v2v manual,if omit the -ic parameter as regular user,it defaults to qemu:///session,so the error message showed should be:Failed to connect to qemu:///session
 
Additional info:

Comment 1 tingting zheng 2011-10-28 09:46:07 UTC
As communicated with Matthew,the priority and severity of the bug is low,it can be fixed in 6.3.

Comment 2 RHEL Program Management 2012-05-03 04:38:22 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Jan Chaloupka 2014-06-13 11:34:22 UTC
So the solution is to update man page:

-ic URI
Specifies the connection to use when using the libvirt input method. If omitted, this defaults to
qemu:///system

Or to fix it in the source code?

Comment 4 Richard W.M. Jones 2014-11-18 11:26:04 UTC
Virt-v2v needs to run on the latest Red Hat Enterprise Linux release
to ensure it can correctly read and modify new guest filesystem
features.  A new version of virt-v2v is now available for RHEL 7.1.

Before RHEL 7.1 is released, follow the instructions here to
install unsupported preview packages on top of RHEL 7.0:
https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

After RHEL 7.1 is released, virt-v2v will be available in
Technical Preview.

You can run virt-v2v in a single virtual machine.  Other
requirements are covered here:
http://libguestfs.org/virt-v2v.1.html#resource-requirements

If you find a missing feature or bug in the new version of virt-v2v
please file a bug using the following link:
https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=libguestfs


Note You need to log in before you can comment on or make changes to this bug.