Repository navigation
Description
"When using the v1.8.0 ARM version, whether through CRD or CLI, when attempting to inject faults into pods, it keeps reporting that the resource is not found even though the resource actually exists. Is it possible that the namespace parameter is not being passed correctly?"
{"level":"info","ts":"2026-05-07T08:22:47.705Z","logger":"controller-runtime.controller","msg":"Starting Controller","controller":"chaosblade-controller"}
{"level":"info","ts":"2026-05-07T08:22:47.705Z","logger":"controller-runtime.controller","msg":"Starting workers","controller":"chaosblade-controller","worker count":20}
time="2026-05-07T08:22:47Z" level=info msg="periodically clean up blade, blade size: 1"
time="2026-05-07T08:22:47Z" level=info msg="start periodically clean up blade ticker, interval: 72h"
time="2026-05-07T08:29:31Z" level=info msg="trigger delete event, name: delete-gateway-pod-v6"
{"level":"debug","ts":"2026-05-07T08:29:31.241Z","logger":"controller-runtime.controller","msg":"Successfully Reconciled","controller":"chaosblade-controller","request":"bixi-base/delete-gateway-pod-v6"}
time="2026-05-07T08:30:11Z" level=info msg="trigger create event, name: delete-gateway-pod-v6"
W0507 08:30:11.416284 1 warnings.go:70] metadata.finalizers: "finalizer.chaosblade.io": prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers
time="2026-05-07T08:30:11Z" level=info msg="trigger update event, name: delete-gateway-pod-v6"
{"level":"debug","ts":"2026-05-07T08:30:11.416Z","logger":"controller-runtime.controller","msg":"Successfully Reconciled","controller":"chaosblade-controller","request":"bixi-base/delete-gateway-pod-v6"}
time="2026-05-07T08:30:11Z" level=error msg="update chaosblade phase to Initialized failed" Request.Name=delete-gateway-pod-v6 error="chaosblades.chaosblade.io "delete-gateway-pod-v6" not found"
{"level":"debug","ts":"2026-05-07T08:30:11.418Z","logger":"controller-runtime.controller","msg":"Successfully Reconciled","controller":"chaosblade-controller","request":"bixi-base/delete-gateway-pod-v6"}
time="2026-05-07T08:30:11Z" level=error msg="update chaosblade phase to Initialized failed" Request.Name=delete-gateway-pod-v6 error="chaosblades.chaosblade.io "delete-gateway-pod-v6" not found"
{"level":"debug","ts":"2026-05-07T08:30:11.419Z","logger":"controller-runtime.controller","msg":"Successfully Reconciled","controller":"chaosblade-controller","request":"bixi-base/delete-gateway-pod-v6"}
Activity
spencercjh commentedon May 8, 2026
Please show your CLI cmds or CR yaml definition.
oss-sentinel-ai commentedon Jun 4, 2026
Issue Evaluation
Category:
type/bug| Status: Needs InfoThis issue reports that on ARM architecture with ChaosBlade v1.8.0, pod injection via CRD or CLI fails with a "resource not found" error even though the resource exists, possibly due to namespace parameter not being properly passed.
Current Status: Maintainer @xcaspar has already requested additional information (CLI commands and CR YAML).
To proceed with verification, the following is needed:
blade createcommand used (both CLI and CRD versions)chaosblade-operatorlogskubectl get chaosblade -Aoutput to confirm CR creationPreliminary Assessment: The namespace handling in the Kubernetes executor (
exec/kubernetes/executor.go) and operator CRD controller should be architecture-independent. The "resource not found" error could be related to:chaosblade-toolOnce the requested information is provided, the issue can be verified and a fix proposed.
Automated evaluation by oss-taishan-ai - ChaosBlade Community Bot
oss-sentinel-ai commentedon Jun 8, 2026
Code-Level Analysis
I have analyzed the operator code to investigate this issue.
Root Cause Analysis
The error log shows:
This error occurs in
pkg/controller/chaosblade/controller.goat the reconcile loop. The controller:r.client.Get(ctx, request.NamespacedName, cb)— succeedsr.client.Update(ctx, cb)— succeeds (triggering a new reconcile)r.client.Status().Update(ctx, cb)to set phase toInitialized— fails with "not found"The issue is a race condition: after step 2 updates the CR (changing
ResourceVersion), the cachedcbobject has a staleResourceVersion. When step 3 tries to update the status, the API server may reject it.ARM-Specific Consideration
On ARM (aarch64) platforms, the operator may be slower due to lower CPU performance, increasing the window for this race condition. The error appears more frequently on ARM because:
Suggested Fix
In
pkg/controller/chaosblade/controller.go, add a re-fetch before the status update:Workaround
As a temporary workaround, you can manually retry the operation. The error is transient and the reconcile loop should eventually succeed on retry.
woyaonidish commentedon Jun 8, 2026
/approve