Bug 1351637
| Summary: | [RHEL-7] Metadata validation always fails for marker dir objects during GET | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] 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, rcyriac, rhinduja, rhs-bugs, thiago | |
| Target Milestone: | Development Freeze | |||
| Target Release: | RHGS 3.2.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | swiftonfile-2.3.0-4.el7rhgs | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1378421 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-23 05:13:31 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1351522, 1378421 | |||
|
Description
Prashanth Pai
2016-06-30 13:02:10 UTC
Upstream patch: http://review.gluster.org/#/c/14423/ Upstream change has been merged. Downstream changes have been submitted and merged. rhel7 - https://code.engineering.redhat.com/gerrit/85042 rhel6 - https://code.engineering.redhat.com/gerrit/85059 Verified on marker-objects, on doing a GET on marker object there is not setxattr call for such objects. curl -i http://localhost:8080/v1/AUTH_test/dir1/dirobject2 -X GET strace -ff -p 11860,11883 [pid 11883] lstat("/mnt/gluster-object/test", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 11883] lstat("/mnt/gluster-object/test/..", {st_mode=S_IFDIR|0755, st_size=63, ...}) = 0 [pid 11883] open("/mnt/gluster-object/test/dir1/dirobject", O_RDONLY|O_CLOEXEC) = 7 [pid 11883] fstat(7, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 11883] fgetxattr(7, "user.swift.metadata", 0x0, 0) = 183 [pid 11883] fgetxattr(7, "user.swift.metadata", "{"Content-Length":"0","ETag":"d41d8cd98f00b204e9800998ecf8427e","X-Timestamp":"1481798400.00158","X-Object-Type":"marker_dir","X-Type":"Object","Content-Type":"application/directory"}", 183) = 183 [pid 11883] close(7) = 0 [pid 11883] sendto(5, "HTTP/1.1 200 OK\r\nContent-Length:"..., 289, 0, NULL, 0) = 289 [pid 11883] shutdown(5, SHUT_RDWR) = 0 [pid 11883] close(5) = 0 [pid 11883] poll([{fd=12, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=4, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, 60000) = 1 ([{fd=4, revents=POLLIN}]) [pid 11883] accept(4, {sa_family=AF_INET, sin_port=htons(37488), sin_addr=inet_addr("127.0.0.1")}, [16]) = 5 [pid 11883] fcntl(5, F_GETFL) = 0x2 (flags O_RDWR) [pid 11883] fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 11883] fcntl(5, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) [pid 11883] fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 [pid 11883] accept(4, 0x7ffda869aa90, [16]) = -1 EAGAIN (Resource temporarily unavailable) [pid 11883] recvfrom(5, "GET /test/0/AUTH_test/dir1/dirob"..., 65536, 0, NULL, NULL) = 342 [pid 11883] getsockname(5, {sa_family=AF_INET, sin_port=htons(6010), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0 [pid 11883] lstat("/mnt/gluster-object/test", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 11883] lstat("/mnt/gluster-object/test/..", {st_mode=S_IFDIR|0755, st_size=63, ...}) = 0 [pid 11883] open("/mnt/gluster-object/test/dir1/dirobject2", O_RDONLY|O_CLOEXEC) = 7 [pid 11883] fstat(7, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 11883] fgetxattr(7, "user.swift.metadata", 0x0, 0) = 183 [pid 11883] fgetxattr(7, "user.swift.metadata", "{"Content-Length":"0","ETag":"d41d8cd98f00b204e9800998ecf8427e","X-Timestamp":"1481798452.64525","X-Object-Type":"marker_dir","X-Type":"Object","Content-Type":"application/directory"}", 183) = 183 [pid 11883] close(7) = 0 [pid 11883] sendto(5, "HTTP/1.1 200 OK\r\nContent-Length:"..., 289, 0, NULL, 0) = 289 [pid 11883] shutdown(5, SHUT_RDWR) = 0 [pid 11883] close(5) = 0 [pid 11883] poll([{fd=12, events=POLLIN|POLLPRI|POLLERR|POLLHUP}, {fd=4, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 2, 60000 moving the BZ to 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-0488.html |