Bug 615763
Summary: | yum ignores posttrans or kills error messages on posttrans?? | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mamoru TASAKA <mtasaka> | ||||||
Component: | yum | Assignee: | Seth Vidal <skvidal> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 19 | CC: | ffesti, james.antill, maxamillion, metherid, pmatilai, rdieter, rtc, slukasik, tim.lauridsen | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-05-30 07:58:43 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: | |||||||||
Attachments: |
|
Description
Mamoru TASAKA
2010-07-18 15:17:23 UTC
when you run: yum history info after one of those transactions, do you see the posttrans output? this is the same as rhel6 bug: https://bugzilla.redhat.com/show_bug.cgi?id=606239 Well, [root@localhost i686]# rpm -q fedora-logos fedora-logos-13.0.3-1.fc14.noarch [root@localhost i686]# yum -y --nogpgcheck localinstall ./fedora-logos-13.0.3-2.fc14.noarch.rpm Loaded plugins: downloadonly Setting up Local Package Process Examining ./fedora-logos-13.0.3-2.fc14.noarch.rpm: fedora-logos-13.0.3-2.fc14.noarch Marking ./fedora-logos-13.0.3-2.fc14.noarch.rpm as an update to fedora-logos-13.0.3-1.fc14.noarch Resolving Dependencies --> Running transaction check ---> Package fedora-logos.noarch 0:13.0.3-2.fc14 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================== Package Arch Version Repository Size ================================================================================================================== Updating: fedora-logos noarch 13.0.3-2.fc14 /fedora-logos-13.0.3-2.fc14.noarch 1.9 M Transaction Summary ================================================================================================================== Upgrade 1 Package(s) Total size: 1.9 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Updating : fedora-logos-13.0.3-2.fc14.noarch 1/2 Cleanup : fedora-logos-13.0.3-1.fc14.noarch 2/2 Non-fatal POSTUN scriptlet failure in rpm package fedora-logos Updated: fedora-logos.noarch 0:13.0.3-2.fc14 Complete! [root@localhost i686]# yum history list Loaded plugins: downloadonly ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 108 | <tasaka1> | 2010-07-20 23:47 | Update | 1 < 107 | <tasaka1> | 2010-07-20 15:19 | I, U | 72 >< please run: yum history info 108 not history list Ah, okay. [root@localhost i686]# yum history info 108 Loaded plugins: downloadonly Transaction ID : 108 Begin time : Tue Jul 20 23:47:19 2010 Begin rpmdb : 2581:b59ca73fccd62dd75656e9696085d695f48b21c2 End time : 23:49:42 2010 (143 seconds) End rpmdb : 2581:b678749fc6ecb0eb6b340496991ee3b54f2482cd User : <tasaka1> Return-Code : Success Command Line : -y --nogpgcheck localinstall ./fedora-logos-13.0.3-2.fc14.noarch.rpm Transaction performed with: Installed rpm-4.8.1-3.fc14.i686 Installed yum-3.2.27-18.fc14.noarch Installed yum-metadata-parser-1.1.4-1.fc13.i686 Packages Altered: Updated fedora-logos-13.0.3-1.fc14.noarch Update 13.0.3-2.fc14.noarch history info comment #5 https://bugzilla.redhat.com/show_bug.cgi?id=606239 is the issue. This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Created attachment 603935 [details]
Take advantage of rpm >= 4.10 script start/stop callbacks
The attached patch fixes the missing %posttrans (and %postun) scriptlet output when rpm >= 4.10 is used. With the new script-callbacks, yum would be able to log the actual scriptlet name and RPMCALLBACK_SCRIPT_ERROR becomes redundant as the exit code is passed to RPMCALLBACK_SCRIPT_STOP but for simplicity wrt compatibility issues, this just ensures scriptlet output gets logged on SCRIPT_STOP events. Didn't notice anything breaking in my brief testing.
Patch also sent to yum-devel but either it ended up in /dev/null or is just taking ages to get there.
yum-3.4.3-32.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/yum-3.4.3-32.fc18 yum-3.4.3-34.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/yum-3.4.3-34.fc18 Package yum-3.4.3-34.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing yum-3.4.3-34.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-12756/yum-3.4.3-34.fc18 then log in and leave karma (feedback). yum-3.4.3-36.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/yum-3.4.3-36.fc18 This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 (In reply to Fedora Update System from comment #12) > yum-3.4.3-36.fc18 has been submitted as an update for Fedora 18. > https://admin.fedoraproject.org/updates/yum-3.4.3-36.fc18 Ie long since fixed but nobody remembered to close the bug -> CLOSED ERRATA. *** Bug 919151 has been marked as a duplicate of this bug. *** |