diskimage-builder (current) cannot build Centos6 images

Bug #1653561 reported by Andreas Florath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Unassigned

Bug Description

Centos6 ships with python2.6.

Some elements (e.g. pkg-map) are using argparse - which was added with python 2.7.

Therefore the build fails with:

export DIB_RELEASE="6"
disk-image-create -x --image-size=5G -o target_centos-6 centos-minimal

++ find /tmp/in_target.d/pre-install.d -maxdepth 1 -name 'package-installs-*'
+ '[' -n '' ']'
+ package-installs-v2 --phase pre-install.d /tmp/package-installs.json
Traceback (most recent call last):
  File "/usr/local/bin/package-installs-v2", line 17, in <module>
    import argparse
ImportError: No module named argparse
++ /home/dib/devel/diskimage-builder/lib/img-functions:run_in_target:66 : check_break after-error run_in_target bash

Checked this on Debian-Jessie and Ubuntu-Xenial.

Centos6 is currently supported as build and target system [1].
Either the status of Centos6 has to be changed or all elements using argparse must be adapted.

I'm using diskimage-builder HEAD from today (commit 7603f97cadbf92c79549547dabbe252650343cac).

[1] doc/source/user_guide/supported_distros.rst

Revision history for this message
Ian Wienand (iwienand) wrote :

Yeah, centos6 should just be removed. We stopped testing with [1]. I don't think there's any compelling reason to keep it, since py2.6 was dropped in Juno

[1] https://review.openstack.org/#/c/408936/

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.