Migrating from Cg1 to Cg2 on ERE Cluster

Cgroup v1 to cgroup v2 migration (ERE 5.7.4)

Kubernetes 1.35 removes support for cgroup v1, so clusters running Kubernetes 1.35 must use cgroup v2 on every host. HPE Ezmeral Runtime Enterprise (ERE) 5.7.3 and earlier releases were tightly coupled to cgroup v1 and ran only on cgroup v1 hosts. ERE 5.7.4 removes this dependency so that the platform works on cgroup v2. ERE 5.7.4 supports Kubernetes 1.33 through 1.35.

Move hosts that still run cgroup v1 to cgroup v2 before you upgrade the cluster to Kubernetes 1.35.

Recommended Upgrade Steps

  1. Upgrade ERE to 5.7.4 GA

  2. Ensure Epic-mapr is on the latest version; if not, upgrade it

  3. Migrate the hosts from cgroup v1 to cgroup v2.

  4. Upgrade Kubernetes to 1.35.

Upgrade ERE to 5.7.4 GA

NOTE
If you are in a SUSE SP5 environment and plan to migrate to SP7. See Migrating from SUSE SP5 TO SP7 (ERE 5.7.4)cfor more information. Following this proceure replaces next two sections for SUSE SP5 Hosts.

Epic mapR upgrade

  • Up to ERE 5.7.3, there is no epic-mapr upgrade logic. A platform upgrade did not upgrade the epic-mapr container. A cluster deployed with ERE 5.7.1 or older therefore still runs its old epic-mapr version (for example 6.1.0-GA-… ), even after upgrading to 5.7.4.

  • ERE 5.7.4 adds the upgrade logic, but it does not run automatically. You must run upgrade_epic_mapr.sh manually. The latest version ( mapr:7.9.0.30.20251025070711.GA-3 ) is required to support cgroup v2, so this upgrade is mandatory.

See Epic mapR upgrade for more information.

For ERE controllers and Gateways

If the controller and gateway hosts are configured for high availability (HA), convert them one node at a time so the platform stays available.

See Migrating a Node from cgroup v1 to cgroup v2 for more information.

For Controller Hosts
Do the steps that follow:
  1. Start with the arbiter. Move it to cgroup v2, then confirm it is healthy.

  2. Next, convert the shadow controller and confirm it is healthy.

  3. When both are done, run an HA failover so the shadow controller becomes the primary.

  4. Repeat the same steps on the remaining node (the former primary).

For GateWay Hosts
  • Convert the gateway hosts one at a time. Move a node to cgroup v2 and confirm it is healthy before you start on the next one, so at least one gateway stays available.
  • Do not take more than one node of the same role out of service at a time.
  • If the controller or gateway is a single node (no HA), plan a maintenance window. The platform is unavailable while the host is converted.
  1. Schedule downtime and notify users.

  2. Move the controller host to cgroup v2 and confirm the platform services come back up.

  3. Do the same for the gateway host and confirm it is healthy.

  4. End the maintenance window once both hosts are verified.

Migrating Kubernetes hosts from cgroup v1 to cgroup v2.

Prerequisites
Customers required to:
  • Review pre-work Upgrading Kubernetes.

  • Ensure remaining kubernetes worker nodes have enough resources to accommodate load from drained worker.

Procedure

Do this procedure for One node at a time, workers first, control plane last

  1. Drain node:
    kubectl cordon <node-name>
    kubectl drain <node-name> --ignore-daemonsets --delete-emptydir-data
  2. Set the containerd cgroup driver
    NOTE
    On an existing cluster, the SystemdCgroup setting in the containerd configuration takes effect only when a node is added or re-added. Nodes already in the cluster keep their old setting, so set it manually on each node.
    Check the current value:
    cat /etc/containerd/config.toml|grep SystemdCgroup
    SystemdCgroup = false
    If SystemdCgroup = false , set it to true:
    sudo sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
  3. Switch kernel to cgroup v2. See Migrating a Node from cgroup v1 to cgroup v2 for details.

  4. After reboot, check that cgroup v2 is active ( stat -fc %T /sys/fs/cgroup shows cgroup2fs ):
    stat -fc %T /sys/fs/cgroup        -> should say cgroup2fs
    cat /sys/fs/cgroup/cgroup.controllers
    cat /proc/1/cgroup                -> single line 0::/...
  5. Confirm containerd runs and SystemdCgroup = true is still set in config.toml
  6. Check node/pods:
    kubectl get nodes
    kubectl get pods -A -o wide | grep -v Running | grep -v Completed

    Expect pods to restart for a few minutes after the node reboots, especially on control plane nodes, where the static pods restart as well.

    If the multus pod stays in Pending, check for a stuck Terminating pod that is blocking it:
    kubectl get pods -A -o wide | grep Terminating 
    Delete the stuck pod normally first:
    kubectl delete pod -n <ns> <stuck-pod>
    Use the force delete only as a last resort, if the pod is still in Terminating:
    kubectl delete pod -n <ns> <stuck-pod> --grace-period=0 --force
  7. Un-cordon for the node:
    kubectl uncordon <node-name>
    kubectl get pods -A -o wide | grep <node-name>
  8. Repeat the Steps 1. to 7 for next node.
  9. Once cluster is stable on cgroup2 across all nodes, upgrade k8s to 1.35 and validate, see Upgrading Kubernetes.