diff mbox series

[TEST_ARTIFACTS,v1] scripts: add lzo to the x86_64 alpine rootfs

Message ID 20241107142012.2593333-1-javi.merino@cloud.com (mailing list archive)
State New
Headers show
Series [TEST_ARTIFACTS,v1] scripts: add lzo to the x86_64 alpine rootfs | expand

Commit Message

Javi Merino Nov. 7, 2024, 2:19 p.m. UTC
In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built
with all libraries.  If we add lzo-dev to the alpine:3.18 container,
libxenguest is linked against it.  However, as the initrd in the
test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab
CI job fails with:

  + bash /etc/init.d/xencommons start
  Starting /usr/local/sbin/xenstored...
  /etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
  Setting domain 0 name, domid and JSON config...
  Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
  Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
  Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
  Starting xenconsoled...
  Starting QEMU as disk backend for dom0
  + xl list
  Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
  Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
  Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
  + xl create -c /root/test.cfg
  Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
  Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
  Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
   *   Execution of "/etc/local.d/xen.start" failed.

Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .

Signed-off-by: Javi Merino <javi.merino@cloud.com>
---

Tested in https://gitlab.com/xen-project/people/javimerino/test-artifacts/-/jobs/8295092924

 scripts/x86_64-rootfs-alpine.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Andrew Cooper Nov. 7, 2024, 5:54 p.m. UTC | #1
On 07/11/2024 2:19 pm, Javi Merino wrote:
> In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built
> with all libraries.  If we add lzo-dev to the alpine:3.18 container,
> libxenguest is linked against it.  However, as the initrd in the
> test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab
> CI job fails with:
>
>   + bash /etc/init.d/xencommons start
>   Starting /usr/local/sbin/xenstored...
>   /etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
>   Setting domain 0 name, domid and JSON config...
>   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
>   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
>   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
>   Starting xenconsoled...
>   Starting QEMU as disk backend for dom0
>   + xl list
>   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
>   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
>   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
>   + xl create -c /root/test.cfg
>   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
>   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
>   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
>    *   Execution of "/etc/local.d/xen.start" failed.
>
> Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .
>
> Signed-off-by: Javi Merino <javi.merino@cloud.com>

Ah - this is a good example of the problem I opined about in
https://lore.kernel.org/xen-devel/86a60aec-f259-41be-92a0-ce66ce24f4ae@citrix.com/T/#u

For now, I'll take this and use it as a test of whether I can drive the
new test-artefacts repo.

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Stefano Stabellini Nov. 8, 2024, 1:31 a.m. UTC | #2
On Thu, 7 Nov 2024, Andrew Cooper wrote:
> On 07/11/2024 2:19 pm, Javi Merino wrote:
> > In the qemu-alpine-x86_64-gcc test, we want to test libxenguest built
> > with all libraries.  If we add lzo-dev to the alpine:3.18 container,
> > libxenguest is linked against it.  However, as the initrd in the
> > test-artifacts does not contain lzo, the qemu-alpine-x86_64-gcc gitlab
> > CI job fails with:
> >
> >   + bash /etc/init.d/xencommons start
> >   Starting /usr/local/sbin/xenstored...
> >   /etc/xen/scripts/launch-xenstore: line 90: echo: write error: Invalid argument
> >   Setting domain 0 name, domid and JSON config...
> >   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
> >   Starting xenconsoled...
> >   Starting QEMU as disk backend for dom0
> >   + xl list
> >   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
> >   + xl create -c /root/test.cfg
> >   Error loading shared library liblzo2.so.2: No such file or directory (needed by /usr/local/lib/libxenguest.so.4.20)
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: __lzo_init_v2: symbol not found
> >   Error relocating /usr/local/lib/libxenguest.so.4.20: lzo1x_decompress_safe: symbol not found
> >    *   Execution of "/etc/local.d/xen.start" failed.
> >
> > Add lzo to the initrd that becomes the rootfs to install liblzo2.so.2 .
> >
> > Signed-off-by: Javi Merino <javi.merino@cloud.com>
> 
> Ah - this is a good example of the problem I opined about in
> https://lore.kernel.org/xen-devel/86a60aec-f259-41be-92a0-ce66ce24f4ae@citrix.com/T/#u
> 
> For now, I'll take this and use it as a test of whether I can drive the
> new test-artefacts repo.
> 
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

+1

Acked-by: Stefano Stabellini <sstabellini@kernel.org>
diff mbox series

Patch

diff --git a/scripts/x86_64-rootfs-alpine.sh b/scripts/x86_64-rootfs-alpine.sh
index 28d8e30d8eac..f8b04c52f82e 100755
--- a/scripts/x86_64-rootfs-alpine.sh
+++ b/scripts/x86_64-rootfs-alpine.sh
@@ -12,6 +12,7 @@  apk add dbus
 apk add bash
 apk add python3
 apk add zlib
+apk add lzo
 apk add ncurses
 apk add yajl
 apk add libaio