Bug 782867

Summary: file conflict with rsyslog on centos6
Product: [Fedora] Fedora EPEL Reporter: Christopher Wood <unregenerate>
Component: syslog-ngAssignee: Jose Pedro Oliveira <jose.p.oliveira.oss>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: jose.p.oliveira.oss, mrunge, rayvd, silfreed
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-18 18:20:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Wood 2012-01-18 18:12:45 UTC
Description of problem:

The syslog-ng (from EPEL) and rsyslog (from CentOS 6) packages both install /etc/logrotate.d/syslog.

I'm filing this here since it's a packaging file conflict, or at least some kind of conflict. If there's no conflicts/replaces so the packages can be installed on the same host (as they can), they at least should install separate files.



Error Summary
-------------


This causes problems for puppet 2.6.2, for one:

debug: Package[syslog-ng](provider=yum): Ensuring => present
debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d 0 -e 0 -y install syslog-ng'
err: /Stage[main]/Syslogng::Hera/Syslogng::Ng[ng]/Package[syslog-ng]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install syslog-ng' returned 1: 

Transaction Check Error:
  file /etc/logrotate.d/syslog from install of syslog-ng-3.2.5-2.el6.i686 conflicts with file from package rsyslog-4.6.2-2.el6.i686


But when I 'yum install syslog-ng' from the console, I get:

# yum install syslog-ng
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package syslog-ng.i686 0:3.2.5-2.el6 set to be updated
--> Processing Dependency: libevtlog.so.0 for package: syslog-ng-3.2.5-2.el6.i686
--> Processing Dependency: libnet.so.1 for package: syslog-ng-3.2.5-2.el6.i686
--> Running transaction check
---> Package eventlog.i686 0:0.2.12-1.el6 set to be updated
---> Package libnet.i686 0:1.1.5-1.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================================================================================
 Package                                                              Arch                                                            Version                                                                 Repository                                                       Size
====================================================================================================================================================================================================================================================================================
Installing:
 syslog-ng                                                            i686                                                            3.2.5-2.el6                                                             epel                                                            441 k
Installing for dependencies:
 eventlog                                                             i686                                                            0.2.12-1.el6                                                            epel                                                             17 k
 libnet                                                               i686                                                            1.1.5-1.el6                                                             epel                                                             55 k

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

Total size: 513 k
Installed size: 1.6 M
Is this ok [y/N]: 




Version-Release number of selected component (if applicable):

syslog-ng-3.2.5-2.el6.i686
rsyslog-4.6.2-2.el6.i686


How reproducible:

Every time.


Steps to Reproduce:
1. On a fresh CentOS 6 installation, install this EPEL repo in /etc/yum.repos.d:

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
baseurl=http://repos.pvt.primus.ca/epel/$releasever/$basearch
enabled=1
gpgcheck=0

2. install puppet (from epel)

3) copy this manifest into somewhere useful, like /tmp/x.pp:

#----------
package { 'syslog-ng': }
#----------

3. run puppet:

puppet /tmp/x.pp
  


Actual results:

Can't install due to the file conflict.




Expected results:

One of two scenarios:

a) installing syslog-ng works fine because there is no file conflict
b) installing syslog-ng works fine because it replaces rsyslog on the system


Additional info:

Comment 1 Jose Pedro Oliveira 2012-01-18 18:20:29 UTC

*** This bug has been marked as a duplicate of bug 767761 ***