Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 532469

Summary: [1965846] samba-common and policycoreutils dependency problem
Product: Red Hat Enterprise Linux 4 Reporter: Issue Tracker <tao>
Component: sambaAssignee: Simo Sorce <ssorce>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: gdeschner, tao, vincew
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-03 16:10:37 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 Issue Tracker 2009-11-02 14:25:37 UTC
Escalated to Bugzilla from IssueTracker

Comment 1 Issue Tracker 2009-11-02 14:25:41 UTC
Event posted on 11-02-2009 06:57am EST by jramirez

>All Issues: Problem Description
>---------------------------------------------------
>1. Time and date of problem:
-
>2. System architecture(s):
 x86 and x86_64

>3. Provide a clear and concise problem description as it is understood at the time of escalation. Please be as specific as possible in your >description. Do not use the generic term "hang", as that can mean many things.

If you try to upgrade samba-common from samba-common-3.0.33-0.17.el4 to samba-common-3.0.33-0.18.el4_8 you get a RPM install error, because in the %postin it tries to use restorecon and since policycoreutils it is not a dependency and it is not installed, you get an error message and the old version is not removed from the system.

>   Observed behavior:

up2date samba-common

Fetching Obsoletes list for channel: rhel-x86_64-as-4...
########################################

Fetching rpm headers...
########################################

Name                                    Version              Rel               Arch
----------------------------------------------------------------------------------------
samba-common                            3.0.33              0.18.el4_8          i386
samba-common                            3.0.33              0.18.el4_8          x86_64


Testing package set / solving RPM inter-dependencies...
########################################
samba-common-3.0.33-0.18.el ########################## Done.
samba-common-3.0.33-0.18.el ########################## Done.
samba-3.0.33-0.18.el4_8.x86 ########################## Done.
samba-client-3.0.33-0.18.el ########################## Done.
Preparing              ########################################### [100%]

Installing...
   1:samba-common           ########################################### [100%]
/var/tmp/rpm-tmp.64676: line 7: restorecon: command not found
error: %post(samba-common-3.0.33-0.18.el4_8.x86_64) scriptlet failed, exit status 127
   2:samba-common           ########################################### [100%]
/var/tmp/rpm-tmp.33841: line 7: restorecon: command not found
error: %post(samba-common-3.0.33-0.18.el4_8.i386) scriptlet failed, exit status 127
   3:samba                  ########################################### [100%]
   4:samba-client           ########################################### [100%]
There was a fatal RPM install error. The message was:
Failed running rpm transaction

>   Desired behavior:

	Include policycoreutils as a depenency in samba-common so it can use restorecon in the %postint

>4. Specific action requested of SEG:

	Determine if this is a bug.	

>5. Is a defect (bug) in the product suspected? yes/no

Yes

>   Bugzilla number (if one already exists):
>6. Does a proposed patch exist? yes/no
>   If yes, attach patch, making sure it is in unified diff format (diff -pruN)
>7. What is the impact to the customer when they experience this problem? This is especially important for severity one and two issues:
>   Example: "This system houses our accounts payable database. When the system crashes we are unable to process payroll, and other payable >functions. This is especially critical as we approach end of our quarter."
>

Not big impact this time.

>All Issues: Supporting Information
>------------------------------------------------------
>1. Other actions already taken in working the problem (tech-list posting, google searches, fulltext search, consultation with another engineer, >etc.):
>   Relevant data found (if any):
>2. Attach sosreport.
>3. Attach other supporting data (if any).
>4. Provide issue reproduction information, including location and access of reproducer machine, if available.
>   Location and access information for reproducer machine:
>   Steps to reproduce the problem:
In a system with no policycoreutils installed and samba-common-3.0.33-0.17.el4 installed, just:

1. up2date samba-common

If the system has policycoreutils installed:

1. rpm -e policycoreutils setools selinux-policy-targeted
2. up2date samba-common

>      or
>   Ticket update containing steps to reproduce the problem:
>5. Known hot-fix packages on the system:
>6. Customer applied changes from the last 30 days: 
This event sent from IssueTracker by vincew  [Support Engineering Group]
 issue 360812

Comment 5 Simo Sorce 2009-11-03 16:10:37 UTC

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