HomeDefectsLIN9-3992
Fixed

LIN9-3992 : CLONE - failed to prevent install two same rpm package in system

Created: Apr 18, 2017    Updated: Aug 21, 2017
Resolved Date: Aug 10, 2017
Found In Version: unknown
Fix Version: 9.0.0.7
Severity: Severe
Applicable for: Wind River Linux 9
Component/s: Build & Config, Userspace

Description

Normally, when we try to install the same rpm in a system, it should show the following error:

/***************************************************************/
root@qemu1:~# rpm -Uvh ntp-tickadj-4.2.8p4-r0.0.corei7_64.rpm 
hrtimer: interrupt took 3752646 ns
Preparing...                ########################################### [100%]
error: Install/Erase problems:
    package ntp-tickadj-4.2.8p4-r0.0.corei7_64 is already installed
/***************************************************************/

But in WRLinux7/8  project, when I tried to install the same rpm pacakge at the same time via the two console, this pckage can be installed into system twice, and it will show:
root@qemu1:~# rpm -q ntp-tickadj
ntp-tickadj-4.2.8p4-r0.0.corei7_64
ntp-tickadj-4.2.8p4-r0.0.corei7_64


Tested on Federa 18, even install them at the same time, it will show eror, and only install one package, how to avoid this kind of issue in our product?

Steps to Reproduce

This issue can be met on WRL7/WRL8, we can reproduce this issue with a qemu project,  start qemu with network enable
make start-target TOPTS="-t -in 1"

and then ssh to qemu via another console

in two console, we install a rpm pckage with the following command at the same time:
rpm -Uvh ntp-tickadj-4.2.8p4-r0.0.corei7_64.rpm