postinst uses python when not available

Bug #1498493 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
High
Unassigned

Bug Description

python is not available in wily images (bug 1427275).
cloud-init depends on python3, so we can safely use that in a postinst.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: cloud-init 0.7.7~bzr1146-0ubuntu1
ProcVersionSignature: User Name 4.2.0-10.12-generic 4.2.0
Uname: Linux 4.2.0-10-generic x86_64
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
Date: Tue Sep 22 13:30:48 2015
Ec2AMI: ami-0000059b
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: None
Ec2Ramdisk: None
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Changed in cloud-init (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Scott Moser (smoser) wrote :
Download full text (6.4 KiB)

note, the failure here was seen in maas.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
/var/lib/dpkg/info/cloud-init.postinst: 59: /var/lib/dpkg/info/cloud-init.postinst: python: not found
Unexpected error while running command.
Command: ['chroot', '/tmp/tmpdfazn9w5/target', 'dpkg-reconfigure', '--frontend=noninteractive', 'cloud-init']
Exit code: 127
Reason: -
Stdout: ''
Stderr: ''
Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: b"Ign http://archive.ubuntu.com wily InRelease
Ign http://archive.ubuntu.com wily-updates InRelease
Ign http://archive.ubuntu.com wily-security InRelease
Get:1 http://archive.ubuntu.com wily Release.gpg [933 B]
Get:2 http://archive.ubuntu.com wily-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com wily-security Release.gpg [933 B]
Get:4 http://archive.ubuntu.com wily Release [217 kB]
Get:5 http://archive.ubuntu.com wily-updates Release [63.5 kB]
Get:6 http://archive.ubuntu.com wily-security Release [63.5 kB]
Get:7 http://archive.ubuntu.com wily/main amd64 Packages [1421 kB]
Get:8 http://archive.ubuntu.com wily/restricted amd64 Packages [16.0 kB]
Get:9 http://archive.ubuntu.com wily/universe amd64 Packages [6721 kB]
Get:10 http://archive.ubuntu.com wily/multiverse amd64 Packages [138 kB]
Get:11 http://archive.ubuntu.com wily/main Translation-en [838 kB]
Get:12 http://archive.ubuntu.com wily/multiverse Translation-en [107 kB]
Get:13 http://archive.ubuntu.com wily/restricted Translation-en [4334 B]
Get:14 http://archive.ubuntu.com wily/universe Translation-en [4593 kB]
Get:15 http://archive.ubuntu.com wily-updates/main amd64 Packages [28 B]
Get:16 http://archive.ubuntu.com wily-updates/restricted amd64 Packages [28 B]
Get:17 http://archive.ubuntu.com wily-updates/universe amd64 Packages [28 B]
Get:18 http://archive.ubuntu.com wily-updates/multiverse amd64 Packages [28 B]
Get:19 http://archive.ubuntu.com wily-updates/main Translation-en [28 B]
Get:20 http://archive.ubuntu.com wily-updates/multiverse Translation-en [28 B]
Get:21 http://archive.ubuntu.com wily-updates/restricted Translation-en [28 B]
Get:22 http://archive.ubuntu.com wily-updates/universe Translation-en [28 B]
Get:23 http://archive.ubuntu.com wily-security/main amd64 Packages [28 B]
Get:24 http://archive.ubuntu.com wily-security/restricted amd64 Packages [28 B]
Get:25 http://archive.ubuntu.com wily-security/universe amd64 Packages [28 B]
Get:26 http://archive.ubuntu.com wily-security/multiverse amd64 Packages [28 B]
Get:27 http://archive.ubuntu.com wily-security/main Translation-en [28 B]
Get:28 http://archive.ubuntu.com wily-security/multiverse Translation-en [28 B]
Get:29 http://archive.ubuntu.com wily-security/restricted Translation-en [28 B]
Get:30 http://archive.ubuntu.com wily-security/universe Translation-en [28 B]
Fetched 14.2 MB in 18s (748 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
linux-g...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.7.7~bzr1146-0ubuntu2

---------------
cloud-init (0.7.7~bzr1146-0ubuntu2) wily; urgency=medium

  * replace usage of python with python3 in postinst (LP: #1498493)

 -- Scott Moser <email address hidden> Tue, 22 Sep 2015 09:49:01 -0400

Changed in cloud-init (Ubuntu):
status: Confirmed → 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.