expanding rootfs size does not seem to work
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- operating-systems
Research direction
Start by tracing the reported labels through containerd's plugins/snapshots/windows/common.go and plugins/snapshots/windows/windows.go, then compare the related handling in plugins/snapshots/lcow/lcow.go. Reproduce the report using both labels and document whether they reach the Windows rootfs path; done means establishing the implementation status and recording the evidence or a tested resolution.
Written by the indexing model from the issue text.
Description
Asking around on slack and looking at various PR/code there seems to be some ability to increase the rootfs size from 20GB. I was directed to create an issue on this repo.
Working with containerd there are several PRs that reference this (linked below) each describing containerd ns labels. We have applied those labels and they seem to have no effect.
# containerd code base
egrep -i -R 'rootfs' ./plugins | grep -E -i "label"
egrep: warning: egrep is obsolescent; using grep -E
./plugins/snapshots/lcow/lcow.go: rootfsSizeLabel = "containerd.io/snapshot/io.microsoft.container.storage.rootfs.size-gb"
./plugins/snapshots/lcow/lcow.go: rootfsLocLabel = "containerd.io/snapshot/io.microsoft.container.storage.rootfs.location"
./plugins/snapshots/lcow/lcow.go: if sizeGBstr, ok := snapshotInfo.Labels[rootfsSizeLabel]; ok {
./plugins/snapshots/lcow/lcow.go: scratchLocation := snapshotInfo.Labels[rootfsLocLabel]
./plugins/snapshots/windows/common.go: if sizeGBstr, ok := snapshotInfo.Labels[rootfsSizeInGBLabel]; ok {
./plugins/snapshots/windows/common.go: log.G(ctx).Warnf("%q label is deprecated, please use %q instead.", rootfsSizeInGBLabel, rootfsSizeInBytesLabel)
./plugins/snapshots/windows/common.go: return 0, fmt.Errorf("failed to parse label %q=%q: %w", rootfsSizeInGBLabel, sizeGBstr, err)
./plugins/snapshots/windows/common.go: if sizeBytesStr, ok := snapshotInfo.Labels[rootfsSizeInBytesLabel]; ok {
./plugins/snapshots/windows/common.go: return 0, fmt.Errorf("failed to parse label %q=%q: %w", rootfsSizeInBytesLabel, sizeBytesStr, err)https://github.com/containerd/containerd/issues/6694
./plugins/snapshots/windows/windows.go: // Deprecated: use rootfsSizeInBytesLabel
./plugins/snapshots/windows/windows.go: rootfsSizeInGBLabel = "containerd.io/snapshot/io.microsoft.container.storage.rootfs.size-gb"
./plugins/snapshots/windows/windows.go: // rootfsSizeInBytesLabel is a label to control a Windows containers scratch space
./plugins/snapshots/windows/windows.go: rootfsSizeInBytesLabel = "containerd.io/snapshot/windows/rootfs.sizebytes"
For example we have tried setting both containerd.io/snapshot/windows/rootfs.sizebytes and containerd.io/snapshot/io.microsoft.container.storage.rootfs.size-gb and neither seem to impact anything.
Are we doing something wrong or is the simply not implemented end-to-end?
Thanks!
- Dominant language
- Go
- Stars
- 694
- Forks
- 304
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 28
Contributor guide
No contributing guide indexed for this repository
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.
More from microsoft/hcsshim
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
All issues in microsoft/hcsshim
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#4024 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100