Modify

Ticket #838 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Better exception handling for "self" connection with wrong IP

Reported by: http://daybreaker.info/ Owned by: desai
Priority: minor Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: error handling Cc:

Description

When the master runs both bcfg2-server and bcfg2 client, the IP of the client is retrieved as the public IP of the master, not 127.0.0.1 (localhost).

It works well after fixing clients.xml to use public IP for the master, but exception handling should inform the user with useful information, not just saying

Failed to download probes from bcfg2
<type 'exceptions.TypeError'>:__init__() takes exactly 3 arguments (1 given)
  • Testing environment: Ubuntu 9.04 (jaunty) with bcfg2 1.0.0 from PPA.
  • The syslog says:
    Jan 26 12:43:41 host0 bcfg2-server[15314]: Got request for 192.168.1.191 from incorrect address ('192.168.2.191', 47499)
    Jan 26 12:43:42 host0 bcfg2-server[15314]: Asserting client host0.local profile to slave
    Jan 26 12:43:42 host0 bcfg2-server[15314]: Failed to set client host0.local to private group slave
    Jan 26 12:43:42 host0 bcfg2-server[15314]: Client metadata resolution error for 192.168.2.191; check server log
    Jan 26 12:43:42 host0 bcfg2-server[15314]: Unexpected handler error Traceback (most recent call last):   File "/var/lib/python-support/python2.6/Bcfg2/SSLServer.py", line 46, in _marshaled_dispatch     response = self.instance._dispatch(method, params, self.funcs)   File "/var/lib/python-support/python2.6/Bcfg2/Component.py", line 227, in _dispatch     self.logger.error(e, exc_info=True)   File "/usr/lib/python2.6/logging/__init__.py", line 1056, in error     self._log(ERROR, msg, args, **kwargs)   File "/usr/lib/python2.6/logging/__init__.py", line 1143, in _log     self.handle(record)   File "/usr/lib/python2.6/logging/__init__.py", line 1153, in handle     self.callHandlers(record)   File "/usr/lib/python2.6/logging/__init__.py", line 1190, in callHandlers     hdlr.handle(record)   File "/usr/lib/python2.6/logging/__init__.py", line 669, in handle     self.emit(record)   File "/var/lib/python-support/python2.6/Bcfg2/Logger.py", line 114, in emit     newrec = copy.deepcopy(record)   File "/usr/lib/python2.6/copy.py", line
    

Attachments

Change History

comment:1 Changed 12 years ago by solj

  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

comment:2 Changed 12 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

This should be fixed in 1.1.0. Reopen if this is not the case.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.