+++ This bug was initially created as a clone of Bug #1160770 +++ Description of problem: If an openshift app has a cname, the hits to the app's cname are logged with that name in the apache log, and oo-last-access does not count those as "access" for the purpose of keeping an app from idling. Version-Release number of selected component (if applicable): rubygem-openshift-origin-node-1.31.9-1.el6oso.noarch How reproducible: always Steps to Reproduce: 1. create an app 2. add a cname 3. access the site by the cname 4. run oo-last-access Actual results: oo-last-access for the gear will not reflect the hits to the cname Expected results: oo-last-access should count hits to any cname for an app, as well as its "canonical" name. --- Additional comment from Andy Grimm on 2014-11-05 16:02:13 EST --- Possible solution in https://github.com/a13m/origin-server/commit/a4e1a8b7d7c24736c1a29151e16577d605dd48a9 Could use some optimization, but it worked in my test...
Check on puddle [2.2.2/2014-11-26.3] 1. Create app on node. #rhc app create testapp python-2.6 2. Add alias to the app. #rhc alias add testapp.com -a testapp 3. Access the app via the alias #echo testapp.com $node_ip >>/etc/hosts #curl testapp.com 4. Run oo-last-access on node, and check the .last_access #oo-last-access #cat 547d183fe5fed55d02000047 02/Dec/2014:10:07:33 +0800
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-2014-1979.html