Bug 2020729

Summary: Setting the default maximum container root partition size for Overlay with CRI-O stop working
Product: OpenShift Container Platform Reporter: Qi Wang <qiwan>
Component: NodeAssignee: Qi Wang <qiwan>
Node sub component: CRI-O QA Contact: MinLi <minmli>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, dwalsh, fgrosjea, lcolagio, minmli, nagrawal, palonsor, pehunt, qiwan, schoudha, scuppett, tmicheli, tsweeney
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2012838 Environment:
Last Closed: 2022-01-10 08:50:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2012838    
Bug Blocks: 2020716, 2020724    

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