diskimage-builder (current) cannot build Centos6 images
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_
+ '[' -n '' ']'
+ package-installs-v2 --phase pre-install.d /tmp/package-
Traceback (most recent call last):
File "/usr/local/
import argparse
ImportError: No module named argparse
++ /home/dib/
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 7603f97cadbf92c
[1] doc/source/
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/