IPA image building for openSuse is failing in release check.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned |
Bug Description
The IPA image building with openSuse is failing in release check and give the following error in current setup:
2021-03-26 11:16:30.938 | + /tmp/dib_
2021-03-26 11:16:30.941 | + /home/ubuntu/
2021-03-26 11:16:30.943 | + /home/ubuntu/
2021-03-26 11:16:30.946 | + /home/ubuntu/
2021-03-26 11:16:30.948 | + /home/ubuntu/
2021-03-26 11:16:30.950 | + /home/ubuntu/
2021-03-26 11:16:30.953 | + /home/ubuntu/
2021-03-26 11:16:30.955 | + /home/ubuntu/
2021-03-26 11:16:30.958 | + /home/ubuntu/
2021-03-26 11:16:30.958 | ERROR: Unable to detect operating system
2021-03-26 11:16:30.960 | + /home/ubuntu/
The above mentioned error log refers to the diskimage_
"elif [ -f $TARGET_
FIX: /etc/SuSE-release is not valid anymore with current openSuse release and it was deprecated in openSuse release 13. So the renamed option for release check is /etc/os-release. Locally I have tested by changing the name to /etc/os-release and build was successful.
I have tried and use other option for example:
$IPA_DISTRO_FAMILY = "suse", but the condition was failing and build was unsuccessful. Also /etc/gentoo-release is not working for suse based distribution (check log).
Also checked by adding the following line , build is successfull.
elif [[ $DISTRO_NAME = opensuse ]]; then
KERNEL=
RAMDISK=
I have opened a PR to do the fix in https:/
description: | updated |
Opened another PR in IPA-builder which fix the missing packages installation for openSuse. IPA image building with openSuse is broken for long time and need to have the fix. Locally I have tested both PR together and build is successful. Here is my PR in ipa-builder: https:/ /review. opendev. org/c/openstack /ironic- python- agent-builder/ +/778726
The PR in ipa-builder is depending on Diskimage-Builder PR. So the bug fix in DIB needs to move first.