Bug 479830 - %post error when installing rhnmd-5.1.2-1 on RHEL-5
%post error when installing rhnmd-5.1.2-1 on RHEL-5
Status: CLOSED CURRENTRELEASE
Product: Spacewalk
Classification: Community
Component: Clients (Show other bugs)
0.4
All Linux
low Severity medium
: ---
: ---
Assigned To: Milan Zazrivec
Red Hat Satellite QA List
:
Depends On:
Blocks: space04
  Show dependency treegraph
 
Reported: 2009-01-13 09:09 EST by Milan Zazrivec
Modified: 2009-01-22 11:31 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-22 11:31:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Milan Zazrivec 2009-01-13 09:09:47 EST
Description of problem:
* RHEL-5 client system attempting to install rhnmd-5.1.2-1:

# rpm -i rhnmd-5.1.2-1.el5.i386.rpm 
useradd: invalid numeric argument 'apache'
error: %pre(rhnmd-5.1.2-1.el5.i386) scriptlet failed, exit status 3
error:   install: %pre scriptlet failed (2), skipping rhnmd-5.1.2-1.el5
# rpm -qp --scripts rhnmd-5.1.2-1.el5.i386.rpm 
preinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
  getent group rhnmd >/dev/null || groupadd -r rhnmd
  getent passwd rhnmd >/dev/null || \
  useradd -r -g rhnmd -G apache -d /var/lib/rhnmd -s /sbin/tcsh -c "NOCpulse user" rhnmd
fi
# getent group apache
# echo $?
2


Version-Release number of selected component (if applicable):
rhnmd-5.1.2-1
Comment 1 Milan Zazrivec 2009-01-13 09:42:15 EST
Fix contained in f6095e4c8a125c6930c101054a51ff76f51fb53b
New package version: rhnmd-5.1.3-1
Comment 2 Milan Zazrivec 2009-01-13 10:49:00 EST
Actually the correct package version is rhnmd-5.1.4-1 and additional
commits are:

b9e2a9e1153769f246b316d10b07b10f2226fc3c
80ff86a3034f3ca1d56645b1fc56ec42d2a19c07
Comment 3 Miroslav Suchý 2009-01-15 08:21:34 EST
[root@dhcp77-189 ~]# yum install rhnmd
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
Setting up Install Process
Setting up repositories
rhel-i386-server-5        100% |=========================| 1.4 kB    00:00
spacewalk                 100% |=========================| 1.9 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  80 kB    00:00
################################################## 251/251
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for rhnmd to pack into transaction set.
rhnmd-5.1.4-1.el5.i386.rp 100% |=========================| 4.9 kB    00:00
---> Package rhnmd.i386 0:5.1.4-1.el5 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 rhnmd                   i386       5.1.4-1.el5      spacewalk         8.2 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 8.2 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): rhnmd-5.1.4-1.el5. 100% |=========================| 8.2 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: rhnmd                        ######################### [1/1]

Installed: rhnmd.i386 0:5.1.4-1.el5
Complete!
Comment 4 Miroslav Suchý 2009-01-15 08:23:12 EST
VERIFIED

Note You need to log in before you can comment on or make changes to this bug.