fix(xo-server/clearHost): warn if host does not support migration network for evacuation (#6206)
This commit is contained in:
parent
0706e6f4ff
commit
20108208d0
@ -214,6 +214,10 @@ export default class Xapi extends XapiBase {
|
||||
: this.callAsync('host.evacuate', hostRef, migrationNetworkRef))
|
||||
} catch (error) {
|
||||
if (error.code === 'MESSAGE_PARAMETER_COUNT_MISMATCH') {
|
||||
log.warn(
|
||||
'host.evacuate with a migration network is not supported on this host, falling back to evacuating without the migration network',
|
||||
{ error }
|
||||
)
|
||||
await this.callAsync('host.evacuate', hostRef)
|
||||
} else {
|
||||
throw error
|
||||
|
Loading…
Reference in New Issue
Block a user