Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1378837

Summary: semodule: Failed! message is displayed while updating selinux-policy-targeted package.
Product: Red Hat Enterprise Linux 7 Reporter: Nikhil Dehadrai <ndehadra>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-141.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 08:17:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nikhil Dehadrai 2016-09-23 10:57:33 UTC
Description of problem:
During ipa upgrade process from RHEL 7.0 to RHEL 7.3, semodule:  Failed! message is displayed while updating selinux-policy-targeted package.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.13.1-100.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Setup IPA server on RHEL 7.0
2. Setup repo links for RHEL 7.3  in order to upgrade ipa server(in my case ipa-server.x86_64 0:4.4.0-9.el7).
3. Initiate upgrade prcess by running command "yum -y update 'ipa*' sssd"

Actual results:
1. After step3, Yum update process completes successfully, and ipa server is updated successfully.
2. During yum process following message is displayed at console:

Updating   : selinux-policy-3.13.1-100.el7.noarch                                                             92/271 
  Updating   : selinux-policy-targeted-3.13.1-100.el7.noarch                                                    93/271 
Re-declaration of type pkcsslotd_t
Failed to create node
Bad type declaration at /etc/selinux/targeted/tmp/modules/400/pkcsslotd/cil:1
semodule:  Failed!
  Updating   : bind-dyndb-ldap-10.0-5.el7.x86_64                                                                94/271 
Enabling SELinux boolean named_write_master_zones
  Updating   : setools-libs-3.3.8-1.1.el7.x86_64                                                                95/271 
  Updating   : policycoreutils-python-2.5-8.el7.x86_64                                                          96/271 
  Updating   : pytalloc-2.1.6-1.el7.x86_64


Expected results:
No error message should be observed.

Comment 1 Nikhil Dehadrai 2016-09-23 10:59:15 UTC
Correction for IPA server version used in my case it is : 

IPA server version: ipa-server-4.4.0-12.el7.x86_64
Bind-ldap: bind-dyndb-ldap-10.0-5.el7.x86_64

Comment 2 Petr Lautrbach 2016-09-23 11:08:58 UTC
Seems that pkcsslotd module was renamed to pkcs since RHEL-7.0 so the module store upgrade script can't correctly move it to the new store and creates a duplicate with priority 400.