| Summary: | [RHEL-6] Unlink() is called on non-existent path for DELETE requests | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | Prashanth Pai <ppai> |
| Component: | gluster-swift | Assignee: | Prashanth Pai <ppai> |
| Status: | CLOSED ERRATA | QA Contact: | surabhi <sbhaloth> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | rhgs-3.1 | CC: | amukherj, ppai, rcyriac, rhinduja, rhs-bugs, sasundar, sbhaloth, storage-qa-internal, thiago |
| Target Milestone: | Development Freeze | ||
| Target Release: | RHGS 3.2.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | swiftonfile-1.13.1-9.el6rhs | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1351620 | Environment: | |
| Last Closed: | 2017-03-23 04:56:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1351620 | ||
| Bug Blocks: | 1351522 | ||
|
Description
Prashanth Pai
2016-09-22 11:29:15 UTC
Downstream changes have been submitted and merged. rhel6 - https://code.engineering.redhat.com/gerrit/#/c/85055/ curl -i http://localhost:8080/v1/AUTH_test/c1/fake -X DELETE HTTP/1.1 404 Not Found Content-Length: 70 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx6b6e29dff17247f697a4e-00585279a3 Date: Thu, 15 Dec 2016 11:08:19 GMT <html><h1>Not Found</h1><p>The resource could not be found.</p></html>[root@dhcp35-235 swift]# strace -ff -p 8542,8568 [pid 8568] poll([{fd=8, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=12, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 3, 60000) = 1 ([{fd=8, revents=POLLIN}]) [pid 8568] recvfrom(8, "DELETE /test/0/AUTH_test/c1/fake"..., 65536, 0, NULL, NULL) = 382 [pid 8568] getsockname(8, {sa_family=AF_INET, sin_port=htons(6010), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 [pid 8568] gettimeofday({1481800066, 714857}, NULL) = 0 [pid 8568] gettimeofday({1481800066, 714914}, NULL) = 0 [pid 8568] gettimeofday({1481800066, 715134}, NULL) = 0 [pid 8568] lstat("/mnt/gluster-object/test", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 8568] lstat("/mnt/gluster-object/test/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 8568] getxattr("/mnt/gluster-object/test/c1/fake", "user.swift.metadata", 0x0, 0) = -1 ENOENT (No such file or directory) [pid 8568] gettimeofday({1481800066, 722018}, NULL) = 0 [pid 8568] gettimeofday({1481800066, 722131}, NULL) = 0 [pid 8568] sendto(8, "HTTP/1.1 404 Not Found\r\nContent-"..., 212, 0, NULL, 0) = 212 [pid 8568] gettimeofday({1481800066, 722345}, NULL) = 0 [pid 8568] gettimeofday({1481800066, 722397}, NULL) = 0 [pid 8568] shutdown(8, SHUT_RDWR) = 0 [pid 8568] close(8) = 0 [pid 8568] gettimeofday({1481800066, 722694}, NULL) = 0 [pid 8568] poll([{fd=12, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, 60000 Verified that unlink call is not made on non-existent objects. marking it verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0489.html |