FYI I was unable to disconnect the SR for the offline host as well:
pbd.disconnect
{
"id": "9355e1d9-164c-76a8-6ab7-aba7a9793b31"
}
{
"code": "HOST_OFFLINE",
"params": [
"OpaqueRef:769bbac2-3fc3-4761-91d1-51fa8468fc72"
],
"task": {
"uuid": "3cb1c5e9-e7cb-83b5-e448-ccddc3c4fddf",
"name_label": "Async.PBD.unplug",
"name_description": "",
"allowed_operations": [],
"current_operations": {},
"created": "20250919T14:58:59Z",
"finished": "20250919T14:58:59Z",
"status": "failure",
"resident_on": "OpaqueRef:32345a51-c14d-4b3c-ae6e-e411c3c8808c",
"progress": 1,
"type": "<none/>",
"result": "",
"error_info": [
"HOST_OFFLINE",
"OpaqueRef:769bbac2-3fc3-4761-91d1-51fa8468fc72"
],
"other_config": {},
"subtask_of": "OpaqueRef:NULL",
"subtasks": [],
"backtrace": "(((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 124))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 160))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))"
},
"message": "HOST_OFFLINE(OpaqueRef:769bbac2-3fc3-4761-91d1-51fa8468fc72)",
"name": "XapiError",
"stack": "XapiError: HOST_OFFLINE(OpaqueRef:769bbac2-3fc3-4761-91d1-51fa8468fc72)
at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12)
at default (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_getTaskResult.mjs:13:29)
at Xapi._addRecordToCache (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1073:24)
at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1107:14
at Array.forEach (<anonymous>)
at Xapi._processEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1097:12)
at Xapi._watchEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1270:14)"
}