build broken for DIB_RELEASE=xenial element ubuntu

Bug #1577105 reported by Saverio Proto
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
High
Ian Wienand

Bug Description

Steps to reproduce:

cd /home/ubuntu
git clone https://github.com/openstack/dib-utils
git clone https://github.com/openstack/diskimage-builder
export PATH=$PATH:/home/ubuntu/diskimage-builder/bin:/home/ubuntu/dib-utils/bin
export DIB_RELEASE=xenial
disk-image-create -a amd64 -t raw -o xenial.raw ubuntu vm

This fails with:
dib-run-parts Sun May 1 07:13:47 UTC 2016 Running /tmp/in_target.d/install.d/00-baseline-environment
/usr/bin/env: 'python': No such file or directory
bin/pkg-map error.
Unmount /tmp/image.bxyov8cQ/mnt/var/cache/apt/archives
Unmount /tmp/image.bxyov8cQ/mnt/tmp/in_target.d
Unmount /tmp/image.bxyov8cQ/mnt/tmp/ccache
Unmount /tmp/image.bxyov8cQ/mnt/sys
Unmount /tmp/image.bxyov8cQ/mnt/proc
Unmount /tmp/image.bxyov8cQ/mnt/dev/pts
Unmount /tmp/image.bxyov8cQ/mnt/dev

-------
please note that with the same steps but export DIB_RELEASE=trusty, everything works as expected

Revision history for this message
Simon Leinen (simon-leinen) wrote :

The Xenial base images no longer have the Python 2.x packages installed by default, see:

https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#Python_3

I could see a few possible ways to address this: Either disk-image-builder learns how to use Python 3 where available, or it installs the Python 2.x package ("python") on Xenial and later Ubuntu releases.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/311634

Changed in diskimage-builder:
assignee: nobody → Simon Leinen (simon-leinen)
status: New → In Progress
Revision history for this message
Aleksey Zvyagintsev (azvyagintsev) wrote :

Hello, any ETA?

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi everybody. Sorry this is taking a long time. I'd say we should aim to set the -default- Ubuntu release to Xenial by the time 16.04.1 is released, which is July 21st 2016, according to https://wiki.ubuntu.com/XenialXerus/ReleaseSchedule

Given that, we will probably want it working for a while prior to that. The answer though, isn't to install python2 again, but rather to get dib working with python3.

Changed in diskimage-builder:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on diskimage-builder (master)

Change abandoned by Simon Leinen (<email address hidden>) on branch: master
Review: https://review.openstack.org/311634
Reason: Abandoned in favor of https://review.openstack.org/326228 - please review there. Thanks all for your help!

Changed in diskimage-builder:
assignee: Simon Leinen (simon-leinen) → Ian Wienand (iwienand)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/326228
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=b9fdc70e32114fd05374ee793ad31b50c96ec1dc
Submitter: Jenkins
Branch: master

commit b9fdc70e32114fd05374ee793ad31b50c96ec1dc
Author: Ian Wienand <email address hidden>
Date: Tue Jun 7 15:00:00 2016 +1000

    Move pkg-map to dib-python

    The latest Fedora/Ubuntu images don't ship python2 by default, so we
    need to use our dib-python wrapper for this so we work in python3 only
    environments.

    Closes-bug: 1577105
    Change-Id: I1048ceef35f269960216066924986eec6117ca00

Changed in diskimage-builder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to diskimage-builder (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/664240

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to diskimage-builder (master)

Reviewed: https://review.opendev.org/664240
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=ea9ab89829fe8db6f89ef002dc9223a9e1d52186
Submitter: Zuul
Branch: master

commit ea9ab89829fe8db6f89ef002dc9223a9e1d52186
Author: Maksim Malchuk <email address hidden>
Date: Fri Apr 5 09:47:40 2019 +0300

    Move pypi to dib-python

    The latest Fedora/Ubuntu images don't ship python2 by default, so we
    need to use our dib-python wrapper for this so we work in python3 only
    environments.

    This change also correctly creates the pip.conf and .pydistutils.cfg
    files with trusted host extracted from the index-url.

    Related-bug: 1577105

    Change-Id: Ibb5348af3e3bbe46b19affe90a8930a4b4ad4cad
    Signed-off-by: Maksim Malchuk <email address hidden>

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.