[Fuego] problem with Functional.rpm test

Tim.Bird at sony.com Tim.Bird at sony.com
Fri Sep 7 00:57:37 UTC 2018



> -----Original Message-----
> From: Zheng, Ruoqin 
> Hi Tim:
> 
>       1. Well, this paper has shown the similar problem
>           https://bugzilla.redhat.com/show_bug.cgi?id=980100
> 
>          From the log you provided, it seems that when the rpm try to mkdir of
> /home/test, it fails
>          Maybe, it's a filesystem problem, but I don't have much experience on
> it.
> 
>       2. Besides, it may be caused by a rpm bug, here is the rpm version in my
> machine, what about your machines?
>           # rpm --version
>           RPM version 4.14.1

Mine is RPM version 4.12.0.1

> 
>        3. At last, could you provide me more detail information about rpm
> installation using:
>            #rpm -ivvh test-manual-1.2.3.noarch.rpm

Here's the portion of the run phase with this change:
##### doing fuego phase: run ########
WARNING: test log file parameter empty, so will use default
#!/bin/sh
for i in tests/*.sh; do
    sh $i
done
Usage: rpm [OPTION...]
 -> rpm01: TEST-PASS
ufdio:       1 reads,    15439 total bytes in 0.000020 secs
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
D: ============== test-manual-1.2.3.noarch.rpm
D: loading keyring from pubkeys in /home/fuego/.rpmdb/pubkeys/*.key
D: couldn't find any keys in /home/fuego/.rpmdb/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /home/fuego/.rpmdb cdb:0x401
D: opening  db index       /home/fuego/.rpmdb/Packages 0x400 mode=0x0
D: locked   db index       /home/fuego/.rpmdb/Packages
D: opening  db index       /home/fuego/.rpmdb/Name 0x400 mode=0x0
D: Expected size:         3293 = lead(96)+sigs(920)+pad(0)+data(2277)
D:   Actual size:         3293
warning: test-manual-1.2.3.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID c08249da: NOKEY
ufdio:       5 reads,     3144 total bytes in 0.000022 secs
D: 	added binary package [0]
D: found 0 source and 1 binary packages
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, depth)
D:     0    0    0    1   +test-manual-1.2.3-20130226.noarch
D: installing binary packages
D: closed   db index       /home/fuego/.rpmdb/Packages
D: closed   db index       /home/fuego/.rpmdb/Name
D: closed   db environment /home/fuego/.rpmdb
D: opening  db environment /home/fuego/.rpmdb cdb:0x401
D: opening  db index       /home/fuego/.rpmdb/Packages (none) mode=0x42
D: sanity checking 1 elements
D: opening  db index       /home/fuego/.rpmdb/Name (none) mode=0x42
D: running pre-transaction scripts
D: computing 3 file fingerprints
D: opening  db index       /home/fuego/.rpmdb/Packages (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Basenames (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Group (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Requirename (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Providename (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Conflictname (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Obsoletename (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Triggername (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Dirnames (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Installtid (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Sigmd5 (none) mode=0x42
D: opening  db index       /home/fuego/.rpmdb/Sha1header (none) mode=0x42
Preparing...                          D: computing file dispositions
D: 0x00000811     4096    334813326    112824310 /home
########################################
D: ========== +++ test-manual-1.2.3-20130226 noarch-linux 0x0
D: Expected size:         3293 = lead(96)+sigs(920)+pad(0)+data(2277)
D:   Actual size:         3293
D: test-manual-1.2.3-20130226.noarch: Header V4 DSA/SHA1 Signature, key ID c08249da: NOKEY
D:   install: test-manual-1.2.3-20130226.noarch has 3 files
Updating / installing...
test-manual-1.2.3-20130226            D: ========== Directories not explicitly included in package:
D:          0 /home/
D: ==========
warning: user test does not exist - using root
warning: group test does not exist - using root
D: create     040755  1 (   0,   0)     0 /home/test
fdio:       4 reads,      124 total bytes in 0.000018 secs
########################################
error: unpacking of archive failed on file /home/test: cpio: mkdir
ufdio:       5 reads,     3144 total bytes in 0.000003 secs
error: test-manual-1.2.3-20130226.noarch: install failed
D: running post-transaction scripts
D: closed   db index       /home/fuego/.rpmdb/Packages
D: closed   db index       /home/fuego/.rpmdb/Sha1header
D: closed   db index       /home/fuego/.rpmdb/Sigmd5
D: closed   db index       /home/fuego/.rpmdb/Installtid
D: closed   db index       /home/fuego/.rpmdb/Dirnames
D: closed   db index       /home/fuego/.rpmdb/Triggername
D: closed   db index       /home/fuego/.rpmdb/Obsoletename
D: closed   db index       /home/fuego/.rpmdb/Conflictname
D: closed   db index       /home/fuego/.rpmdb/Providename
D: closed   db index       /home/fuego/.rpmdb/Requirename
D: closed   db index       /home/fuego/.rpmdb/Group
D: closed   db index       /home/fuego/.rpmdb/Basenames
D: closed   db index       /home/fuego/.rpmdb/Name
D: closed   db index       /home/fuego/.rpmdb/Packages
D: closed   db environment /home/fuego/.rpmdb
 -> rpm02: TEST-FAIL
package test-manual-1.2.3.noarch is not installed
 -> rpm03: TEST-PASS
##### doing fuego phase: post_test ########
> 
>            Note: I have provide my installation log in the attachment

This log is from a board where the test user does not have root privileges.
Your latest patch, to add the NEED_ROOT dependency, prevents the
test from running on this board now.

(I disabled the depcendency check to get the log above).

I think this can be attributed to some issue with running the
test as non-root, so I think we can ignore this issue for now.

Sorry for the noise.

Regards,
 -- Tim

> 
> Thank you
> 
> --------------------------------------------------
> Zheng Ruoqin
> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
> ADDR.: No.6 Wenzhu Road, Software Avenue,
>        Nanjing, 210012, China
> MAIL : zhengrq.fnst at cn.fujistu.com
> 
> 
> -----Original Message-----
> From: Tim.Bird at sony.com [mailto:Tim.Bird at sony.com]
> Sent: Wednesday, September 05, 2018 8:49 AM
> To: Zheng, Ruoqin/郑 若钦 <zhengrq.fnst at cn.fujitsu.com>
> Cc: fuego at lists.linuxfoundation.org
> Subject: problem with Functional.rpm test
> 
> Zheng,
> 
> I get the following error running the rpm_02.sh testcase on a few of my
> machines.
> 
> Here is the error from the test log:
> ---------
> rpm: RPM should not be used directly install RPM packages, use Alien
> instead!
> rpm: However assuming you know what you are doing...
> warning: test-manual-1.2.3.noarch.rpm: Header V4 DSA/SHA1 Signature, key
> ID c08249da: NOKEY
> Preparing...                          ########################################
> Updating / installing...
> test-manual-1.2.3-20130226            warning: user test does not exist - using
> root
> warning: group test does not exist - using root
> ########################################
> error: unpacking of archive failed on file /home/test: cpio: mkdir
> error: test-manual-1.2.3-20130226.noarch: install failed  -> rpm02: TEST-FAIL
> -----------
> Can you please check in to this?  If needed, let me know and I can add some
> additional diagnostics to see what the problem is.
> 
> Thanks,
>  -- Tim
> 
> 
> 
> 



More information about the Fuego mailing list