Sysbox Data Root Configuration Issues
Open
@ctalledo is already working on this.
Since Aug 18, 2021.
bug
- Dominant language
- Shell
- Stars
- 3.9k
- Forks
- 230
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 3
Description
The following Sysbox Data Root issues were observed with Sysbox-CE 0.4.0.
- specifying a Data Root of
/data/sysboxcreates the standard 5x directories under both/var/lib/sysboxand/data/sysbox - it is expected that neither
/var/lib/sysboxnor its subdirectories would be created in this scenario - this becomes confusing when confirming which directories Sysbox is using
- it also makes it more difficult to tell whether Sysbox is successfully cleaning up the Data Root directory
- using
systemctl start sysboxignores config changes in/lib/systemd/system/sysbox.service - whereas
systemctl restart sysboxdoes pick up config changes - both after firstly performing
systemctl daemon-reload
- specifying a Data Root which is a symlink produces the following error when a System container is launched
docker: Error response from daemon: OCI runtime create failed: container_linux.go:393: starting container process caused: process_linux.go:607: container init caused: standard_init_linux.go:82: validating cwd caused: rootfs_linux.go:1142: cwd /data/sysbox/shiftfs/b158cc46-6d84-4c73-94df-36f5b8517ac6 is not container's rootfs /var/lib/sysbox/shiftfs/b158cc46-6d84-4c73-94df-36f5b8517ac6 caused:: unknown.
ERRO[0006] error waiting for container: context canceled
- seems restarting Sysbox again allowed the System container to launch successfully in one test which is now not able to be reproduced
- the symlink was from
/var/lib/sysboxto/data/sysbox - the config is kept in original condition (ie. specifies
--versiononly and no--data-rootspecified on the startup line) - using a symlink works successfully in Sysbox-CE 0.3.0 (ie. the above issues are not observed)
- the workaround in Sysbox-CE 0.4.0 is to configure
--data-rootto directly point to the target directory, rather than the source directory of the symlink
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.