@olivierlambert after tracing through the xen-orchestra code, I found where the problem originates from. I see this error in XO whenever a cloud config drive is being created:
2023-05-05T22:51:22.141Z xo:xapi WARN importVdiContent: {
error: Error: 404 Not Found
at Object.assertSuccess (/home/node/xen-orchestra/node_modules/http-request-plus/index.js:138:19)
at httpRequestPlus (/home/node/xen-orchestra/node_modules/http-request-plus/index.js:205:22)
at Xapi.putResource (/home/node/xen-orchestra/packages/xen-api/src/index.js:508:22)
at Xapi.importContent (/home/node/xen-orchestra/@xen-orchestra/xapi/vdi.js:138:7)
at Xapi.createCloudInitConfigDrive (file:///home/node/xen-orchestra/packages/xo-server/src/xapi/index.mjs:1332:5)
at Xo.<anonymous> (file:///home/node/xen-orchestra/packages/xo-server/src/api/vm.mjs:211:11)
at Api.#callApiMethod (file:///home/node/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:417:20) {
originalUrl: 'https://10.0.0.12/import_raw_vdi/?format=raw&vdi=OpaqueRef%3A696fd7c8-2560-5bca-3047-fcd53b905725&session_id=OpaqueRef%3A1d0c35c4-1107-aea1-02c9-352d7f6a0a5c&task_id=OpaqueRef%3Acabc6a41-7f36-2ae5-d03b-5515d77f8c60',
url: 'https://10.0.0.13/import_raw_vdi/?format=raw&vdi=OpaqueRef:696fd7c8-2560-5bca-3047-fcd53b905725&session_id=OpaqueRef:1d0c35c4-1107-aea1-02c9-352d7f6a0a5c&task_id=OpaqueRef:cabc6a41-7f36-2ae5-d03b-5515d77f8c60',
pool_master: host {
uuid: 'd1e916dc-8f8a-4aec-98c1-206c4c8144b0',
name_label: 'minisforum-hm80-01.servers.illenium.gg',
name_description: 'Default install',
memory_overhead: 1161101312,
allowed_operations: [Array],
current_operations: [Object],
API_version_major: 2,
API_version_minor: 20,
API_version_vendor: 'XenSource',
API_version_vendor_implementation: {},
enabled: true,
software_version: [Object],
other_config: [Object],
capabilities: [Array],
cpu_configuration: {},
sched_policy: 'credit',
supported_bootloaders: [Array],
resident_VMs: [Array],
logging: {},
PIFs: [Array],
suspend_image_sr: 'OpaqueRef:b90d54ba-44e7-8181-a4a2-6593276e73cd',
crash_dump_sr: 'OpaqueRef:b90d54ba-44e7-8181-a4a2-6593276e73cd',
crashdumps: [],
patches: [],
updates: [],
PBDs: [Array],
host_CPUs: [Array],
cpu_info: [Object],
hostname: 'minisforum-hm80-01.servers.illenium.gg',
address: '10.0.0.12',
metrics: 'OpaqueRef:655a27bd-de06-75cb-d231-8460d949d70a',
license_params: [Object],
ha_statefiles: [],
ha_network_peers: [],
blobs: {},
tags: [],
external_auth_type: '',
external_auth_service_name: '',
external_auth_configuration: {},
edition: 'xcp-ng',
license_server: [Object],
bios_strings: [Object],
power_on_mode: '',
power_on_config: {},
local_cache_sr: 'OpaqueRef:b90d54ba-44e7-8181-a4a2-6593276e73cd',
chipset_info: [Object],
PCIs: [Array],
PGPUs: [Array],
PUSBs: [Array],
ssl_legacy: false,
guest_VCPUs_params: {},
display: 'enabled',
virtual_hardware_platform_versions: [Array],
control_domain: 'OpaqueRef:58fb5c9b-18c4-6578-803a-d9b8db989ec9',
updates_requiring_reboot: [],
features: [],
iscsi_iqn: 'iqn.2023-03.gg.illenium.servers:6e94cf19',
multipathing: false,
uefi_certificates: '',
certificates: [Array],
editions: [Array],
pending_guidances: [],
tls_verification_enabled: true,
last_software_update: '19700101T00:00:00Z',
https_only: false
},
SR: SR {
uuid: '8c7e88d7-25b4-02e2-5a4b-6e1e3ead70cf',
name_label: 'minisforum-hm80-02 SSD',
name_description: '',
allowed_operations: [Array],
current_operations: {},
VDIs: [Array],
PBDs: [Array],
virtual_allocation: 25404899328,
physical_utilisation: 289996800,
physical_size: 901115478016,
type: 'ext',
content_type: 'user',
shared: false,
other_config: [Object],
tags: [],
sm_config: [Object],
blobs: {},
local_cache_enabled: true,
introduced_by: 'OpaqueRef:NULL',
clustered: false,
is_tools_sr: false
},
VDI: VDI {
uuid: 'c8ccacc8-38bc-4d46-9649-ecfb65e24da6',
name_label: 'XO CloudConfigDrive',
name_description: '',
allowed_operations: [Array],
current_operations: {},
SR: 'OpaqueRef:13a829ed-3408-f42e-695e-f14adf469fb3',
VBDs: [],
crash_dumps: [],
virtual_size: 10485760,
physical_utilisation: 3584,
type: 'user',
sharable: false,
read_only: false,
other_config: {},
storage_lock: false,
location: 'c8ccacc8-38bc-4d46-9649-ecfb65e24da6',
managed: true,
missing: false,
parent: 'OpaqueRef:NULL',
xenstore_data: {},
sm_config: {},
is_a_snapshot: false,
snapshot_of: 'OpaqueRef:NULL',
snapshots: [],
snapshot_time: '19700101T00:00:00Z',
tags: [],
allow_caching: false,
on_boot: 'persist',
metadata_of_pool: '',
metadata_latest: false,
is_tools_iso: false,
cbt_enabled: false
}
}
}
This seems to come from this specific line of code: https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-server/src/xapi/index.mjs#L1332-L1334
And there's a comment there as well by 1 of the devs which suggests that it could be a potential bug?