From cfc42906b9fe476043258c7faa2487cf4e10fbf5 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Wed, 6 May 2015 16:49:26 +0200 Subject: [PATCH] Add debug traces for patch install. --- src/xapi.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xapi.js b/src/xapi.js index 4072b43a0..83b85f45a 100644 --- a/src/xapi.js +++ b/src/xapi.js @@ -313,6 +313,8 @@ export default class Xapi extends XapiBase { return this.getObjectByUuid(uuid) } catch (error) {} + debug('downloading patch', uuid) + const patchInfo = (await this._getXenUpdates()).patches[uuid] const PATCH_RE = /\.xsupdate$/ @@ -340,6 +342,8 @@ export default class Xapi extends XapiBase { const patch = await this._getOrUploadPoolPatch(patchUuid) const host = this.getObject(hostId) + debug('installing patch', patchUuid) + await this.call('pool_patch.apply', patch.$ref, host.$ref) }