Skip to content

Commit

Permalink
fix: Skip mounting zero-byte lxcfs files (#2604) (#2631)
Browse files Browse the repository at this point in the history
Co-authored-by: Joongi Kim <joongi@lablup.com>
  • Loading branch information
lablup-octodog and achimnol authored Aug 3, 2024
1 parent 27060b2 commit aefa6e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/2604.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Skip mounting zero-byte lxcfs files when lxcfs is activated to prevent crashes in session containers
1 change: 1 addition & 0 deletions src/ai/backend/agent/docker/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ async def get_intrinsic_mounts(self) -> Sequence[Mount]:
MountPermission.READ_WRITE,
)
for lxcfs_proc_path in (lxcfs_root / "proc").iterdir()
if lxcfs_proc_path.stat().st_size > 0
)
mounts.extend(
Mount(
Expand Down

0 comments on commit aefa6e8

Please sign in to comment.