Bug 1910039 - virt-dib doesn't work with newer diskimage-builder version on RHEL8
Summary: virt-dib doesn't work with newer diskimage-builder version on RHEL8
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-22 12:19 UTC by YongkuiGuo
Modified: 2023-02-07 13:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-02-07 13:34:25 UTC
Embargoed:


Attachments (Terms of Use)

Description YongkuiGuo 2020-12-22 12:19:53 UTC
Description of problem:
I managed to install the newer diskimage-builder (diskimage-builder-3.5.1-0.20201218031210.0255291.el8.noarch.rpm) on RHEL8.4.0. The virt-dib command seems not work. I am not sure whether the newer diskimage-builder version is supported officially on RHEL8.


Version-Release number of selected component (if applicable):
diskimage-builder-3.5.1-0.20201218031210.0255291.el8.noarch.rpm
virt-dib-1.42.0-2.module+el8.4.0+8855+a9e237a9.x86_64
libguestfs-1.42.0-2.module+el8.4.0+8855+a9e237a9.x86_64


How reproducible:
100%


Steps:

1. Run the example in manpage
$ virt-dib -B /usr/share/diskimage-builder/lib -p /usr/share/diskimage-builder/elements --ramdisk --name ramdisk ubuntu deploy-ironic
virt-dib: Elements: ramdisk base ubuntu deploy-ironic
virt-dib: Expanded elements: base cache-url cloud-init-datasources
deploy-ironic deploy-tgtadm dib-init-system dkms dpkg install-bin
install-types manifests package-installs pkg-map ramdisk ramdisk-base
sysprep ubuntu ubuntu-common
virt-dib: Carried environment variables:
[   0.0] Preparing auxiliary data
[   0.5] Opening the disks
[   6.9] Setting up the destination root
[   7.2] Running: root.d/00-ironic-deploy-deprecated
WARNING: The deploy-ironic element is deprecated. Please use the ironic-agent element instead.
[   7.3] Running: root.d/01-ccache
[   7.4] Running: root.d/09-apt-keyring
[   7.4] Running: root.d/10-cache-ubuntu-tarball
virt-dib: error: libguestfs error: debug:
/sysroot/tmp/in_target.aux/hooks/root.d/10-cache-ubuntu-tarball: line 24:
DIB_LOCKFILES: unbound variable

If reporting bugs, run virt-dib with debugging enabled and include the
complete output:

  virt-dib -v -x [...]


Actual results:
The error as above

Expected results:
The virt-dib command can be run successfully.


Additional info:


Note You need to log in before you can comment on or make changes to this bug.