Bug 1053985 - 3.13.0-0.rc8 fails to install from command line
Summary: 3.13.0-0.rc8 fails to install from command line
Keywords:
Status: CLOSED DUPLICATE of bug 1054350
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 05:01 UTC by Chris Murphy
Modified: 2014-01-16 19:44 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-16 19:44:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
rpm -vv output (399.05 KB, text/plain)
2014-01-16 05:14 UTC, Chris Murphy
no flags Details
strace dnf update (2.53 MB, text/plain)
2014-01-16 15:05 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2014-01-16 05:01:00 UTC
Description of problem:
dnf update kernel fails with various errors

Version-Release number of selected component (if applicable):
dnf-0.4.11-1.fc20.noarch
python-hawkey-0.4.7-1.fc20.x86_64
hawkey-0.4.7-1.fc20.x86_64

How reproducible:
Always with rc8, have not tried regressions.

Steps to Reproduce:
1. dnf update kernel-3.13.0-0.rc8.git0.1.fc21.x86_64.rpm


Actual results:
kernel installed, initramfs not created, old kernels not cleaned up

Expected results:
kernel and initramfs installed, old kernels cleaned up

Additional info:

[root@f20s ~]# ll
total 31264
-rw-------. 1 root root     1376 Dec 16 20:44 anaconda-ks.cfg
-rw-r--r--. 1 root root 32009300 Jan 15 10:55 kernel-3.13.0-0.rc8.git0.1.fc21.x86_64.rpm
[root@f20s ~]# dnf update kernel-3.13.0-0.rc8.git0.1.fc21.x86_64.rpm 
Resolving dependencies
--> Starting dependency resolution
---> Package kernel.x86_64 3.13.0-0.rc8.git0.1.fc21 will be reinstalled
---> Package kernel.x86_64 3.13.0-0.rc5.git0.1.fc21 will be erased
--> Finished dependency resolution
Dependencies resolved.

============================================================================================================================================
 Package                    Arch                       Version                                       Repository                        Size
============================================================================================================================================
Reinstalling:
 kernel                     x86_64                     3.13.0-0.rc8.git0.1.fc21                      @commandline                      31 M
Removing:
 kernel                     x86_64                     3.13.0-0.rc5.git0.1.fc21                      @System                          132 M

Transaction Summary
============================================================================================================================================
Remove  1 Package

Total size: 31 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Reinstalling: kernel-3.13.0-0.rc8.git0.1.fc21.x86_64                                                                                  1/3 
warning: %post(kernel-3.13.0-0.rc8.git0.1.fc21.x86_64) scriptlet failed, exit status 127
Non-fatal POSTIN scriptlet failure in rpm package kernel
error: %preun(kernel-3.13.0-0.rc5.git0.1.fc21.x86_64) scriptlet failed, exit status 127
Error in PREUN scriptlet in rpm package kernel
error: kernel-3.13.0-0.rc5.git0.1.fc21.x86_64: erase failed
error: kernel-3.13.0-0.rc8.git0.1.fc21.x86_64: erase failed
warning: %posttrans(kernel-3.13.0-0.rc8.git0.1.fc21.x86_64) scriptlet failed, exit status 127
Non-fatal POSTTRANS scriptlet failure in rpm package kernel
  Verifying   : kernel-3.13.0-0.rc8.git0.1.fc21.x86_64                                                                                  1/3 
kernel-3.13.0-0.rc5.git0.1.fc21.x86_64 was supposed to be removed but is not!
  Verifying   : kernel-3.13.0-0.rc5.git0.1.fc21.x86_64                                                                                  2/3 
  Verifying   : kernel-3.13.0-0.rc8.git0.1.fc21.x86_64                                                                                  3/3 
Complete!

Comment 1 Chris Murphy 2014-01-16 05:06:28 UTC
yum reinstall kernel-3.13.0-0.rc8.git0.1.fc21.x86_64.rpm
...
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : kernel-3.13.0-0.rc8.git0.1.fc21.x86_64                                                                                   1/1 
warning: %post(kernel-3.13.0-0.rc8.git0.1.fc21.x86_64) scriptlet failed, exit status 127
Non-fatal POSTIN scriptlet failure in rpm package kernel-3.13.0-0.rc8.git0.1.fc21.x86_64
warning: %posttrans(kernel-3.13.0-0.rc8.git0.1.fc21.x86_64) scriptlet failed, exit status 127
Non-fatal POSTTRANS scriptlet failure in rpm package kernel-3.13.0-0.rc8.git0.1.fc21.x86_64
  Verifying  : kernel-3.13.0-0.rc8.git0.1.fc21.x86_64                                                                                   1/1 

Installed:
  kernel.x86_64 0:3.13.0-0.rc8.git0.1.fc21   

I previously yum installed rc7 and rc6, those worked. Since then, other packages have been updated so it's possible this is a problem with one of those rather than the kernel package.

Comment 2 Chris Murphy 2014-01-16 05:14:47 UTC
Created attachment 850863 [details]
rpm -vv output

Comment 3 Josh Boyer 2014-01-16 12:46:28 UTC
We haven't changed these scriptlets at all.  Did you update systemd, dracut, grubby, grub, bash, etc?  Is your box actually stock F20, or are you on rawhide or pulling in updates?

There's one other person reporting similar issues but they also sent an email to test list basically showing that their machine is broken.  Maybe an RPM or shell update is something you two have in common?  Their's is bug 1053948

Comment 4 Chris Murphy 2014-01-16 15:00:30 UTC
It's a current F20 with u-t enabled, plus 3.13 kernels which is the only F21 component.

systemd-208-9.fc20.x86_64
grub2-efi-2.00-25.fc20.x86_64
grubby-8.28-1.fc20.x86_64
dracut-034-64.git20131205.fc20.1.x86_64
bash-4.2.45-4.fc20.x86_64

Those are all the same as on F20 media, they haven't been updated.

In between a successful rc7 and the failing rc8, dnf became irritable in the middle of downloading updates, claiming it had checked all mirrors and couldn't find any available. I waited a day, and it persisted until I whacked it with a hammer 'dnf clean all' and it applied a bunch of updates at that point. But no errors.

Now, when I "dnf update" all it wants to do is remove 3.13.0-0.rc5 but that fails with the same scriplet errors. I'll attach strace.

Comment 5 Chris Murphy 2014-01-16 15:05:33 UTC
Created attachment 851137 [details]
strace dnf update

This is strace output after saying 'y' to the single task listed by dnf, which is to remove kernel 3.13.0-0.rc5. This doesn't tell me anything about what's broken. This is on Btrfs with snapshots so I can easily roll back but some ordinary operation has caused breakage.


pread(6, "\0\0\0\0\1\0\0\0P\t\0\0Q\t\0\0O\t\0\0\1\0\346\17\0\7ax\0- B"..., 4096, 9764864) = 4096
pread(6, "\0\0\0\0\1\0\0\0O\t\0\0P\t\0\0N\t\0\0\1\0\346\17\0\7\0\0\0\0\0\0"..., 4096, 9760768) = 4096
pread(6, "\0\0\0\0\1\0\0\0N\t\0\0O\t\0\0\0\0\0\0\1\0V\f\0\7_MESSA"..., 4096, 9756672) = 4096
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/var", {st_mode=S_IFDIR|0755, st_size=184, ...}) = 0
stat("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=128, ...}) = 0
umask(077)                              = 022
open("/var/tmp/rpm-tmp.itNNIQ", O_RDWR|O_CREAT|O_EXCL, 0600) = 37
umask(022)                              = 077
dup(37)                                 = 38
close(37)                               = 0
write(38, "/bin/kernel-install remove 3.13."..., 115) = 115
close(38)                               = 0
dup(23)                                 = 37
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f592ce45a10) = 1081
wait4(1081, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], 0, NULL) = 1081
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1081, si_status=127, si_utime=0, si_stime=0} ---
write(21, "error: %preun(kernel-3.13.0-0.rc"..., 88) = 88
close(37)                               = 0
unlink("/var/tmp/rpm-tmp.itNNIQ")       = 0
fstat(20, {st_mode=S_IFREG|0600, st_size=88, ...}) = 0
lseek(20, 0, SEEK_CUR)                  = 0
read(20, "error: %preun(kernel-3.13.0-0.rc"..., 4096) = 88
read(20, "", 4096)                      = 0
write(1, "error: %preun(kernel-3.13.0-0.rc"..., 88error: %preun(kernel-3.13.0-0.rc5.git0.1.fc21.x86_64) scriptlet failed, exit status 127

Comment 6 Josh Boyer 2014-01-16 15:26:12 UTC
It would be helpful if you could roll back to a working state and then install each update from updates-testing and see if it breaks then.  Based on some of the other emails on the test list thread, it seems like something other than the usual suspects is causing RPM scriptlets to fail in multiple packages.  selinux, pcre, libpcap, initscripts, and file are all pending there.

Comment 7 Josh Boyer 2014-01-16 19:44:18 UTC
I'm going to mark this as a dupe of the selinux bug.  Seems very related.

*** This bug has been marked as a duplicate of bug 1054350 ***


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