Merge "Fix: IPA image building with OpenSuse."

This commit is contained in:
Zuul 2021-04-08 11:28:18 +00:00 committed by Gerrit Code Review
commit 93292bfd57
5 changed files with 29 additions and 1 deletions

View File

@ -48,6 +48,11 @@ if [ $HAS_PIP == "False" ]; then
$VENVDIR/bin/pip install "pip==$REQUIRED_PIP_STR" $VENVDIR/bin/pip install "pip==$REQUIRED_PIP_STR"
fi fi
# Upgrade setuptools package for openSuse
if [ "$DISTRO_NAME" == "opensuse" ]; then
$VENVDIR/bin/pip install -U setuptools
fi
# install IPA inside the virtual environment # install IPA inside the virtual environment
$VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR $VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR
ln -s $VENVDIR/bin/ironic-python-agent /usr/local/bin/ ln -s $VENVDIR/bin/ironic-python-agent /usr/local/bin/

View File

@ -32,6 +32,17 @@
"debian": { "debian": {
"python": "python3", "python": "python3",
"python-dev": "python3-dev" "python-dev": "python3-dev"
},
"suse": {
"qemu-utils": "qemu",
"python": "python3",
"genisoimage": "mkisofs",
"gdisk": "gptfdisk",
"libffi-dev": "libffi-devel",
"libssl-dev": "libopenssl-devel",
"python-dev": "python3-devel",
"git": "",
"man-db": ""
} }
}, },
"default": { "default": {

View File

@ -2,3 +2,4 @@ ironic-python-agent:
default: openstack-ironic-python-agent default: openstack-ironic-python-agent
redhat: openstack-ironic-python-agent redhat: openstack-ironic-python-agent
debian: ironic-python-agent debian: ironic-python-agent
opensuse: ironic-python-agent

View File

@ -120,6 +120,15 @@
image_type: 'dib' image_type: 'dib'
image_distro: 'fedora' image_distro: 'fedora'
- job:
name: ironic-python-agent-check-image-dib-opensuse
parent: ironic-python-agent-check-image-base
required-projects:
- openstack/diskimage-builder
vars:
image_type: 'dib'
image_distro: 'opensuse'
- job: - job:
name: ironic-python-agent-check-image-dib-debian name: ironic-python-agent-check-image-dib-debian
parent: ironic-python-agent-check-image-base parent: ironic-python-agent-check-image-base

View File

@ -22,6 +22,8 @@
voting: false voting: false
- ironic-python-agent-check-image-dib-ubuntu: - ironic-python-agent-check-image-dib-ubuntu:
voting: false voting: false
- ironic-python-agent-check-image-dib-opensuse:
voting: false
- ipa-tempest-wholedisk-bios-ipmi-direct-dib-src: - ipa-tempest-wholedisk-bios-ipmi-direct-dib-src:
voting: false voting: false
- ipa-tempest-bios-ipmi-iscsi-src: - ipa-tempest-bios-ipmi-iscsi-src: