Skip to content

mtda-cli storage write intermittently fails with INTERNAL error (unbound 'result' variable) #578

@Gourav7389

Description

@Gourav7389

Running the following command:
mtda-cli -r mtda-host-ip storage write image.wic.zst
Discovered bmap file 'image.wic.bmap'
image.wic.zst: [####################] 100% (893 MiB read, 5.72 GiB written, 22 KiB/s)
'storage write' failed! (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.INTERNAL
details = "cannot access local variable 'result' where it is not associated with a value"
debug_error_string = "UNKNOWN:Error received from peer ipv4:mtda-host-ip:5556 {grpc_message:"cannot access local variable 'result' where it is not associated with a value", grpc_status:13, created_time:"2026-04-09T18:36:43.631966751+05:30"}"

)

Results in intermittent behavior:

  • Sometimes completes successfully
  • Sometimes fails with the following error:

Notes:

  • Data transfer reaches 100% even when failure occurs
  • Issue is not consistent (flaky behavior)
  • Error suggests an uninitialized variable (result) on the server side

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions