Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Dan, could you swap your patch that kills o_tmpfile_supported() for
this one:
diff --git a/swift/obj/diskfile.py b/swift/obj/diskfile.py
index 769a954..499c26f 100644
--- a/swift/obj/diskfile.py
+++ b/swift/obj/diskfile.py
@@ -2448,6 +2448,8 @@ class BaseDiskFile(object):
fallback_to_mkstemp = True
else:
raise
+ # See https://bugzilla.redhat.com/show_bug.cgi?id=1451173
+ os.fchmod(fd, 0o640)
if not self._use_linkat or fallback_to_mkstemp:
if not exists(self._tmpdir):
mkdirs(self._tmpdir)
Please let me know if it worked.
Actually, never mind. I know what's going on -- see bug 1330705.
Dan, please make sure you have glibc-2.17-160 or better on your ARM
and it should clear the problem. Don't forget to cancel any workarounds
that you had applied to Swift itself. Let me know how it goes.
I'm retargeting this bug to the glibc component. Note that this bug
is tracking the situation with ARM. As soon as glibc-2.17-160 is
avialable for aarch64, this can be tested and closed. The bug 1330705
is for x86, so not a duplicate.
(In reply to Pete Zaitcev from comment #7)
> I'm retargeting this bug to the glibc component. Note that this bug
> is tracking the situation with ARM. As soon as glibc-2.17-160 is
> avialable for aarch64, this can be tested and closed. The bug 1330705
> is for x86, so not a duplicate.
That is not correct, the fix in bug 1330705 applies everywhere.
Description of problem: When uploading an object, object server tracebacks with: File "/usr/lib/python2.7/site-packages/swift/common/utils.py", line 3521, in tpool_reraise#012 raise resp IOError: [Errno 13] Permission denied (txn: tx517e813d724a4481a0e15-005919fd6b) Permissions are good. The problem looks like this on strace: 25227 mkdirat(AT_FDCWD, "/srv/node/1/objects/776/899/c2043124b796e5a2ef58e9b021752899", 0777) = -1 EEXIST (File exists) 25227 newfstatat(AT_FDCWD, "/srv/node/1/objects/776/899/c2043124b796e5a2ef58e9b021752899", {st_mode=S_IFDIR|0755, st_size=6, ...}, 0) = 0 25227 openat(AT_FDCWD, "/srv/node/1/objects/776/899/c2043124b796e5a2ef58e9b021752899", O_WRONLY|O_DIRECTORY|0x400000) = 8 25227 fstatfs64(8, {f_type=0x58465342, f_bsize=4096, f_blocks=13104640, f_bfree=10933659, f_bavail=10933659, f_files=26214400, f_ffree=26055164, f_fsid={2048, 0}, f_namelen=255, f_frsize=4096}) = 0 25227 fstat(8, {st_mode=S_IFREG, st_size=0, ...}) = 0 25227 fallocate(8, 01, 0, 735) = 0 25227 sendto(5, "HTTP/1.1 100 Continue\r\n\r\n", 25, 0, NULL, 0) = 25 25227 recvfrom(5, 0x2d381a4, 735, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable) 25227 ppoll([{fd=10, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=4, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=5, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 3, {59, 999000000}, NULL, 0) = 1 ([{fd=5, revents=POLLIN}], left {59, 997398680}) 25227 recvfrom(5, "# Clear any old environment that"..., 735, 0, NULL, NULL) = 735 25227 write(8, "# Clear any old environment that"..., 735) = 735 25227 futex(0x3ff6c0014f0, FUTEX_WAKE_PRIVATE, 1) = 1 25227 ppoll([{fd=10, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=4, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, {59, 994000000}, NULL, 0 <unfinished ...> 26368 <... futex resumed> ) = 0 26368 fsetxattr(8, "user.swift.metadata", "\x80\x02}q\x01(U\x0eContent-Lengthq\x02U\x03735U\x04nameq\x03U8/AUTH_3f06ccd97f4b444c8d62357dd5a687f0/admintest/stackrcq\x04U\x13X-Object-Meta-MtimeU\x111494875476.888270q\x05U\x04ETagq\x06U 23e2b66bc9643889b1ae0c84b7fa423cq\x07U\x0bX-Timestampq\x08U\x101494880812.53979U\x0cContent-Typeq\x09U\x18application/octet-streamq\x0au.", 262, 0) = -1 EACCES (Permission denied) Filesystem is XFS, xattrs are supported properly. If we modify /usr/lib/python2.7/site-packages/swift/obj/diskfile.py to ignore o_tmpfile_supported(), and always use the legacy tempfile, everything works as expected. Version-Release number of selected component (if applicable): glibc-2.17-157.el7_3.1.aarch64 glibc-headers-2.17-157.el7_3.1.aarch64 kernel-4.5.0-23.el7.aarch64 kernel-headers-4.5.0-23.el7.aarch64 python-swift-2.13.1-0.20170425180451.177fca2.el7.centos.noarch How reproducible: Synchronous. Steps to Reproduce: 1. Install and start Swift 2. swift upload anycont anyobject Actual results: Traceback, object not uploaded Expected results: Object uploaded Additional info: O_TMPFILE on ARM can only be gotten from <asm/fcntl.h>. It's not yet in <bits/fcntl-linux.h>. Values: O_TMPFILE = 0x404000 On x86 O_TMPFILE = 0x410000 In either case O_DIRECTORY is included into O_TMPFILE.