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
-
Upgrade ERE to 5.7.4 GA
-
Ensure Epic-mapr is on the latest version; if not, upgrade it
-
Migrate the hosts from cgroup v1 to cgroup v2.
-
Upgrade Kubernetes to 1.35.
Upgrade ERE to 5.7.4 GA
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.
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.
-
Start with the arbiter. Move it to cgroup v2, then confirm it is healthy.
-
Next, convert the shadow controller and confirm it is healthy.
-
When both are done, run an HA failover so the shadow controller becomes the primary.
-
Repeat the same steps on the remaining node (the former primary).
- 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.
-
Schedule downtime and notify users.
-
Move the controller host to cgroup v2 and confirm the platform services come back up.
-
Do the same for the gateway host and confirm it is healthy.
-
End the maintenance window once both hosts are verified.
Migrating Kubernetes hosts from cgroup v1 to cgroup v2.
-
Review pre-work Upgrading Kubernetes.
-
Ensure remaining kubernetes worker nodes have enough resources to accommodate load from drained worker.
Do this procedure for One node at a time, workers first, control plane last
- Drain node:
kubectl cordon <node-name> kubectl drain <node-name> --ignore-daemonsets --delete-emptydir-data - Set the containerd cgroup driverNOTEOn 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 = falseIf SystemdCgroup = false , set it to true:sudo sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml -
Switch kernel to cgroup v2. See Migrating a Node from cgroup v1 to cgroup v2 for details.
- 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::/... - Confirm containerd runs and
SystemdCgroup = trueis still set inconfig.toml - Check node/pods:
kubectl get nodes kubectl get pods -A -o wide | grep -v Running | grep -v CompletedExpect 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 TerminatingDelete 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 - Un-cordon for the node:
kubectl uncordon <node-name> kubectl get pods -A -o wide | grep <node-name> - Repeat the Steps 1. to 7 for next node.
- Once cluster is stable on cgroup2 across all nodes, upgrade k8s to 1.35 and validate, see Upgrading Kubernetes.