BIND 10 #1897: b10-stats-httpd and HTTP logging
BIND 10 Development
do-not-reply at isc.org
Thu Jan 24 06:31:27 UTC 2013
#1897: b10-stats-httpd and HTTP logging
-------------------------------------+-------------------------------------
Reporter: jreed | Owner: jelte
Type: enhancement | Status:
Priority: medium | reviewing
Component: statistics | Milestone:
Keywords: | Sprint-20130205
Sensitive: 0 | Resolution:
Sub-Project: Core | CVSS Scoring:
Estimated Difficulty: 4 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Changes (by naokikambe):
* owner: naokikambe => jelte
Comment:
Hello,
I had two errors in lettuce as following.
{{{
And wait for bind10 stderr message STATHTTPD_STARTED
# features/terrain/steps.py:34
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-
packages/lettuce-0.2.9-py2.6.egg/lettuce/core.py", line 125, in __call__
ret = self.function(self.step, *args, **kw)
File "/home/kambe/git/tests/lettuce/features/terrain/steps.py", line
52, in wait_for_stderr_message
(found, line) = world.processes.wait_for_stderr_str(process_name,
strings, new, int(times))
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 351, in wait_for_stderr_str
matches)
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 251, in wait_for_stderr_str
strings, only_new, matches)
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 235, in _wait_for_output_str
assert False, "Timeout waiting for process output: " +
str(strings)
AssertionError: Timeout waiting for process output:
[u'STATHTTPD_STARTED']
}}}
{{{
And wait for new bind10 stderr message localhost "GET / HTTP/1.0" 302
- # features/terrain/steps.py:34
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-
packages/lettuce-0.2.9-py2.6.egg/lettuce/core.py", line 125, in __call__
ret = self.function(self.step, *args, **kw)
File "/home/kambe/git/tests/lettuce/features/terrain/steps.py", line
52, in wait_for_stderr_message
(found, line) = world.processes.wait_for_stderr_str(process_name,
strings, new, int(times))
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 351, in wait_for_stderr_str
matches)
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 251, in wait_for_stderr_str
strings, only_new, matches)
File "/home/kambe/git/tests/lettuce/features/terrain/terrain.py",
line 235, in _wait_for_output_str
assert False, "Timeout waiting for process output: " +
str(strings)
AssertionError: Timeout waiting for process output: [u'localhost']
}}}
One is due to missing renaming the log identifier in
`features/bindctl_commands.feature`. Please also rename `STATHTTPD_` to
`STATSHTTPD_`.
The other one is due to my machine name. My machine name happens to be
`r52.local` which is resolved into `127.0.0.1` by `/etc/hosts`. So in my
python, `socket.getfqdn('127.0.0.1')` indicates the machine
name(`r52.local`) as following. `socket.getfqdn()` is used by http.server
when logging.
{{{
Python 3.1.4 (default, Aug 7 2012, 13:32:23)
[GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getfqdn('127.0.0.1')
'r52.local'
>>>
}}}
The proposed change log entry looks okay for me. Thank you for adding me
at the entry.
So please check the above codes and revise if needed. Thanks,
--
Ticket URL: <http://bind10.isc.org/ticket/1897#comment:13>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list