Red Hat Bugzilla – Bug 983780
oo-last-access got old datestamp from web socket proxy log
Last modified: 2015-05-14 19:23:52 EDT
Description of problem:
Apache log had newer timestamps for an application but the web socket proxy log had a really old one. The oo-last-access command used the web socket proxy's old timestamp because it read it last rather than keep the newer one from the Apache log that it read in first.
Note: this problem is easily reversible; the dates should be compared.
Version-Release number of selected component (if applicable):
Always under the right conditions
Steps to Reproduce:
1. Create an app
2. Access it via port 80
3. Access it via port 8000
4. Edit /var/log/node-web-proxy/access.log and change the log entry for your gear to be several months ago.
5. Run oo-last-access
6. Inspect the last_access file for you gear.
The old timestamp from step 4.
The new timestamp from the Apache log for step 2.
Commit pushed to master at https://github.com/openshift/origin-server
Bug 983780 - parse log files separately and compare timestamps on merge
Checked on devenv_3491, issue has been fixed.
1. Remove all files under .last_access
2. Visit the 80 and 8000 port for the app
3. Modify the Access date to several months ago.
># cat /var/log/node-web-proxy/access.log
# Log opened @ Fri Jul 12 2013 00:55:19 GMT-0400 (EDT)
# Log opened @ Fri Jul 12 2013 01:47:12 GMT-0400 (EDT)
18.104.22.168 app1-bmengdev.dev.rhcloud.com - - [12/Feb/2013:05:38:25 -0400] "GET / HTTP/1.1" 200 61 "-" "Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0" (81ms) +
22.214.171.124 app1-bmengdev.dev.rhcloud.com - - [12/Feb/2013:05:38:26 -0400] "GET /favicon.ico HTTP/1.1" 404 301 "-" "Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0" (10ms) +
126.96.36.199 app1-bmengdev.dev.rhcloud.com - - [12/Feb/2013:05:38:26 -0400] "GET /favicon.ico HTTP/1.1" 404 301 "-" "Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0" (56ms) +
[root@ip-10-152-168-54 .last_access]# oo-last-access
[root@ip-10-152-168-54 .last_access]# cat 51dfcdd11e9ab97f2500000b
Move bug to verified.