BIND 10 #83: cmdctl and missing key/certificate

BIND 10 Development do-not-reply at isc.org
Mon Aug 9 15:37:13 UTC 2010


#83: cmdctl and missing key/certificate
---------------------------+------------------------------------------------
      Reporter:  jreed     |        Owner:  UnAssigned                 
          Type:  defect    |       Status:  reviewing                  
      Priority:  major     |    Milestone:  06. 4th Incremental Release
     Component:  bind-ctl  |   Resolution:                             
      Keywords:            |    Sensitive:  0                          
Estimatedhours:            |        Hours:                             
      Billable:  0         |   Totalhours:                             
      Internal:  0         |  
---------------------------+------------------------------------------------
Changes (by jreed):

  * estimatedhours:  => 0.0
  * internal:  => 0
  * billable:  => 0


Comment:

 The cmdctl has okay output:
 {{{
 [b10-cmdctl] Deny client's connection because key file
 '/home/reed/opt/bind10/etc/bind10-devel/cmdctl-keyfile.pem' doesn't exist
 }}}

 But bindctl is too noisy:
 {{{
 $ /home/reed/opt/bind10/bin/bindctl
 Traceback (most recent call last):
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 184, in login_to_cmdctl
     response = self.send_POST('/login', param)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 247, in send_POST
     self.conn.request('POST', url, param, headers)
   File "/usr/pkg/lib/python3.1/http/client.py", line 918, in request
     self._send_request(method, url, body, headers)
   File "/usr/pkg/lib/python3.1/http/client.py", line 956, in _send_request
     self.endheaders(body)
   File "/usr/pkg/lib/python3.1/http/client.py", line 914, in endheaders
     self._send_output(message_body)
   File "/usr/pkg/lib/python3.1/http/client.py", line 768, in _send_output
     self.send(msg)
   File "/usr/pkg/lib/python3.1/http/client.py", line 716, in send
     self.connect()
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 88, in connect
     ca_certs=self.ca_certs)
   File "/usr/pkg/lib/python3.1/ssl.py", line 381, in wrap_socket
     suppress_ragged_eofs=suppress_ragged_eofs)
   File "/usr/pkg/lib/python3.1/ssl.py", line 135, in __init__
     raise x
   File "/usr/pkg/lib/python3.1/ssl.py", line 131, in __init__
     self.do_handshake()
   File "/usr/pkg/lib/python3.1/ssl.py", line 327, in do_handshake
     self._sslobj.do_handshake()
 socket.error: [Errno 54] Connection reset by peer
 Fail to login to cmdctl
 Fail to connect with b10-cmdctl module, is it running?
 Traceback (most recent call last):
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 184, in login_to_cmdctl
     response = self.send_POST('/login', param)
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 247, in send_POST
     self.conn.request('POST', url, param, headers)
   File "/usr/pkg/lib/python3.1/http/client.py", line 918, in request
     self._send_request(method, url, body, headers)
   File "/usr/pkg/lib/python3.1/http/client.py", line 956, in _send_request
     self.endheaders(body)
   File "/usr/pkg/lib/python3.1/http/client.py", line 914, in endheaders
     self._send_output(message_body)
   File "/usr/pkg/lib/python3.1/http/client.py", line 768, in _send_output
     self.send(msg)
   File "/usr/pkg/lib/python3.1/http/client.py", line 716, in send
     self.connect()
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 88, in connect
     ca_certs=self.ca_certs)
   File "/usr/pkg/lib/python3.1/ssl.py", line 381, in wrap_socket
     suppress_ragged_eofs=suppress_ragged_eofs)
   File "/usr/pkg/lib/python3.1/ssl.py", line 135, in __init__
     raise x
   File "/usr/pkg/lib/python3.1/ssl.py", line 131, in __init__
     self.do_handshake()
   File "/usr/pkg/lib/python3.1/ssl.py", line 327, in do_handshake
     self._sslobj.do_handshake()
 socket.error: [Errno 54] Connection reset by peer

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 119, in run
     if not self.login_to_cmdctl():
   File "/home/reed/opt/bind10/lib/python3.1/site-
 packages/bindctl/bindcmd.py", line 188, in login_to_cmdctl
     raise FailToLogin()
 bindctl.exception.FailToLogin: Fail to login to cmdctl
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/83#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list