[Bug Report] Cubelet v0.7.1: excessive warm-up delay after restart caused by merged network service

Author: Hw-TinYCreated Sep 21, 2026Updated Sep 24, 2026
Labelsbugarea/Cubeletarea/CubeNetneeds-triagebug-report-but-feature-request

Summary

After upgrading from CubeSandbox v0.5.1 to v0.7.1, restarting the cubelet service causes a 20+ minute warm-up delay before sandbox creation returns to normal performance. In v0.5.1, the network subsystem was a separate service — restarting cubelet was instant and did not affect network readiness. In v0.7.1, the network subsystem is merged into cubelet, and a restart triggers a full network re-initialization cycle that includes a 154-second binary boot plus extensive stale TAP cleanup. During this warm-up period, sandbox creation either fails entirely (no healthy nodes, no more resource) or suffers 5x latency degradation.

Environment

  • CubeSandbox version: CubeSandbox v0.7.1 (upgraded from v0.5.1)
  • Host OS: openEuler
  • Host Kernel version: 6.6.0
  • Hardware: ARM64 (aarch64)
  • Deployment: single-node all-in-one (CubeMaster, Cubelet, CubeOps, Cube API, MySQL, Redis, MinIO on same host)
  • Sandbox spec per instance: 2000m CPU, 2000Mi memory
  • Benchmark tool: cube-bench -c 50 -n 500 -m create-only

Steps to Reproduce

  1. Start with a running cube-sandbox v0.7.1 all-in-one deployment.
  2. Restart cubelet:
    systemctl restart cube-sandbox-cubelet.service
  3. Immediately observe: systemctl returns success, cubelet PID is running.
  4. Run benchmark at different intervals after restart:
    cube-bench -c 50 -n 500 -m create-only --no-tui

Expected Behavior

After systemctl restart completes, Cubelet should become fully operational within a few seconds. This includes being schedulable, stable, exhibiting reasonable latency, and achieving 100% sandbox creation success. This performance should be comparable to v0.5.1, where Cubelet and the network were separate services.

Actual Behavior

Time after restart NODES_SCANNED Success rate Avg latency What's happening
< 3 min 0/0 0% N/A Cubelet binary booting (~154s); gRPC not accepting requests → CubeMaster circuit breaker
3–5 min 0/0 0% N/A gRPC responds but sandbox creation times out → 150.0.226.12 filter_out
5–15 min 1/1 ~70% ~5X ms Node re-appears but metrics unstable; quotaCpuFree:-130000, no more resource (130597)
> 20 min 1/1 100% ~X ms Fully stabilized

systemctl restart returns immediately, misleading users into thinking the service is ready when the internal network stack is still initializing for over 20 minutes. There is no external signal or health check to indicate actual readiness.

Additional Context

Architecture change: network merged into cubelet

Aspect v0.5.1 v0.7.1
Cubelet + Network Separate systemd services Merged into single cubelet process
Restart latency < 1 second systemctl returns instantly, but service needs 154s+
Network health visibility Check network service independently No external indicator
Time to usable after restart < 1 minute ~20 minutes

Stale state cleanup

After restart, cubelet log shows extensive cleanup of leftover TAP interfaces from the previous run:

network runtime no-state TAP remains Cleaning after startup cleanup attempt:
tap=192.168.x.x err=delete CubeEgress policy ... connection refused

The cube-sandbox-cube-egress.service is in failed state, causing cleanup retries to loop against an unavailable egress endpoint, further extending the warm-up period.

Platform note

This issue has currently only been observed on ARM64. It has not been verified whether x86 deployments are affected.

Workaround

Wait 20+ minutes after each cubelet restart. cubemastercli list showing NODES_SCANNED 1/1 is necessary but not sufficient — the node appears schedulable but performs poorly for another ~15 minutes.

Source: TencentCloud/CubeSandbox