Bug 10029 - testimage requires sudo password to execute runqemu-ifup and runqemu-ifdown
Summary: testimage requires sudo password to execute runqemu-ifup and runqemu-ifdown
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2 M4
Assignee: Stephano Cetola
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-26 17:18 UTC by Stephano Cetola
Modified: 2016-09-26 14:03 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
warnings and errors from "-c testimage" (1.94 KB, text/plain)
2016-07-26 17:18 UTC, Stephano Cetola
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephano Cetola 2016-07-26 17:18:10 UTC
Created attachment 3323 [details]
warnings and errors from "-c testimage"

If the user has not added runqemu-ifup and runqemu-ifdown to their sudoers file as "ALL=NOPASSWD", running "-c testimage" on any image will produce an error that is vague.

Current Error:


sudo: no tty present and no askpass program specified


Error should say something like:


Failed to run runqemu-ifup or runqemu-ifdown. Timed out waiting for sudo password.
sudo: no tty present and no askpass program specified


To be fair, it is very easy to google the fix for this error, assuming one knows which script is being called with 'sudo'.
Comment 1 Saul Wold 2016-07-28 15:01:49 UTC
runqemu should provide better error message directing users to use the runqemu-gen-tapdevs