Bug 8988 - test_rpm_query_nonroot (oeqa.runtime.rpm.RpmInstallRemoveTest) - Failed to create new user
Summary: test_rpm_query_nonroot (oeqa.runtime.rpm.RpmInstallRemoveTest) - Failed to cr...
Status: VERIFIED DUPLICATE of bug 9204
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.0.1
Hardware: NUC x86_64
: Medium+ normal
Target Milestone: 2.2 M3
Assignee: Ross Burton
QA Contact: David Rodriguez
URL: http://autobuilder.yoctoproject.org/p...
Whiteboard: Jethro Backport
Depends on:
Blocks:
 
Reported: 2016-01-22 20:58 UTC by Francisco Pedraza
Modified: 2016-09-09 16:03 UTC (History)
10 users (show)

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


Attachments
Log test image (34.13 KB, text/plain)
2016-01-22 20:58 UTC, Francisco Pedraza
no flags Details
2.1.1 similar results (38.83 KB, text/plain)
2016-07-11 22:32 UTC, David Rodriguez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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