Bug 1493160
Summary: | otopi fails on every error message from yum | ||
---|---|---|---|
Product: | [oVirt] otopi | Reporter: | Yedidyah Bar David <didi> |
Component: | Plugins.packagers | Assignee: | Yedidyah Bar David <didi> |
Status: | CLOSED NOTABUG | QA Contact: | Pavel Stehlik <pstehlik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | master | CC: | bugs, oourfali, sbonazzo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-24 05:57:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yedidyah Bar David
2017-09-19 13:42:15 UTC
Managed to prepare a fix, so moving to POST. I still think it's a risk. The logic to decide if a scriptlet should fail the installation or not seems to be in [1][2]. Meaning, if the error (rc!=0) is in one of the scriptlets %pre, %preun, %pretrans, or in Verify, we should fail, otherwise just say it's a non-fatal error. Should otopi adopt same behavior? Or keep existing, where every error from yum is fatal and causes otopi to rollback and abort? [1] https://github.com/rpm-software-management/rpm/blob/master/lib/transaction.c#L1455 [2] https://github.com/rpm-software-management/yum/blob/master/yum/rpmtrans.py#L610 (In reply to Yedidyah Bar David from comment #1) > Managed to prepare a fix, so moving to POST. > > I still think it's a risk. > > The logic to decide if a scriptlet should fail the installation or not seems > to be in [1][2]. And looks like the dilemma is still open also in yum: # FIXME - what else should we do here? raise a failure and abort? I would rather fail and rollback, I agree changing this is a risk and prefer to get scriptlet fixed instead of just ignore them. Very well. Summary: If you run otopi (e.g. engine-setup, host-deploy, hosted-engine --deploy) and see something like that: Yum Non-fatal POSTIN scriptlet failure in rpm package $package Then: 1. you should likely see more errors later 2. otopi did fail, aborted, and rolled back changes it already did (or at least tried to), even though yum decided it's a "non-fatal" failure. |