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

[enterprise-4.14] Issue in file installing/install_config/enabling-cgroup-v1.adoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.14.0, 4.15.0
    • Documentation / Node
    • None
    • Moderate
    • None
    • 2
    • OSDOCS Sprint 254
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      According to the documentation https://docs.openshift.com/container-platform/4.14/installing/install_config/enabling-cgroup-v1.html enabling cgroups v1 during installation can be done by adding the following manifest
      
      ~~~
      apiVersion: config.openshift.io/v2
      kind: Node
      metadata:
        name: cluster
      spec:
        cgroupMode: "v1"
      ~~~
      however apiVersion: config.openshift.io/v2 doesn't exists

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

          4.14/5

      How reproducible:

          Create manifest as explained by the docs and add it at install time

      Steps to Reproduce:

          1. Create a new cluster with the manifest
          2. start installation      
          

      Actual results:

       Installation fails with the following in the node's journal:
      
      Apr 30 11:47:50 localhost.localdomain bootkube.sh[23298]: [#2395] failed to create some manifests:
      Apr 30 11:47:50 localhost.localdomain bootkube.sh[23298]: "cgroupv1.yaml": unable to get REST mapping for "cgroupv1.yaml": no matches for kind "Node" in version "config.openshift.io/v2"
      Apr 30 11:47:50 localhost.localdomain cluster-bootstrap[23338]: [#2396] failed to create some manifests:

      Expected results:

          Installation completes

      Additional info:

      changing to v1: apiVersion: config.openshift.io/v1 installs the cluster successfully and sets the cgroup

      $ oc get nodes.config cluster -o yaml  |grep cgroupMode
        cgroupMode: v1
      
      looking at the api resources v2 doesn't exist
      
      $ oc version 
      Client Version: 4.14.10
      Kustomize Version: v5.0.1
      Server Version: 4.15.6
      Kubernetes Version: v1.28.7+f1b5f6c
      $ 
      $ oc api-resources | grep config |grep " Node"
      nodes                                                                                                                        config.openshift.io/v1                        false        Node
      $
      $ oc version
      Client Version: 4.14.10
      Kustomize Version: v5.0.1
      Server Version: 4.14.18
      Kubernetes Version: v1.27.11+749fe1d
      $
      $ oc api-resources | grep config |grep " Node"
      nodes                                                                                                                        config.openshift.io/v1                         false        Node
      $
      

              dan_chadwick Dan Chadwick
              rhn-support-dmoessner Daniel Moessner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: