Ticket #838 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Better exception handling for "self" connection with wrong IP

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


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 (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 from incorrect address ('', 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; 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/", line 46, in _marshaled_dispatch     response = self.instance._dispatch(method, params, self.funcs)   File "/var/lib/python-support/python2.6/Bcfg2/", line 227, in _dispatch     self.logger.error(e, exc_info=True)   File "/usr/lib/python2.6/logging/", line 1056, in error     self._log(ERROR, msg, args, **kwargs)   File "/usr/lib/python2.6/logging/", line 1143, in _log     self.handle(record)   File "/usr/lib/python2.6/logging/", line 1153, in handle     self.callHandlers(record)   File "/usr/lib/python2.6/logging/", line 1190, in callHandlers     hdlr.handle(record)   File "/usr/lib/python2.6/logging/", line 669, in handle     self.emit(record)   File "/var/lib/python-support/python2.6/Bcfg2/", line 114, in emit     newrec = copy.deepcopy(record)   File "/usr/lib/python2.6/", line


Change History

comment:1 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

comment:2 Changed 13 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.


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.