[Bug Report] Template-related Issue
1. Template Architecture
#1630
Split template control flow from data flow, move build execution to compute instances, and add local/S3-compatible artifact storage.
2. Template Build Lifecycle and Operability
#66
Templates stuck in
PENDINGorBUILDINGcannot be deleted because the CLI considers the build job active. A cancellation, timeout, or force-cleanup mechanism is needed.#1518
A transient database
invalid connectioncan leave template definitions and jobs permanentlyPENDING, after which deletion is blocked. This issue is marked as a duplicate of #66 but adds a concrete database-failure reproduction.#1105
Retrying snapshot creation with the same
request_idfails idempotency matching because the generated snapshot/template ID changes the stored fingerprint.
3. Template Distribution, Prewarming, and Replica Recovery
#182
New nodes require manual template prewarming. Templates should support automatic prewarming based on node labels and replica targets.
#578
New nodes can miss historical template distribution events. Template replica backfill, sandbox failover, and snapshot disaster recovery are needed.
#499 — closed, but implementation not landed
Distribute templates created by
tpl commitlikecreate-from-imagetemplates. The issue was closed with a comment that the unified TemplateCenter pipeline would provide this behavior, but the standalone TemplateCenter has not merged.#1646
Template creation during a compute-node rolling update can remain
PARTIALLY_READYorFAILEDpermanently because failed replicas are not retried after nodes recover.
4. Template Artifacts, Snapshots, and Storage Recovery
#1197
Unify pause with snapshots and support cross-node snapshot resume, remote snapshot state, asynchronous transfer, scheduling, and cascading cleanup.
#1522
CubeSandbox snapshot IDs and aliases differ from the official E2B contract, breaking SDK workflows that expect one qualified ID for restore, deletion, and sorting.
#1591
Cubelet's configured
image_base_pathdoes not control ext4 artifact downloads or sandbox pmem paths, which continue to use the hard-codedcubetool_base_dir.#1005 — closed, but no merged direct fix confirmed
In HA mode,
template redocan fail on a compute node with a pmem artifact SHA256 mismatch. The issue was redirected to the TemplateCenter work; its directly linked concurrency PR #1054 was closed without merging, and the standalone TemplateCenter is still pending.#1618
CubeS3lvol snapshot deletion does not reclaim remote S3 objects online and currently requires an offline cleanup tool.
#1678
Deleting a template can remove a rootfs artifact still referenced by snapshots, making later
create-from-snapshotfail with an artifact SHA256 mismatch.#1680
Running
rcow_purge.shcan leave the local S3 metadata index inconsistent with the cleared SPDK storage pool, causing subsequent S3-backed template builds to fail.
5. Template Compatibility and Upgrades
#989
Guest image upgrades can make existing templates and paused sandboxes unusable. Templates and snapshots need explicit runtime dependency pinning and a compatible upgrade strategy.
#1159 — closed, original capability not implemented
template redostill cannot rebuild snapshot-based templates withoutsource_image_ref. The issue was closed in favor of component multi-version support (#1203). PR #1316 has landed and reduces future upgrade breakage, but it does not implement the requested snapshot-template redo path.
6. Image, Guest Runtime, and Product Integration
#1227
CubeSandbox depends on E2B's upstream
envdfor readiness, commands, files, and template integration. A maintained minimalcube-envdplus compatibility tests is proposed.#1233
Template
envsand sandbox creation-timeenv_varsare visible through different execution paths. Their merge and precedence semantics need to be made consistent.#1327
AgentHub falls back to the hard-coded template alias
wecom-ds-openclaw, but a self-hosted installation does not provision that alias, so instance creation fails when no template is selected.
Source: TencentCloud/CubeSandbox