-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.0, rhel-10.1
-
None
-
Yes
-
Critical
-
rhel-image-mode
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
All
-
None
What were you trying to do that didn't work?
Build an Image mode VM and update
What is the impact of this issue to you?
It breaks the concept of seamless updates.
How reproducible is this bug?:
Always with the latest (10.1/latest) images:
rhel-bootc 10.1 9363fa2166e367e5f0a022a8db9204ce68cff4eb12dcb59ad489d40dd6bb9297 rhel-bootc 10.0 7c752f28826bd0d41ed53daae57b45e13f0e89e179c7fee7cf0452c9a0b7d785 rhel-bib 10 e5145000c04e1d8e17f1bc4c3e6c2dfacd59c85558fe463599dc5e4d892cbd25
Steps to reproduce
- Create a simple Containerfile (1)
- Convert to QCOW2 (example)
- Add a package to the original containerfile (2)
- Run bootc update and notice that all layers will be replaced (3)
(1)
FROM registry.redhat.io/rhel10/rhel-bootc:10.1
(2)
FROM registry.redhat.io/rhel10/rhel-bootc:10.1 RUN dnf install -y mkpasswd
(3)
bash-5.2# bootc upgrade --check Update available for: docker://quay.io/kubealex/image-mode-test:latest Version: 10.1 Digest: sha256:73d25b3e6e9644abbc9ed3878ba34a398f580616a5efafe34b2deaa600e3e9ef Total new layers: 67 Size: 939.2 MB Removed layers: 66 Size: 1.6 GB Added layers: 67 Size: 939.2 MB
Expected results
Only the changed layers are fetched
Actual results
bash-5.2# bootc upgrade --check Update available for: docker://quay.io/kubealex/image-mode-lbi:latest Version: 10.1 Digest: sha256:73d25b3e6e9644abbc9ed3878ba34a398f580616a5efafe34b2deaa600e3e9ef Total new layers: 67 Size: 939.2 MB Removed layers: 66 Size: 1.6 GB Added layers: 67 Size: 939.2 MB