Bug 1449107
Summary: | error: %pre(sssd-common-1.15.2-26.el7.x86_64) scriptlet failed, exit status 3 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sudhir Menon <sumenon> | ||||||
Component: | sssd | Assignee: | SSSD Maintainers <sssd-maint> | ||||||
Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.4 | CC: | grajaiya, jhrozek, ksiddiqu, lslebodn, mkosek, mzidek, nsoman, pbrezina, sgoveas, sumenon, tscherf | ||||||
Target Milestone: | rc | Keywords: | Regression, TestBlocker | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | sssd-1.15.2-29.el7 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-08-01 09:06:23 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: | |||||||||
Attachments: |
|
Description
Sudhir Menon
2017-05-09 08:50:33 UTC
Created attachment 1277318 [details]
Upgrade logs from sssd version 24 to 26
Created attachment 1277320 [details]
Upgrade logs from sssd version 21 to 26
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 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. 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? 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 (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 Fix is seen. Verified using sssd-1.15.2-29.el7. 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 |