Attempts to contact external hosts should be logged

Bug #132334 reported by Jonathan Lange
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

SteveA says:

Here's an idea:
 - for any system that accesses URLs on other hosts, we should have the system write out a log file of time, host and comment for each access that it attempts.

If we had this, we'd be able to answer definitely whether the code mirror is trying to access that host.

Tags: lp-code
Jonathan Lange (jml)
Changed in launchpad-bazaar:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Christian Reis (kiko) wrote :

If this is implemented using a urlopen wrapper, it's actually a launchpad bug.

Revision history for this message
Jonathan Lange (jml) wrote :

I've no idea how it's implemented for imports. For mirrored branches, I think the actual URL opening is done by bzrlib, which may use urlopen internally. (Will confirm this.)

You are right though, we've got a bunch of services that access URLs on other hosts and we should only have to solve this problem once.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

supermirror-puller.py uses urllib currently (it used to use pycurl, but this has problems with self-signed certificates).

It would probably be easy enough to register a custom transport for http:// urls that did some logging then delegated to the bzrlib transport for all the work.

Tim Penhey (thumper)
Changed in launchpad-bazaar:
milestone: 1.1.10 → 1.1.12
Jonathan Lange (jml)
Changed in launchpad-bazaar:
milestone: 1.1.12 → none
Jonathan Lange (jml)
visibility: private → public
Changed in launchpad:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.