Red Hat Bugzilla – Bug 1349342
Error info is not clear when failed ssh to conversion server using non-root user with password on p2v client
Last modified: 2016-11-03 14:01:58 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:
Fixed upstream with commit https://github.com/libguestfs/libguestfs/commit/5b6a8e086264c85fb048c0eadff6c34351663133
Also required: https://github.com/libguestfs/libguestfs/commit/d41cf142e1eb285eca798889d3b6a955afffbe32 https://github.com/libguestfs/libguestfs/commit/5e794b86072cfaa1d2017d93bd3a24be72636c02
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.
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