RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1283931 - kexec-tools fails to update when using NFS share
Summary: kexec-tools fails to update when using NFS share
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kexec-tools
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Xunlei Pang
QA Contact: Shaohui Deng
URL:
Whiteboard:
Depends On:
Blocks: 1295826 1296180
TreeView+ depends on / blocked
 
Reported: 2015-11-20 10:15 UTC by Bruno Goncalves
Modified: 2016-04-22 05:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-26 03:38:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2015-11-20 10:15:45 UTC
Description of problem:
Update kexec-tools from RHEL-7.1() to RHEL-7.2 () fails.

Error unpacking rpm package kexec-tools-2.0.7-38.el7.x86_64
error: unpacking of archive failed on file /var/crash: cpio: chmod

Version-Release number of selected component (if applicable):
kexec-tools-2.0.7-19.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.configure kdump to use an NFS share

2.Boot the server

3.Confirm the NFS share is mounted on /var/crash

4.Try to update kexec-tools


Actual results:
Running transaction
  Updating   : kexec-tools-2.0.7-38.el7.x86_64                                                                                                                                                                 1/2 
Error unpacking rpm package kexec-tools-2.0.7-38.el7.x86_64
error: unpacking of archive failed on file /var/crash: cpio: chmod
kexec-tools-2.0.7-19.el7.x86_64 was supposed to be removed but is not!
  Verifying  : kexec-tools-2.0.7-19.el7.x86_64                                                                                                                                                                 1/2 
  Verifying  : kexec-tools-2.0.7-38.el7.x86_64                                                                                                                                                                 2/2 

Failed:
  kexec-tools.x86_64 0:2.0.7-19.el7                                                                        kexec-tools.x86_64 0:2.0.7-38.el7                                                                       

Complete!

Comment 2 Bruno Goncalves 2015-11-20 10:20:12 UTC
The update works after umount /var/crash.

# rpm -q kexec-tools
kexec-tools-2.0.7-38.el7.x86_64

Comment 4 Xunlei Pang 2016-01-13 09:47:41 UTC
Hi Bruno,

Seems there's some permission problem with /etc/exports on your NFS server.

I tried with the "no_root_squash" NFS option on my NFS server, the update progress properly. Then I changed "no_root_squash" to "root_squash", met the same problem as your descibed in this bug.

So maybe you can try "no_root_squash" and test it.

Regards,
Xunlei

Comment 5 Bruno Goncalves 2016-01-13 10:44:30 UTC
Our NFS server is NetApp, and they do not support no_root_squash, but they allow some other configuration that I could try [1].

But is this really a configuration issue? Note the NFS dump on RHEL-7.1 and 7.2 work well and they are saved to our NFS volume, just during the tool update that the problem happens...

https://kb.netapp.com/support/index?page=content&id=1011504&actp=RSS

If this is just how the update works, I think we can close this as not a bug.

Comment 6 Dave Young 2016-01-14 01:22:35 UTC
Hi, Bruno

Can you try mount nfs dir which is created by other packages? See if they handle the update right. I feel it is a general issue not only for kexec-tools.

Thanks
Dave

Comment 7 Bruno Goncalves 2016-01-14 09:30:20 UTC
Correct Dave this does not seem to be related to kexec-tools itself.

I've reproduced the problem using util-tools when updating from RHEL-7.1 to 7.2 version.



# mount <NFS share> /usr/share/doc/util-linux-2.23.2/


# yum update util-linux
<snip>
  Updating   : util-linux-2.23.2-26.el7.x86_64                                                                                                                                          5/28 
Error unpacking rpm package util-linux-2.23.2-26.el7.x86_64
error: unpacking of archive failed on file /usr/share/doc/util-linux-2.23.2: cpio: chmod
error: util-linux-2.23.2-26.el7.x86_64: install failed
  Updating   : systemd-219-19.el7.x86_64

Comment 8 Dave Young 2016-01-15 01:52:59 UTC
Hi, Bruno

Thanks for verifying, so I think we can regard it as a general issue and this is how update works. Close the bug is good to me.

Thanks
Dave

Comment 9 Xunlei Pang 2016-01-26 03:38:36 UTC
We regard this as a general issue, so close it as "not a bug".


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