Bug 855264
Summary: | Can't "rhc app tail" ruby app error_log file when the server's timezone is not EST. | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | xjia <xjia> |
Component: | Containers | Assignee: | chris alfonso <calfonso> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 1.2.0 | CC: | calfonso, hbrock, jkeck, lmeyer, xtian |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-31 20:31:52 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: |
Description
xjia
2012-09-07 07:21:30 UTC
Guessing the log's timezone is taken from the node locale, but the broker hardcodes EST. Might be best to just remove the tz from the log file name if that's possible. Or make dynamic, not hardcoded. I'm actually not sure why the timezone is on the filename. I went ahead and made the returned client message reflect the actual filename (the real server timezone), using `date +%Z` This has been pushed origin-server/master and to enterprise-server/enterprise-1.1 This is built and now available on http://buildvm-devops.usersys.redhat.com/puddle/build/OpenShiftEnterprise/1.1.x/latest Verify: (1)server: [root@node etc]# date Wed Dec 12 03:14:40 EST 2012 [root@node etc]# [root@node etc]# pwd /etc [root@node etc]# rm -rf localtime [root@node etc]# ln -s /usr/share/zoneinfo/Asia/Hong_Kong localtime [root@node etc]# date Wed Dec 12 16:15:24 HKT 2012 (2)Client: [root@xjia-client 1212]# rhc app create ruby ruby-1.8 -pjia Creating application 'ruby' =========================== Scaling: no Gear Size: default Namespace: jia1 Cartridge: ruby-1.8 Your application's domain name is being propagated worldwide (this might take a minute)... Initialized empty Git repository in /root/1212/ruby/.git/ done ruby @ http://ruby-jia1.example.com/ ==================================== Application Info ================ Gear Size = small Git URL = ssh://5f7ab8cb11904bfe92f7ccec084415e8.com/~/git/ruby.git/ UUID = 5f7ab8cb11904bfe92f7ccec084415e8 SSH URL = ssh://5f7ab8cb11904bfe92f7ccec084415e8.com Created = 3:17 AM Cartridges ========== ruby-1.8 RESULT: Application ruby was created. [root@xjia-client 1212]# curl http://ruby-jia1.example.com/ >> /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5230 100 5230 0 0 29691 0 --:--:-- --:--:-- --:--:-- 30057 [root@xjia-client 1212]# rhc threaddump -a ruby -pjia Application event 'thread-dump' successful Success The thread dump file will be available via: rhc tail ruby -f ruby-1.8/logs/error_log-20121212-000000-HKT -o '-n 250' [root@xjia-client 1212]# rhc tail ruby -f ruby-1.8/logs/error_log-20121212-000000-HKT -o '-n 250' -pjia [Wed Dec 12 16:17:31 2012] [notice] SELinux policy enabled; httpd running as context system_u:system_r:openshift_t:s0:c0,c505 [Wed Dec 12 16:17:31 2012] [notice] mod_bw : Memory Allocated 32 bytes (each conf takes 32 bytes) [Wed Dec 12 16:17:31 2012] [notice] mod_bw : Version 0.8 - Initialized [1 Confs] [Wed Dec 12 16:17:31 2012] [notice] Digest: generating secret for digest authentication ... Version: OpenShiftEnterprise/1.1.x/2012-12-11.3/ 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. http://rhn.redhat.com/errata/RHSA-2013-0220.html |