Project

General

Profile

Actions

Bug #4119

closed

On mixed 32/64 bits RHEL/CentOS 5, dependencies of rudder-agent may not be installed

Added by Dennis Cabooter about 11 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
22
Name check:
Fix check:
Regression:

Description

Dependencies of rudder-agent 2.7.5 are not installed on RHEL 5:

  • openssl
  • pcre
  • bzip2-libs

I'm talking about a fresh install. Rudder-agent gets installed in a Kickstart post-install script. However it did work with rudder-agent 2.6.

UPDATE: as explained in the comments, the problem is on system with mixed 32 and 64 bits package, when the dependencies are installed in the bad architecture. RPM is not able to see the problem, for it dependencies are satisfied. This is an RPM limitation, and for now, we don't have mean to workaround it in the package requirement definition, but installing the correct dependencies solve the issue.


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #6243: Install rudder-agent on minimal centos5 failsRejectedActions
Actions #1

Updated by Vincent MEMBRÉ about 11 years ago

Hi Dennis,

Do you have any logs from your installation attempt?

Is it happening every time you try to install 2.7 agent with your kickstart?

And if you install yourself rudder agent using yum, is it happening too?

Actions #2

Updated by Vincent MEMBRÉ about 11 years ago

  • Status changed from New to Discussion
  • Assignee set to Dennis Cabooter
Actions #3

Updated by Dennis Cabooter about 11 years ago

Hi Vincent,

The way of installing rudder-agent with my Kickstart post-install script hasn't changed since rudder-agent 2.5. With 2.7.6 it stopped working.

Actually my Kickstart post-install script invokes Yum:

#!/bin/bash
#
# Name:     rudder.sh
# Synopsis: Red Hat post-install script
# Author:   Dennis Cabooter <Dennis.Cabooter@snow.nl>
#

# Global vars
FILE_SERVER="10.0.0.2" 
POLICY_HUB="rudder.example.com" 

# Get required repos
wget --no-proxy \
  http://${FILE_SERVER}/kickstart/files/rhel/winz-rudder.repo \
  -O /etc/yum.repos.d/rudder.repo
wget --no-proxy \
  http://${FILE_SERVER}/kickstart/files/rhel/winz-rhel.repo \
  -O /etc/yum.repos.d/winz-rhel.repo

# Import GPG key
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

# Install & remove packages
yum -y install rsyslog rudder-agent

if rpm -q rsyslog > /dev/null 2>&1; then
  yum -y remove sysklogd
fi

# Configure Rudder Agent
tee /var/rudder/cfengine-community/policy_server.dat <<EOF
$POLICY_HUB
EOF

# Startup configs
chkconfig rsyslog on
chkconfig rudder-agent on

The local repo file looks as follows:

[winz-rudder]
name=Rudder 2.7 Repository
baseurl=http://yum.example.com/mirror/rudder-2.7/
gpgcheck=0

The captured output log is as follows:

--2013-10-31 12:33:58--  http://10.0.0.2/kickstart/files/rhel/winz-rudder.repo
Connecting to 10.0.0.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105
Saving to: `/etc/yum.repos.d/rudder.repo'

     0K                                                       100% 6.26M=0s

2013-10-31 12:33:58 (6.26 MB/s) - `/etc/yum.repos.d/rudder.repo' saved [105/105]

--2013-10-31 12:33:58--  http://10.0.0.2/kickstart/files/rhel/winz-rhel.repo
Connecting to 172.16.1.130:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 183
Saving to: `/etc/yum.repos.d/winz-rhel.repo'

     0K                                                       100% 11.6M=0s

2013-10-31 12:33:58 (11.6 MB/s) - `/etc/yum.repos.d/winz-rhel.repo' saved [183/183]

Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rsyslog.x86_64 0:3.22.1-7.el5 set to be updated
---> Package rudder-agent.i386 1398866025:2.7.5.release-1.EL.5 set to be updated
---> Package rudder-agent.x86_64 1398866025:2.7.5.release-1.EL.5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch     Version                            Repository     Size
================================================================================
Installing:
 rsyslog        x86_64   3.22.1-7.el5                       winz-rhel     453 k
 rudder-agent   i386     1398866025:2.7.5.release-1.EL.5    winz-rudder    22 M
 rudder-agent   x86_64   1398866025:2.7.5.release-1.EL.5    winz-rudder    23 M

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 45 M
Downloading Packages:
--------------------------------------------------------------------------------
Total                                            41 MB/s |  45 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
^M  Installing     : rsyslog                                                  1/3 
^M  Installing     : rudder-agent                                             2/3Making sure that the permissions on the CFEngine key directory are correct...
CFEngine binaries copied to workdir
********************************************************************************
rudder-agent has been installed (not started). This host can be a Rudder node.
To get started, configure your Rudder server's hostname and launch the agent:
# echo 'rudder.server' > /var/rudder/cfengine-community/policy_server.dat
# service rudder-agent start
This node will then appear in the Rudder web interface under 'Accept new nodes'.
********************************************************************************
INFO: Creating keys for CFEngine agent... Done.
INFO: A back up copy of the /etc/init.d/rudder-agent has been created in /var/backups/rudder
INFO: A back up copy of the /etc/default/rudder-agent has been created in /var/backups/rudder
INFO: A back up copy of the /etc/cron.d/rudder-agent has been created in /var/backups/rudder

^M  Installing     : rudder-agent                                             3/3Making sure that the permissions on the CFEngine key directory are correct...
rudder-agent[2164]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[2167]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[2168]: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent[2169]: [INFO] can't read PID file, not stopping cf-serverd
rudder-agent[2170]: [INFO] Halting CFEngine Community cf-execd...
rudder-agent[2171]: [INFO] can't read PID file, not stopping cf-execd
rudder-agent[2177]: [INFO] Found no CFEngine Community cf-serverd processes running
rudder-agent[2184]: [INFO] Found no CFEngine Community cf-execd processes running
CFEngine binaries copied to workdir
rudder-agent[2203]: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent[2206]: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent[2207]: [INFO] Launching CFEngine Community cf-serverd...
/var/rudder/cfengine-community/bin/cf-serverd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2327]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
/var/rudder/cfengine-community/bin/cf-serverd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2449]: [ALERT] no PID file for cf-serverd after 60 seconds. Trying again...
/var/rudder/cfengine-community/bin/cf-serverd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2492]: [ALERT] no PID file for cf-serverd after 70 seconds
rudder-agent[2493]: [INFO] Launching CFEngine Community cf-execd...
/var/rudder/cfengine-community/bin/cf-execd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2613]: [ALERT] no PID file for cf-execd after 30 seconds. Trying again...
/var/rudder/cfengine-community/bin/cf-execd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2735]: [ALERT] no PID file for cf-execd after 60 seconds. Trying again...
/var/rudder/cfengine-community/bin/cf-execd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
rudder-agent[2778]: [ALERT] no PID file for cf-execd after 70 seconds

Installed:
  rsyslog.x86_64 0:3.22.1-7.el5                                                 
  rudder-agent.i386 1398866025:2.7.5.release-1.EL.5                             
  rudder-agent.x86_64 1398866025:2.7.5.release-1.EL.5                           

Complete!
Loaded plugins: security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package sysklogd.x86_64 0:1.4.1-46.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch           Version                Repository         Size
================================================================================
Removing:
 sysklogd         x86_64         1.4.1-46.el5           installed         125 k

Transaction Summary
================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
^M  Erasing        : sysklogd                                                 1/1

Removed:
  sysklogd.x86_64 0:1.4.1-46.el5                                                

Complete!
rudder.example.com
Actions #4

Updated by Dennis Cabooter about 11 years ago

I've tested some more bits and pieces:

  • I disabled the post-install script and installed rudder-agent manually afterwards, which worked fine
  • I did another kickstart without installing rudder-agent and checked for pcre, openssl and bzip2-libs and they were installed
  • I re-enabled the kickstart post-install script, added a "rpm -qa | grep pcre", "rpm -qa | grep openssl" and "rpm -qa | grep bzip2-libs" to the post-install script and the packages turned out to be installed

The rudder-agent install needs libraries it somehow can't find during Kickstart post-install. When I once set up my Kickstart to install rudder-agent (back with 2.5 and 2.6) it did work. Now it doesn't.

For now I will add "yum -y install pcre bzip2-libs openssl" to keep the rudder-agent install happy.

Actions #5

Updated by Jonathan CLARKE about 11 years ago

  • Assignee changed from Dennis Cabooter to Matthieu CERDA

The key lies in these lines:

---> Package rudder-agent.i386 1398866025:2.7.5.release-1.EL.5 set to be updated
---> Package rudder-agent.x86_64 1398866025:2.7.5.release-1.EL.5 set to be updated

This system has both 32 and 64 bits versions of the rudder-agent package installed. The package's dependencies only specify "pcre", not "pcre 32 bits" or "pcre 64 bits", so once one version is installed, yum doesn't worry about them anymore. The error you are seeing is most likely because you do have 64 bit versions of pcre, bzip2-libs and openssl, but the binary cf-agent remaining on your system is the 32 bit one.

A simple workaround would be to force yum to install the 64 bit package in your kickstart script: yum -y install rudder-agent.x86_64.

However, this indicates that there is something that could be done better in our packages, either:
  • Force preference of the 64 bit package over 32, when possible
  • Have each package depend on the ** bits versions of it's dependencies

This needs looking into.

Actions #6

Updated by Nicolas CHARLES about 11 years ago

A similar problem occurs when trying to install RHEL5 packageon RHEL6
lkco had the problem, which looks similar:

< lkco> ncharles: so, rudder agent on rhel6 start failed : /var/rudder/cfengine-community/bin/cf-serverd: error while loading shared libraries: libcrypto.so.6: cannot open shared object file
< lkco> ncharles: missing a dependency openssl098e on rudder-agent for rhel6
< lkco> arf i use bad repository
< lkco> i copy paste the /etc/yum.repos.d/rudder.repo file but i test the install on rhel6 (not rhel5)
< ncharles> ha, so you installed rhel5 package on rhel6
< lkco> yep :-/

Actions #7

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.7.6 to 2.7.7
Actions #8

Updated by Dennis Cabooter about 11 years ago

Jonathan CLARKE wrote:

The key lies in these lines:

[...]

This system has both 32 and 64 bits versions of the rudder-agent package installed. The package's dependencies only specify "pcre", not "pcre 32 bits" or "pcre 64 bits", so once one version is installed, yum doesn't worry about them anymore. The error you are seeing is most likely because you do have 64 bit versions of pcre, bzip2-libs and openssl, but the binary cf-agent remaining on your system is the 32 bit one.

A simple workaround would be to force yum to install the 64 bit package in your kickstart script: yum -y install rudder-agent.x86_64.

However, this indicates that there is something that could be done better in our packages, either:
  • Force preference of the 64 bit package over 32, when possible
  • Have each package depend on the ** bits versions of it's dependencies

This needs looking into.

I can confirm adding .x86_64 does solve the problem.

Actions #9

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.7.7 to 2.7.8
Actions #10

Updated by Vincent MEMBRÉ almost 11 years ago

  • Target version changed from 2.7.8 to 2.8.3

Since 2.7.* is not supported anymore, targeting in 2.8

Actions #11

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.8.3 to 2.8.4
Actions #12

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.8.4 to 133
Actions #13

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 133 to 2.9.5
Actions #14

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 2.9.5 to 2.9.6
Actions #15

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.6 to 2.9.7
Actions #16

Updated by Jonathan CLARKE over 10 years ago

  • Target version changed from 2.9.7 to 150
Actions #17

Updated by Vincent MEMBRÉ over 10 years ago

  • Target version changed from 150 to 2.10.4
Actions #18

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.10.4 to 2.10.5
Actions #19

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.5 to 2.10.6
Actions #20

Updated by Matthieu CERDA about 10 years ago

  • Target version changed from 2.10.6 to 2.10.7
Actions #21

Updated by Vincent MEMBRÉ about 10 years ago

  • Target version changed from 2.10.7 to 2.10.8
Actions #22

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.8 to 2.10.9
Actions #23

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.9 to 2.10.10
Actions #24

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.10 to 2.10.11
Actions #25

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.11 to 2.10.12
Actions #26

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.12 to 2.10.13
Actions #27

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.13 to 2.10.14
Actions #28

Updated by Benoît PECCATTE over 9 years ago

  • Category set to Agent
Actions #29

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.14 to 2.10.15
Actions #30

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #31

Updated by Vincent MEMBRÉ over 9 years ago

  • Target version changed from 2.10.16 to 2.10.17
Actions #32

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.17 to 2.10.18
Actions #33

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.18 to 2.10.19
Actions #34

Updated by Vincent MEMBRÉ about 9 years ago

  • Target version changed from 2.10.19 to 2.10.20
Actions #35

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.10.20 to 2.11.18
Actions #36

Updated by Vincent MEMBRÉ almost 9 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #37

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #38

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #39

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #40

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #41

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #42

Updated by Alexis Mousset over 8 years ago

  • Category changed from Agent to Packaging
  • Assignee deleted (Matthieu CERDA)
Actions #43

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 2.11.24 to 308
Actions #44

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 308 to 3.1.14
Actions #45

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #46

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #47

Updated by Vincent MEMBRÉ about 8 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #48

Updated by François ARMAND about 8 years ago

  • Subject changed from Dependencies of rudder-agent 2.7.5 are not installed on RHEL 5 to On mixed 34/64 bits RPM based system, dependencies of rudder-agent may not be installed
  • Description updated (diff)
  • Status changed from Discussion to New
Actions #49

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #50

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #51

Updated by Benoît PECCATTE over 7 years ago

  • Subject changed from On mixed 34/64 bits RPM based system, dependencies of rudder-agent may not be installed to On mixed 32/64 bits RPM based system, dependencies of rudder-agent may not be installed
Actions #52

Updated by François ARMAND over 7 years ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Infrequent - complex configurations | third party integrations
  • Priority set to 0
Actions #53

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #54

Updated by Benoît PECCATTE over 7 years ago

  • Has duplicate Bug #6243: Install rudder-agent on minimal centos5 fails added
Actions #55

Updated by Alexis Mousset over 7 years ago

  • Subject changed from On mixed 32/64 bits RPM based system, dependencies of rudder-agent may not be installed to On mixed 32/64 bits RHEL/CentOS 5, dependencies of rudder-agent may not be installed
Actions #56

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #57

Updated by François ARMAND over 7 years ago

  • Priority changed from 0 to 5
Actions #58

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #59

Updated by Benoît PECCATTE over 7 years ago

  • Priority changed from 5 to 19
Actions #60

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #61

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.23 to 3.1.24
  • Priority changed from 19 to 20
Actions #62

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #63

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 3.1.25 to 387
Actions #64

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 387 to 4.1.10
Actions #65

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.1.10 to 4.1.11
Actions #66

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.11 to 4.1.12
  • Priority changed from 20 to 21
Actions #67

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.12 to 4.1.13
Actions #68

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 4.1.13 to 4.1.14
Actions #69

Updated by Benoît PECCATTE over 6 years ago

  • Target version changed from 4.1.14 to 4.1.15
Actions #70

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from New to Rejected
  • Priority changed from 21 to 22

This should not be the case anymore since we now package our dependencies on rhel5

Actions

Also available in: Atom PDF