Can't build Fedora or CentOS with heat agents

Bug #1868562 reported by Brian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

The instructions on how to build an image with heat agents ( https://docs.openstack.org/heat-agents/latest/install/building_image.html ) fail.

Steps to reproduce:

sudo pip install git+https://opendev.org/openstack/diskimage-builder
git clone -b stable/train https://git.openstack.org/openstack/tripleo-image-elements
git clone -b stable/train https://git.openstack.org/openstack/heat-agents
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-agents/

  disk-image-create vm \
  fedora selinux-permissive \
  os-collect-config \
  -o fedora-software-config.qcow2

Output:

2020-03-23 13:47:39.428 | dib-run-parts Running /tmp/in_target.d/install.d/10-os-apply-config
2020-03-23 13:47:39.433 | ++ get-pip-manifest os-apply-config
2020-03-23 13:47:39.435 | + name=os-apply-config
2020-03-23 13:47:39.435 | + build_manifest=/etc/dib-manifests/dib-manifests-pip/dib-pip-build-manifest-os_apply_config
2020-03-23 13:47:39.435 | + [[ -f /etc/dib-manifests/dib-manifests-pip/dib-pip-build-manifest-os_apply_config ]]
2020-03-23 13:47:39.435 | + manifest=
2020-03-23 13:47:39.435 | + virtualenv --setuptools /opt/stack/venvs/os-apply-config
2020-03-23 13:47:39.677 | usage: virtualenv [--version] [--with-traceback] [-v | -q] [--app-data APP_DATA] [--clear-app-data] [--discovery {builtin}] [-p py] [--creator {builtin,cpython2-posix}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list]
2020-03-23 13:47:39.677 | [--clear] [--system-site-packages] [--symlinks | --copies] [--download | --no-download] [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel]
2020-03-23 13:47:39.677 | [--symlink-app-data] [--prompt prompt] [-h]
2020-03-23 13:47:39.677 | dest
2020-03-23 13:47:39.677 | virtualenv: error: too few arguments
2020-03-23 13:47:39.727 | Unmount /tmp/dib_build.Xeisis1f/mnt/tmp/yum
2020-03-23 13:47:39.754 | Unmount /tmp/dib_build.Xeisis1f/mnt/tmp/in_target.d
2020-03-23 13:47:39.778 | Unmount /tmp/dib_build.Xeisis1f/mnt/sys
2020-03-23 13:47:39.806 | Unmount /tmp/dib_build.Xeisis1f/mnt/proc
2020-03-23 13:47:39.834 | Unmount /tmp/dib_build.Xeisis1f/mnt/dev/pts
2020-03-23 13:47:39.859 | Unmount /tmp/dib_build.Xeisis1f/mnt/dev

  disk-image-create vm centos selinux-permissive os-collect-config -o centos-software-config.qcow2

Output:
2020-03-23 13:52:46.805 | > Completion plugin: Generating completion cache...
2020-03-23 13:52:46.805 | > Package python3-libselinux-2.9-2.1.el8.x86_64 is already installed.
2020-03-23 13:52:46.805 | > Package which-2.21-10.el8.x86_64 is already installed.
2020-03-23 13:52:46.805 | > Package selinux-policy-targeted-3.14.3-20.el8.noarch is already installed.
2020-03-23 13:52:46.805 | > Package python3-policycoreutils-2.9-3.el8_1.1.noarch is already installed.
2020-03-23 13:52:46.805 | > No match for argument: python-devel
2020-03-23 13:52:46.805 | > Package policycoreutils-python-utils-2.9-3.el8_1.1.noarch is already installed.
2020-03-23 13:52:46.805 | > Package rng-tools-6.6-2.el8.x86_64 is already installed.
2020-03-23 13:52:46.805 | > Package curl-7.61.1-11.el8.x86_64 is already installed.
2020-03-23 13:52:46.805 | > Package ca-certificates-2019.2.32-80.0.el8_1.noarch is already installed.
2020-03-23 13:52:46.805 | > Package selinux-policy-3.14.3-20.el8.noarch is already installed.
2020-03-23 13:52:46.805 | > Error: Unable to find a match: python-devel
2020-03-23 13:52:46.805 | returncode: 1
2020-03-23 13:52:46.805 | install-packages failed with returncode 1

Tags: heat
Revision history for this message
Brian King (inflatador) wrote :

 The following packages were re-mapped by redhat-common map-packages:

2020-06-24 21:38:54.998 | > WARNING: The following packages were re-mapped by redhat-common map-packages
2020-06-24 21:38:54.998 | > They should be converted to pkg-map:
2020-06-24 21:38:54.998 | > python-dev -> python-devel
2020-06-24 21:38:54.998 | > libz-dev -> zlib-devel
2020-06-24 21:38:54.998 | > libxml2-dev -> libxml2-devel
2020-06-24 21:38:54.998 | > build-essential -> make automake gcc gcc-c++ kernel-devel
2020-06-24 21:38:54.998 | > libxslt-dev -> libxslt-devel
2020-06-24 21:38:54.998 | > Running install-packages install.

Looks like the package map thing needs to be updated for CentOS 8.

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

IIUC this is a bug in tripleo-image-elements, not in diskimage-builder.

affects: diskimage-builder → tripleo
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.