Bug 2020729 - Setting the default maximum container root partition size for Overlay with CRI-O stop working
Summary: Setting the default maximum container root partition size for Overlay with CR...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.9
Hardware: x86_64
OS: All
high
high
Target Milestone: ---
: 4.9.z
Assignee: Qi Wang
QA Contact: MinLi
URL:
Whiteboard:
Depends On: 2012838
Blocks: 2020716 2020724
TreeView+ depends on / blocked
 
Reported: 2021-11-05 17:50 UTC by Qi Wang
Modified: 2022-01-10 08:51 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2012838
Environment:
Last Closed: 2022-01-10 08:50:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github cri-o cri-o pull 5437 0 None Merged [release-1.22] Bug 2020729: fix override storage options from storage.conf 2021-12-20 21:35:43 UTC
Red Hat Product Errata RHBA-2022:0029 0 None None None 2022-01-10 08:51:15 UTC

Comment 1 Peter Hunt 2021-12-20 21:35:56 UTC
PR merged

Comment 3 MinLi 2021-12-24 08:40:47 UTC
verified!

$ oc get clusterversion 
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-12-23-045233   True        False         3h44m   Cluster version is 4.9.0-0.nightly-2021-12-23-045233

$ oc get containerruntimeconfig overlay-size -o yaml 
apiVersion: machineconfiguration.openshift.io/v1
...
spec:
  containerRuntimeConfig:
    logLevel: debug
    overlaySize: 9G
  machineConfigPoolSelector:
    matchLabels:
      custom-crio-overlay: overlay-size

sh-4.4# chroot /host 
sh-4.4# head -n 7 /etc/containers/storage.conf 
[storage]
  driver = "overlay"
  runroot = "/var/run/containers/storage"
  graphroot = "/var/lib/containers/storage"
  [storage.options]
    additionalimagestores = []
    size = "9G"

$ oc get pod 
NAME          READY   STATUS    RESTARTS   AGE
hello-pod-1   1/1     Running   0          8s

$ oc rsh hello-pod-1
# df -h 
Filesystem      Size  Used Avail Use% Mounted on
overlay         9.0G   12K  9.0G   1% /
tmpfs            64M     0   64M   0% /dev
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
shm              64M     0   64M   0% /dev/shm
tmpfs           3.8G   50M  3.8G   2% /etc/hostname
/dev/nvme0n1p4  120G  9.1G  111G   8% /etc/hosts
tmpfs           6.5G   20K  6.5G   1% /run/secrets/kubernetes.io/serviceaccount
tmpfs           3.8G     0  3.8G   0% /proc/acpi
tmpfs           3.8G     0  3.8G   0% /proc/scsi
tmpfs           3.8G     0  3.8G   0% /sys/firmware

Comment 7 errata-xmlrpc 2022-01-10 08:50:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.9.13 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:0029


Note You need to log in before you can comment on or make changes to this bug.