Skip to content

file access conflict for shim binaries #66

Open
@phyrog

Description

@phyrog

In some cases, the node installer exits with this error:

ERROR failed to install error="failed to install shim 'spin-v2': open /mnt/node-root/opt/kwasm/bin/containerd-shim-spin-v2: text file busy"

This happens when containerd has already started a shim process with that binary and the installer wants to overwrite the binary file.

I believe we need to change the behavior of always copying the shim binaries and then detecting if something changed to first detect a change and then copy the binary: https://github.com/spinkube/runtime-class-manager/blob/6f849a8585c36f0318e8e89e9282842d5573b0c1/cmd/node-installer/install.go#L81

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions