Bug 8988

Summary: test_rpm_query_nonroot (oeqa.runtime.rpm.RpmInstallRemoveTest) - Failed to create new user
Product: [QA/Testing] Runtime Testing Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: generalAssignee: Ross Burton <ross.burton>
Status: VERIFIED DUPLICATE QA Contact: David Rodriguez <david.israelx.rodriguez.castellanos>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, david.israelx.rodriguez.castellanos, francisco.j.pedraza.gonzalez, jose.perez.carranza, meta.mr.watcher, meta.watcher, ross.burton, sgw, yp.kernel.watcher, yp.watcher
Version: 2.0.1   
Target Milestone: 2.2 M3   
Hardware: NUC   
OS: x86_64   
URL: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.0.1.rc2/
Whiteboard: Jethro Backport
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Log test image
none
2.1.1 similar results none

Description Francisco Pedraza 2016-01-22 20:58:20 UTC
Created attachment 2947 [details]
Log test image

When running testimage test_rpm_query_nonroot failed, the next error message was displayed "failed to create new user".

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-15.10"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "genericx86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0.1"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    
meta-selftest     = "HEAD:dd0ba9ea4a11ab15348d4fe3574e4b28784db82f"

Tested on NUC.
Attached you can find logs.
Comment 1 Alexandru Georgescu 2016-01-25 16:12:44 UTC
We've tested locally as well, and the second time didn't reproduce.
Comment 2 Ross Burton 2016-01-25 16:20:15 UTC
Would be helpful if the test wrote the error output instead of just saying "failed".  This would help debug if someone can replicate on demand:

diff --git a/meta/lib/oeqa/runtime/rpm.py b/meta/lib/oeqa/runtime/rpm.py
index 32aae24..37cfb3f 100644
--- a/meta/lib/oeqa/runtime/rpm.py
+++ b/meta/lib/oeqa/runtime/rpm.py
@@ -52,7 +52,7 @@ class RpmInstallRemoveTest(oeRuntimeTest):
     @skipUnlessPassed('test_ssh')
     def test_rpm_query_nonroot(self):
         (status, output) = self.target.run('useradd test1')
-        self.assertTrue(status == 0, msg="Failed to create new user")
+        self.assertTrue(status == 0, msg="Failed to create new user: " + output)
         (status, output) = self.target.run('sudo -u test1 id')
         self.assertTrue('(test1)' in output, msg="Failed to execute as new user")
         (status, output) = self.target.run('sudo -u test1 rpm -qa')
Comment 3 Ross Burton 2016-01-28 15:58:04 UTC
This patch has been sent, should help debug this if/when it happens again.
Comment 4 Ross Burton 2016-03-21 22:58:46 UTC
This hasn't happened since, if we release 2.1 and it still hasn't happened we could close it.
Comment 5 Francisco Pedraza 2016-04-04 23:14:31 UTC
Happened again on 

BUILD: 2.1_M3.RC2: 21823cb466e79540567ad1a43ae6f93d850e4057
ENVIRONMENT: genericx86-64 on NUC
Comment 6 David Rodriguez 2016-07-11 22:32:45 UTC
Created attachment 3280 [details]
2.1.1 similar results
Comment 7 David Rodriguez 2016-07-11 22:33:03 UTC
Similar results on

BUILD: 2.1_1.RC1:98c57bb512ea6790db8604fcf0b88c81651d2ab4 
ENVIRONMENT: genericx86-64 on NUC

log is atached.
Comment 8 Ross Burton 2016-09-08 11:27:25 UTC
9204 is owned by Edwin and he is working on a patch, so close this one.

*** This bug has been marked as a duplicate of bug 9204 ***
Comment 9 Jose Perez C 2016-09-09 16:03:15 UTC
Verified as duplicate