kata-containers/osbuilder

Not possible to create image with podman

GabyCT opened this issue · 1 comments

I am using Fedora 31, with podman 1.6.2, my selinux is disabled, I am trying to perform the installation of the kata-image with the following https://github.com/kata-containers/tests/pull/2257/files#diff-ced8d4860f99df224455bdabb8fce357R123. In this case, I used initrd but even if I do not use it, I am not able to run the https://github.com/kata-containers/tests/blob/master/.ci/install_kata_image.sh#L123. As I am getting the same error.

The error that I am getting is

INFO: Pull Agent source code
[OK] Pull Agent source code
INFO: Build agent
/home/testci/go/src/github.com/kata-containers/agent /go
HEAD is now at fc8bfb4 Merge pull request #722 from amshinde/ipv6-agent
[OK] git checkout successful
rm -f kata-agent kata-agent.service
go build -buildmode=pie -tags "" -o kata-agent \
        -ldflags "-X main.version=1.10.0-rc0-fc8bfb4e72aaadcc7d0f7efaae9c74579451e264 -X main.seccompSupport=no "
install -D kata-agent /rootfs/usr/bin/kata-agent
/go
[OK] Agent installed
INFO: Install /rootfs/usr/bin/kata-agent as init process
[OK] Agent is installed as init process
INFO: Check init is installed
[OK] init is installed
INFO: Create /etc/resolv.conf file in rootfs if not exist
INFO: Creating summary file
date: invalid date '@1580349119.'
INFO: Created summary file '/var/lib/osbuilder/osbuilder.yaml' inside rootfs
+ '[' yes == no ']'
+ '[' true == true ']'
+ sudo AGENT_INIT=yes USE_PODMAN=true DOCKER_RUNTIME=crun ./initrd-builder/initrd_builder.sh /home/testci/go/src/github.com/kata-containers/osbuilder/rootfs
ERROR: /home/testci/go/src/github.com/kata-containers/osbuilder/rootfs is not a directory
++ handle_error 138
++ local exit_code=1
++ local line_number=138
++ echo 'Failed at 138: sudo AGENT_INIT="${AGENT_INIT}" USE_PODMAN=true DOCKER_RUNTIME="crun" ./initrd-builder/initrd_builder.sh "$ROOTFS_DIR"'
Failed at 138: sudo AGENT_INIT="${AGENT_INIT}" USE_PODMAN=true DOCKER_RUNTIME="crun" ./initrd-builder/initrd_builder.sh "$ROOTFS_DIR"
++ exit 1
Failed at 26: "${cidir}/install_kata_image.sh" "${tag}"

/cc @jcvenegas

Closing this issue as I made a new VM and this is not longer present