Commit 9d5b45f
fix(rest): writeError emits LINSTOR-shaped []ApiCallRc envelope
golinstor (and therefore linstor-csi) unmarshals failure responses
into a []ApiCallRc slice. We were sending a {"error": "..."}
object, which surfaced as
json: cannot unmarshal object into Go value of type
client.ApiCallError
on every failed CSI call — losing the actual error message. Switch
to the upstream-shaped envelope with the ERROR mask set so golinstor
detects pass/fail correctly.
This is the single biggest unlock for csi-sanity numbers (most of
the 36 failures shared this root cause).
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>1 parent 2bb350b commit 9d5b45f
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
163 | 171 | | |
164 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
165 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
0 commit comments