python-glance fails to install during postinst: update-python-modules: not found

Bug #907543 reported by Adam Gandelman
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glance (Ubuntu)
Fix Released
Undecided
Unassigned
nova (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Originally hit this trying to build a package in a chroot which depends on python-glance as a build depend, but coincidentally this is also a new issue on EC2 as cloud images no longer have python-support installed by default.

Selecting previously unselected package python-webob.
Unpacking python-webob (from .../python-webob_1.1.1-1_all.deb) ...
Selecting previously unselected package python-glance.
Unpacking python-glance (from .../python-glance_2012.1~e2-0ubuntu2_all.deb) ...
Processing triggers for man-db ...
Setting up python-amqplib (1.0.0+ds-1) ...
Setting up python-anyjson (0.3.1-1) ...
Setting up python-argparse (1.2.1-1) ...
Setting up python-formencode (1.2.4-2ubuntu1) ...
Setting up python-kombu (1.4.3-1) ...
Setting up python-openid (2.2.5-3ubuntu1) ...
Setting up python-paste (1.7.5.1-4ubuntu1) ...
Setting up python-pastedeploy (1.5.0-2) ...
Setting up python-setuptools (0.6.24-1ubuntu1) ...
Setting up python-pastescript (1.7.5-1) ...
Setting up python-scgi (1.13-1ubuntu1) ...
Setting up python-webob (1.1.1-1) ...
Setting up python-glance (2012.1~e2-0ubuntu2) ...
/var/lib/dpkg/info/python-glance.postinst: 16: /var/lib/dpkg/info/python-glance.postinst: update-python-modules: not found
dpkg: error processing python-glance (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 python-glance
E: Sub-process /usr/bin/dpkg returned an error code (1)

Related branches

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Also affects nova as python-support is not a listed dependency though update-python-modules is used in python-nova.postinst.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Both packages use update-python-modules from postinst, which was previously being pulled in by other packages (related or unrelated) that rely on python-support. The dependency was being satisfied for free but since many (all?) of those have dropped python-support in favor of dh_python2, this assumption should be fixed.

Changed in glance (Ubuntu):
status: New → Triaged
Changed in nova (Ubuntu):
status: New → Triaged
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Fixed with upload of 2012.1~e2-0ubuntu3

Changed in glance (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2012.1~e3~20120113.12049-0ubuntu1

---------------
nova (2012.1~e3~20120113.12049-0ubuntu1) precise; urgency=low

  [Chuck Short]
  * New upstream version.
  * debian/nova_sudoers, debian/nova-common.install,
    Switch out to nova-rootwrap. (LP: #681774)
  * Add "get-origsource-git" which allows developers to
    generate a tarball from github, by doing:
    fakeroot debian/rules get-orig-source-git
  * debian/debian/nova-objectstore.logrotate: Dont determine
    if we are running Debian or Ubuntu. (LP: #91379)

  [Adam Gandleman]
  * Removed python-nova.postinst, let dh_python2 generate instead since
    python-support is not a dependency. (LP: #907543)
 -- Chuck Short <email address hidden> Fri, 13 Jan 2012 09:51:10 +0100

Changed in nova (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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