Skip to content

Container import from directory with sockets fails #892

@BeHom

Description

@BeHom

Version of Warewulf

What version of Warewulf are you using? Run

wwctl version:   4.4.1-1.git_d6f6fed
rpc version: apiPrefix:"rc1" apiVersion:"1" warewulfVersion:"4.4.1-1.git_d6f6fed"

Expected behavior

During the development process of a container definition file, I need to import, delete and re-import a container from the Apptainer build process. While it works one time it failed the 2nd time.
The expected behavior is that the import should be possible at any time .

Actual behavior

Sequence of work

  • release the container under test from the actual configuration.
    wwctl profile set --yes --container rocky-8 "default"
  • build the new container sandbox based on the modified definition file
    apptainer build --sandbox /tmp/rocky-8-def ./rocky-8-def.def
  • delete the old container
    wwctl container delete rocky-def
  • import the new container from sandbox (here the problem will occur the 2nd time).
    wwctl container import /tmp/rocky-8-def rocky-def
  • activate the new container for some nodes
    wwctl profile set --yes --container rocky-def "default"
  • Test the running node

During the import step, the following error occurred.
wwctl container import /tmp/rocky-8-def rocky-def
ERROR : could not import image: lchown /var/lib/warewulf/chroots/rocky-def/rootfs/run/user/0/gnupg/d.hkt3xk3ifea4rs471snc7nsb/S.gpg-agent: no such file or directory
ERROR: could not import image: lchown /var/lib/warewulf/chroots/rocky-def/rootfs/run/user/0/gnupg/d.hkt3xk3ifea4rs471snc7nsb/S.gpg-agent: no such file or directory

No matter if I restarted warewulf or reconfigured warewulf, the problem remains.
Only a reboot of the warewulf master server will fix it.

It looks like artifacts from the old container I deleted are preventing a new import.

A test with a new container and then an import was succesfull possible in the error situation.
Only the import into a previously existing container name, in my case rocky-def, is not possible.

Steps to reproduce this behavior

See above.

How can others reproduce this issue/problem?

What OS/distro are you running

$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.8 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"

How did you install Warewulf

dnf install ./warewulf-4.4.1-1.rpm

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions