Bug #43133 | If upgrade from 5.0.66 to 5.0.72 upgrade fails, but yum returns it completes | ||
---|---|---|---|
Submitted: | 24 Feb 2009 10:10 | Modified: | 29 Jun 2010 11:20 |
Reporter: | Sveta Smirnova | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Packaging | Severity: | S3 (Non-critical) |
Version: | 5.0.72 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[24 Feb 2009 10:10]
Sveta Smirnova
[24 Feb 2009 10:11]
Sveta Smirnova
With RPM it fails fine.
[7 Aug 2009 16:19]
Joerg Bruehe
The base issue is "yum" not reacting to the failure of a "%pre" script which is contained in our RPM and fails on intention. (Yes, it was silly to fail in this case, but there may come other cases where it is correct to fail.) I don't see what we can do here, to me this is a bug in "yum": 1) Your report quotes that the scriptlet exited non-zero: error: %pre(MySQL-server-enterprise-gpl-5.0.72sp1-0.rhel5.x86_64) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping MySQL-server-enterprise-gpl-5.0.72sp1-0.rhel5 2) You report later: "With RPM it fails fine." Trying Google to find information about "yum" handling installation problems, I got plenty of results, the most significant one for this problem seems to be: http://www.bluequartz.us/phpBB2/viewtopic.php?t=74694&sid=67f2c7226a8125aa4c06133913f5abbc It points to "yum" bug 427866, whose mails I found here: https://bugzilla.redhat.com/show_bug.cgi?id=427866 Please check those texts, I found comment#4 with this quote: | Aborting the transaction on problems is basically | just as bad as continuing, | you'll end up with an inconsistent system anyhow. Also note comment#8: | Grab exit code from rpm transaction | The attached patch makes yum emit a warning if some errors | occurred during the transaction. The exit codes from ts.run() | of current bindings are "creative" but at least yum will warn | you instead of happily saying "Complete!" if something went | belly-up while in transaction. Feel free to tune the exact | message to your liking... If this is still yum's current position, I consider this "broken by design", but see no way to fix this. For now, I put this bug to "need feedback" to give you a chance to comment. If you find some information that we can force "yum" to really exit with an error, please tell me. If we don't find any such hint, this must be closed as "not a bug". Aside: Bug#42953, which caused this trouble, is now treated as a duplicate of bug#45534, and that is fixed, so this specific cause shouldn't happen in the future.
[10 Aug 2009 14:19]
Joerg Bruehe
Hmm - setting it to "need feedback" got lost Friday, doing it now. My position is still to consider this a "yum" bug.