needs porting to Python 3.4

Bug #1272387 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

With python3.4 as default python3, ubuntu-release-upgrader fails:

  http://people.canonical.com/~pitti/tmp/autopkgtest-py34/fail/py34-ubuntu-release-upgrader/results/

=====================================================================
FAIL: testfetcher (test_dist_upgrade_fetcher_core.TestDistUpgradeFetcherCoreTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/adt-run.N1L4KF/dsc0-build/ubuntu-release-upgrader-0.209/tests/test_dist_upgrade_fetcher_core.py", line 92, in testfetcher
    self.assertTrue(res)
nose.proxy.AssertionError: AssertionError: None is not true
-------------------- >> begin captured stdout << ---------------------
authenticate 'quantal.tar.gz' against 'quantal.tar.gz.gpg'
gpg exited 2
Debug information:

gpg: fatal: can't open fd 30 for status output: Bad file descriptor
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/0

Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server.
=================================

Unfortunately the test does not give away more information, like a Python backtrace of the upgrader itself. So this needs some manual investigation. I ran the test twice, once in the DC (where we run the production autopkgtests) and once on my machine with unrestricted network, with exactly the same failure.

Note that there are a few CRITICALs/WARNINGs before:

(process:9463): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

** (nosetests3:9463): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(nosetests3:9463): Gtk-CRITICAL **: gtk_main_quit: assertion 'main_loops != NULL' failed
/tmp/adt-run.N1L4KF/dsc0-build/ubuntu-release-upgrader-0.209/check_new_release_gtk.py:98: PyGIDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for schema or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations

But these already happen with python3.3, and with that the test succeeds:

http://d-jenkins.ubuntu-ci:8080/job/trusty-adt-ubuntu-release-upgrader/57/

Tags: python3.4

Related branches

Changed in ubuntu-release-upgrader (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Brian Murray (brian-murray) wrote :

I've tracked it down to the gpgauthenticate function in DistUpgrade/DistUpgradeFetcherCore.py.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.211

---------------
ubuntu-release-upgrader (1:0.211) trusty; urgency=medium

  * DistUpgrade/DistUpgradeFetcherCore.py: set inheritance of file descriptors
    for python3.4 (LP: #1272387)
 -- Brian Murray <email address hidden> Mon, 24 Feb 2014 16:28:23 -0800

Changed in ubuntu-release-upgrader (Ubuntu):
status: In Progress → Fix Released
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.