Proxy logs wrong request method when validating SLO segments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Critical
|
Janie Richling |
Bug Description
During segment validation, the object servers log things like
Jan 17 20:30:11 saio object-6020: 127.0.0.1 - - [17/Jan/
Jan 17 20:30:11 saio object-6020: STDERR: 127.0.0.1 - - [17/Jan/2017 20:30:11] "HEAD /sdb6/32/
Jan 17 20:30:11 saio object-6020: 127.0.0.1 - - [17/Jan/
Jan 17 20:30:11 saio object-6020: STDERR: 127.0.0.1 - - [17/Jan/2017 20:30:11] "HEAD /sdb2/85/
But the proxy logs the same subrequests as *PUTs* (I guess reflecting the client method):
Jan 17 20:30:11 saio proxy-server: - - 17/Jan/
Jan 17 20:30:11 saio proxy-server: - - 17/Jan/
This is confusing and misleading; I don't think any other middlewares behave that way. *Maybe* copy does some re-writing for POST-as-COPY?
Changed in swift: | |
importance: | Undecided → Medium |
Changed in swift: | |
importance: | Medium → High |
Changed in swift: | |
importance: | High → Critical |
Changed in swift: | |
assignee: | nobody → Janie Richling (jrichli) |
I see the same behavior. It logs the wrong method and also sends an invalid statsd metric (having PUT returning 200 feels weird in the dashboards... :)).
The behavior changed between 2.7 and 2.12 (no issue running 2.7, started since upgrade to 2.12)
The same behavior is observed from the copy middleware:
Feb 13 18:15:48 localhost proxy-server: Copying object from /v1/AUTH_ 76ad686e615fa7b 08e18884214f71d 8c/default/ a to /v1/AUTH_ 76ad686e615fa7b 08e18884214f71d 8c/default/ b (txn: tx174c1300d31e4 c7d8b09f- 0058a1e9c4)
Feb 13 18:15:49 localhost proxy-server: - - 13/Feb/ 2017/17/ 15/49 PUT /v1/AUTH_ 76ad686e615fa7b 08e18884214f71d 8c HTTP/1.0 204 - Swift - - - - tx174c1300d31e4 c7d8b09f- 0058a1e9c4 - 0.0120 - - 1487006149. 166141033 1487006149. 178188086 -
Feb 13 18:15:55 localhost proxy-server: 1.2.3.4 - 13/Feb/ 2017/17/ 15/55 PUT /v1/AUTH_ 76ad686e615fa7b 08e18884214f71d 8c/default/ a HTTP/1.0 200 - - - - 863570 67913cc02d9742c dae9f35c9378d5e 04 tx174c1300d31e4 c7d8b09f- 0058a1e9c4 - 7.3553 SSC - 1487006148. 156651020 1487006155. 511914968 1
Feb 13 18:15:59 localhost proxy-server: 1.2.3.4 5.196.84.6 13/Feb/ 2017/17/ 15/59 PUT /v1/AUTH_ 76ad686e615fa7b 08e18884214f71d 8c/default/ b HTTP/1.0 201 - - - - - 67913cc02d9742c dae9f35c9378d5e 04 tx174c1300d31e4 c7d8b09f- 0058a1e9c4 - 11.4158 - - 1487006148. 153633118 1487006159. 569468021 -