librarian.txt causes spurious failure with wildcard DNS

Bug #329140 reported by Aaron Bentley
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When the test suite is run on systems with wildcard DNS (such as OpenDNS), the following failure is emitted:

Failed example:
    print restricted_file.read()
Differences (ndiff with -expected +actual):
      Traceback (most recent call last):
    - ...
    - URLError: <urlopen error (-2, 'Name or service not known')>
    + File "/home/abentley/launchpad/merge-directive-bundles/utilities/../lib/zope/testing/doctest.py", line 1360, in __run
    + compileflags, 1) in test.globs
    + File "<doctest librarian.txt[173]>", line 1, in ?
    + print restricted_file.read()
    + File "/home/abentley/launchpad/wildcard-dns-failure/lib/canonical/launchpad/database/librarian.py", line 108, in read
    + self.open()
    + File "/home/abentley/launchpad/wildcard-dns-failure/lib/canonical/launchpad/database/librarian.py", line 97, in open
    + self._datafile = self.client.getFileByAlias(self.id)
    + File "/home/abentley/launchpad/wildcard-dns-failure/lib/canonical/librarian/client.py", line 328, in getFileByAlias
    + return _File(urllib2.urlopen(url))
    + File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    + return _opener.open(url, data)
    + File "/usr/lib/python2.4/urllib2.py", line 358, in open
    + response = self._open(req, data)
    + File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    + '_open', req)
    + File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    + result = func(*args)
    + File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    + return self.do_open(httplib.HTTPConnection, req)
    + File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    + raise URLError(err)
    + URLError: <urlopen error (110, 'Connection timed out')>

This is because wildcard DNS causes a different failure from the expected one.
I am preparing a branch which comments out this line.

Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → 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.