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 1449107 - error: %pre(sssd-common-1.15.2-26.el7.x86_64) scriptlet failed, exit status 3
Summary: error: %pre(sssd-common-1.15.2-26.el7.x86_64) scriptlet failed, exit status 3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-09 08:50 UTC by Sudhir Menon
Modified: 2017-08-01 09:06 UTC (History)
11 users (show)

Fixed In Version: sssd-1.15.2-29.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 09:06:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Upgrade logs from sssd version 24 to 26 (60.67 KB, text/plain)
2017-05-09 08:51 UTC, Sudhir Menon
no flags Details
Upgrade logs from sssd version 21 to 26 (27.63 KB, text/plain)
2017-05-09 08:52 UTC, Sudhir Menon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2294 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2017-08-01 12:39:55 UTC

Description Sudhir Menon 2017-05-09 08:50:33 UTC
Description of problem: error: %pre(sssd-common-1.15.2-26.el7.x86_64) scriptlet failed, exit status 3


Version-Release number of selected component (if applicable):
sssd-common.1.15.2-26.el7

How reproducible: Always

Steps to Reproduce: 
Upgrade from sssd-common.1.15.2-24.el7 to sssd-common.1.15.2-26.el7 fails

Actual results:
1. Upgrade from version 21 to 26 passes.
2. upgrade from version 24 to 26 fails.

Expected results:
Upgrade from version 24 to 24 should work fine without any errors.

Additional info: 

1. /tmp/sssd.24-26.txt shows the error while update is done.
2. /tmp/sssd.21-26.txt shows that update works fine.

Comment 2 Sudhir Menon 2017-05-09 08:51:49 UTC
Created attachment 1277318 [details]
Upgrade logs from sssd version 24 to 26

Comment 3 Sudhir Menon 2017-05-09 08:52:49 UTC
Created attachment 1277320 [details]
Upgrade logs from sssd version 21 to 26

Comment 7 Lukas Slebodnik 2017-05-11 09:02:41 UTC
Fix is to ignore errors in %pre scriptlet.
Because if sssd is not running then we cannot restart it later

It was previously ignored as well
/bin/systemctl status sssd.service >/dev/null 2>&1 && touch /var/tmp/sssd.upgrade || :


diff --git a/sssd.spec b/sssd.spec
index 89b8869..741cbd9 100644
--- a/sssd.spec
+++ b/sssd.spec
@@ -1165,7 +1165,7 @@ getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "Us
 %pre common
 getent group sssd >/dev/null || groupadd -r sssd
 getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "User for sssd" sssd
-/bin/systemctl is-active --quiet sssd.service && touch /var/tmp/sssd_is_running
+/bin/systemctl is-active --quiet sssd.service && touch /var/tmp/sssd_is_running || :
 
 %post common
 %systemd_post sssd.service

Comment 8 Lukas Slebodnik 2017-05-11 09:04:49 UTC
BTW it is not related to the initial version.
You can reproduce it even with sssd-common.1.15.2-21.el7. But sssd must not be running.

The problem is that test for upgrade for BZ1439457 does not cover this test-case.

Comment 9 Jakub Hrozek 2017-05-11 09:12:09 UTC
Thanks.

Steeve, Sudhir, I can of course build you a test package, but would it work to build a scratch build first that you could put into both CI and test https://bugzilla.redhat.com/show_bug.cgi?id=1439457 so that we can be sure we won't cause another issue?

Also, can you qa_ack this bug, please?

Comment 10 Steeve Goveas 2017-05-11 10:10:07 UTC
It will be tough to test this in CI, but we can test the scratch build manually. That should be a a good test to avoid anything from breaking.
Namita has already ack'd

Comment 11 Jakub Hrozek 2017-05-11 10:25:57 UTC
(In reply to Steeve Goveas from comment #10)
> It will be tough to test this in CI, but we can test the scratch build
> manually. That should be a a good test to avoid anything from breaking.
> Namita has already ack'd

OK, could you then please try this build:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13178470

Comment 14 Sudhir Menon 2017-05-15 12:59:46 UTC
Fix is seen. Verified using sssd-1.15.2-29.el7.

Comment 15 errata-xmlrpc 2017-08-01 09:06:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2294


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