On Mon, Mar 14, 2022 at 10:14:37AM +0000, Richard W.M. Jones wrote:> On Mon, Mar 14, 2022 at 10:01:46AM +0000, Richard W.M. Jones wrote: > > Martin - I guess you must have created that nbdkit.yml file at some > > point, but I can't find it in your fork. > > Found it: > > https://gitlab.com/nertpinx/libvirt-ci/-/commits/_nbdkit2 > > I guess we're still missing almalinux support in libvirt-ci though. > > $ ../libvirt-ci/lcitool manifest ci/manifest.yml > [ERROR]: An unexpected error occurred > Traceback (most recent call last): > File "/home/rjones/d/libvirt-ci/guests/lcitool/lcitool/manifest.py", line 87, in _normalize > facts = inventory.target_facts[target] > KeyError: 'almalinux-8'Current upstream has almalinux-8, so I think this nbdkit2 branch is just a little outdated. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
I rebased Martin's tree[1] on top of libvirt-ci head, and reran lcitool. There are several places where I changed the generated files in nbdkit.git and where those changes are overwritten (I didn't realise those files were generated). I think I can fix most of them. But a couple of larger problems I can see ... (a) lcitool wants to make this change: diff --git a/ci/containers/fedora-rawhide.Dockerfile b/ci/containers/fedora-rawhide.Dockerfile index 7e0a8d25..d4409f87 100644 --- a/ci/containers/fedora-rawhide.Dockerfile +++ b/ci/containers/fedora-rawhide.Dockerfile @@ -6,10 +6,7 @@ FROM registry.fedoraproject.org/fedora:rawhide -RUN dnf update -y && \ - dnf install 'dnf-command(config-manager)' -y && \ - dnf config-manager -y --add-repo=http://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo && \ - dnf update -y --nogpgcheck fedora-gpg-keys && \ +RUN dnf update -y --nogpgcheck fedora-gpg-keys && \ I added "dnf install 'dnf-command(config-manager)'" in: https://gitlab.com/nbdkit/nbdkit/-/commit/e359fab8c682436faff914591b5ff42e29e77b9c because the dnf config-manager command doesn't work. The dnf config-manager command in turn was added earlier in Martin's original commit. I don't know if Martin added that manually or if an earlier version of lcitool generated it, but it is necessary in order to use the nodebug kernel, and using the nodebug kernel is necessary to avoid performance problems, timeouts and out of memory problems when using libguestfs on Rawhide. (b) lcitool wants to remove my perl conditionalization changes: @@ -312,11 +309,10 @@ mingw32-fedora-35: - mingw32-fedora-35-container allow_failure: false variables: - NAME: fedora-35 CROSS: mingw32 - PERL: skip - RUST: skip GOLANG: skip + NAME: fedora-35 + RUST: skip which I added here: https://gitlab.com/nbdkit/nbdkit/-/commit/414ee371ee2b1a12c6d45466d041322b247723eb I'm not clear where I should have added those. The rust conditionalization stuff doesn't seem to be part of lcitool so I guess it's generated from another file somewhere. Be nice if original files were called "file.in" or something like that so we can tell what files are generated and what are originals. Rich. [1] https://gitlab.com/nertpinx/libvirt-ci/-/commits/_nbdkit2 -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v