Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1349342 - Error info is not clear when failed ssh to conversion server using non-root user with password on p2v client
Error info is not clear when failed ssh to conversion server using non-root u...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs (Show other bugs)
7.3
x86_64 Unspecified
medium Severity medium
: rc
: ---
Assigned To: Richard W.M. Jones
Virtualization Bugs
P2V
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-23 05:38 EDT by zhoujunqin
Modified: 2016-11-03 14:01 EDT (History)
6 users (show)

See Also:
Fixed In Version: libguestfs-1.32.5-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 14:01:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2576 normal SHIPPED_LIVE Moderate: libguestfs and virt-p2v security, bug fix, and enhancement update 2016-11-03 08:06:51 EDT

  None (edit)
Description zhoujunqin 2016-06-23 05:38:19 EDT
Description of problem:
Error info is not clear when failed ssh to conversion server using non-root user with password on p2v client


Version-Release number of selected component (if applicable):
virt-p2v-1.32.5-5.el7


How reproducible:
100%

Steps to Reproduce:
1.Configure non-root user run sudo with password
$ sudo whoami
[sudo] password for juzhou: 
juzhou is not in the sudoers file.  This incident will be reported.

2. Boot the source machine into p2v client via iso
3.After virt-p2v client launched, fill information as following:
Conversion server: 10.66.71.81 : 22
User name:juzhou(a non-root user)
Password:******
3.1 Check "Use sudo when running virt-v2v" button 
3.2 Press "Test connection" button

4.'Test connection' failed with error message:
virt-v2v is not installed on the conversion server, or it might be a too old version.
Details please see png-1.

 


Actual results:
As above description

Expected results:
Should give a clear failed reason when failed ssh to conversion server using non-root user with password on p2v client

Additional info:
Comment 1 Pino Toscano 2016-06-23 05:40:36 EDT
Fixed upstream with commit
https://github.com/libguestfs/libguestfs/commit/5b6a8e086264c85fb048c0eadff6c34351663133
Comment 4 mxie@redhat.com 2016-06-27 06:02:21 EDT
I can reproduce the bug with build
virt-p2v-1.32.5-5.el7

Try to verify this bug with build:
virt-p2v-1.32.5-6.el7


Steps:

1.Not add non-user with password in sudoers file 
# vim /etc/sudoers

## Allow root to run any commands anywhere 
root    ALL=(ALL)       ALL

2. Boot the source machine into p2v client via iso
3. After virt-p2v client launched, fill information as following:
Conversion server: 10.66.xx.xx : 22
User name:mxie(a non-root user)
Password:******
4. Check "Use sudo when running virt-v2v" button 
5. Press "Test connection" button and then error info show as
"sudo for user"mxie"requires a password.Edit/etc/sudoers on the conversion server to ensure the "NOPASSWD:"option is set for this user"

Result now: 
The error info is very clear now, so the bug has been fixed

So move this bug from ON_QA to VERIFIED.
Comment 6 errata-xmlrpc 2016-11-03 14:01:58 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2576.html

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