Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-3496

systemReserved:ephemeral-storage in KubeletConfig doesn't work as expected

XMLWordPrintable

    • None
    • OCPNODE Sprint 227 (Blue)
    • 1
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-2079. The following is the description of the original issue:

      Description of problem:

      The setting of systemReserved: ephemeral-storage in KubeletConfig is not working as expected. 
      

      Version-Release number of selected component (if applicable):

      4.10.z, may exist on other OCP versions as well. 
      

      How reproducible:

      always
      

      Steps to Reproduce:

      1. Create a KubeletConfig on the node:
      
      apiVersion: machineconfiguration.openshift.io/v1
      kind: KubeletConfig
      metadata:
        name: system-reserved-config
      spec:
        machineConfigPoolSelector:
          matchLabels:
            pools.operator.machineconfiguration.openshift.io/master: ""
        kubeletConfig:
          systemReserved:
            cpu: 500m
            memory: 500Mi
            ephemeral-storage: 10Gi
      
      
      2. Check node allocatable storage with command: oc describe node |grep -C 5 ephemeral-storage
      

      Actual results:

      The Allocatable:ephemeral-storage on the node is not capacity.ephemeral-storage - systemReserved.ephemeral-storage - eviction-thresholds (10% of the capacity.ephemeral-storage by default)  

      Expected results:

      The Allocatable:ephemeral-storage on the node should be capacity.ephemeral-storage - systemReserved.ephemeral-storage - eviction-thresholds (10% of the capacity.ephemeral-storage by default) 

      Additional info:

      The root cause might be: process argument '--system-reserved=cpu=500m,memory=500Mi' overwrote the setting in /etc/kubernetes/kubelet.conf, one example:
      
      root        6824       1 27 Sep30 ?        1-09:00:24 kubelet --config=/etc/kubernetes/kubelet.conf --bootstrap-kubeconfig=/etc/kubernetes/kubeconfig --kubeconfig=/var/lib/kubelet/kubeconfig --container-runtime=remote --container-runtime-endpoint=/var/run/crio/crio.sock --runtime-cgroups=/system.slice/crio.service --node-labels=node-role.kubernetes.io/master,node.openshift.io/os_id=rhcos --node-ip=192.168.58.47 --minimum-container-ttl-duration=6m0s --cloud-provider= --volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume/exec --hostname-override= --register-with-taints=node-role.kubernetes.io/master=:NoSchedule --pod-infra-container-image=quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:4a7b6408460148cb73c59677dbc2c261076bc07226c43b0c9192cc70aef5ba62 --system-reserved=cpu=500m,memory=500Mi --v=2 --housekeeping-interval=30s
      
      
      

              harpatil@redhat.com Harshal Patil
              openshift-crt-jira-prow OpenShift Prow Bot
              Sunil Choudhary Sunil Choudhary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: