BIND 10 #627: bind10 crash if cfgmgr can't read configuration
BIND 10 Development
do-not-reply at isc.org
Thu Feb 24 18:14:05 UTC 2011
#627: bind10 crash if cfgmgr can't read configuration
------------------------------------+---------------------------------
Reporter: jreed | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: Unclassified | Keywords:
Sensitive: 0 | Estimated Number of Hours: 0
Add Hours to Ticket: 0 | Billable?: 1
Total Hours: 0 | Internal?: 0
------------------------------------+---------------------------------
{{{
bind10 20101129 (BIND 10 20110120)
[bind10] Checking for already running b10-msgq
[bind10] Starting b10-msgq
[bind10] Started b10-msgq (PID 19478)
[bind10] Starting b10-cfgmgr
[bind10] Started b10-cfgmgr (PID 15860)
[b10-cfgmgr] Can't read configuration file: [Errno 13] Permission denied:
'/home/reed/opt/bind10/var/bind10-devel/b10-config.db'
[b10-msgq] Closing socket fd 5
[bind10] Starting ccsession
[b10-msgq] Receive error: EOF
[bind10] killing started processes:
[bind10] - b10-cfgmgr
Traceback (most recent call last):
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 184, in _receive_full_buffer
self._receive_len_data()
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 144, in _receive_len_data
new_data = self._receive_bytes(self._recv_len_size)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 130, in _receive_bytes
data = self._socket.recv(size)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/config/ccsession.py", line 326, in __request_config
answer, env = self._session.group_recvmsg(False, seq)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 247, in group_recvmsg
env, msg = self.recvmsg(nonblock, seq)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 108, in recvmsg
data = self._receive_full_buffer(nonblock)
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/cc/session.py", line 199, in _receive_full_buffer
raise SessionTimeout("recv() on cc session timed out")
isc.cc.session.SessionTimeout: recv() on cc session timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/reed/opt/bind10/sbin/bind10", line 580, in startup
self.start_all_processes()
File "/home/reed/opt/bind10/sbin/bind10", line 520, in
start_all_processes
self.start_ccsession(c_channel_env)
File "/home/reed/opt/bind10/sbin/bind10", line 417, in start_ccsession
self.ccs.start()
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/config/ccsession.py", line 164, in start
self.__request_config()
File "/home/reed/opt/bind10/lib/python3.1/site-
packages/isc/config/ccsession.py", line 340, in __request_config
raise ModuleCCSessionError("CC Session timeout waiting for
configuration manager")
isc.config.ccsession.ModuleCCSessionError: CC Session timeout waiting for
configuration manager
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/reed/opt/bind10/sbin/bind10", line 959, in <module>
main()
File "/home/reed/opt/bind10/sbin/bind10", line 898, in main
startup_result = boss_of_bind.startup()
File "/home/reed/opt/bind10/sbin/bind10", line 582, in startup
self.kill_started_processes()
File "/home/reed/opt/bind10/sbin/bind10", line 302, in
kill_started_processes
self.processes[pid].process.kill()
File "/usr/pkg/lib/python3.1/subprocess.py", line 1337, in kill
self.send_signal(signal.SIGKILL)
File "/usr/pkg/lib/python3.1/subprocess.py", line 1327, in send_signal
os.kill(self.pid, sig)
OSError: [Errno 3] No such process
[b10-msgq] Closing socket fd 4
[b10-msgq] Receive error: EOF
[b10-msgq] Closing socket fd 5
[b10-msgq] Receive error: EOF
}}}
bind10 was dead. The only b10 process still running was msgq.
This ticket is not about discussing why the configuration was unreadable
but about how cfgmgr and bind10 should act if it is unreadable.
--
Ticket URL: <http://bind10.isc.org/ticket/627>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list