Error "Invalid draft, failed to fetch the draft image" in vSphere Lifecycle Manager
search cancel

Error "Invalid draft, failed to fetch the draft image" in vSphere Lifecycle Manager

book

Article ID: 435576

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

  • VMware vSphere Lifecycle Manager (vLCM). When attempting to update the ESXi image from the cluster view "Updates" tab, the UI returns the following error: Invalid draft, failed to fetch the draft image.
  • This issue typically presents immediately following an update to the vLCM authenticated download tokens or repository URLs.
  • Log entries in var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log in vCenter looks like below.
    error vmware-vum-server[####] [Originator@#### sub=com.vmware.vcIntegrity.lifecycle.DraftCommitClusterTask] [Task, 524] Task:com.vmware.vcIntegrity.lifecycle.DraftCommitClusterTask ID:528####96-433d-2##1-119a-29#####7c25a. Task Failed. Error: Error:
    -->    com.vmware.vapi.std.errors.not_found
    --> Messages:
    -->    com.vmware.vcIntegrity.lifecycle.TaskError.GetDraftSpecFailed<Invalid draft, failed to fetch the draft image.>
    -->
     warning vmware-vum-server[0##60] [Originator@#### sub=TaskStatsCollector] [taskStatsCollector 190] Task type or creation time not present
     info vmware-vum-server[####] [Originator@#### sub=PM.AsyncTask.DraftCommitClusterTask{53}] [vciTaskBase ####] SerializeToVimFault fault:
    --> (vmodl.fault.SystemError) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = (vmodl.LocalizableMessage) [
    -->       (vmodl.LocalizableMessage) {
    -->          key = "com.vmware.vcIntegrity.lifecycle.TaskError.GetDraftSpecFailed",
    -->          arg = <unset>,
    -->          message = <unset>
    -->       }
    -->    ],
    -->    reason = "vLCM Task failed, see Error Stack for details."
    -->    msg = "{
    -->     "data": null,
    -->     "error_type": "NOT_FOUND",
    -->     "messages": [
    -->         {
    -->             "args": [],
    -->             "default_message": "Invalid draft, failed to fetch the draft image.",
    -->             "id": "com.vmware.vcIntegrity.lifecycle.TaskError.GetDraftSpecFailed"
    -->         }
    -->     ]
    --> }"
    --> }
    --> Converted fault:
    --> (vim.fault.ExtendedFault) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = (vmodl.LocalizableMessage) [
    -->       (vmodl.LocalizableMessage) {
    -->          key = "com.vmware.vcIntegrity.lifecycle.TaskError.GetDraftSpecFailed",
    -->          arg = <unset>,
    -->          message = <unset>
    -->       }
    -->    ],
    -->    faultTypeId = "SystemError",
    -->    data = (vim.KeyValue) [
    -->       (vim.KeyValue) {
    -->          key = "faultCause",
    -->          value = ""
    -->       },
    -->       (vim.KeyValue) {
    -->          key = "reason",
    -->          value = "vLCM Task failed, see Error Stack for details."
    -->       }
    -->    ]
    -->    msg = "{
    -->     "data": null,
    -->     "error_type": "NOT_FOUND",
    -->     "messages": [
    -->         {
    -->             "args": [],
    -->             "default_message": "Invalid draft, failed to fetch the draft image.",
    -->             "id": "com.vmware.vcIntegrity.lifecycle.TaskError.GetDraftSpecFailed"
    -->         }
    -->     ]
    --> }"
    --> }

 

Environment

  • VMware vCenter Server 7.0.x
  • VMware vCenter Server 8.0.x

Cause

The image draft failure is caused by incomplete metadata synchronization after updating the vSphere Lifecycle Manager (vLCM) repository URLs and authenticated download tokens.

Resolution

  1. Log in to the vSphere Client.

  2. From the main menu, navigate to Lifecycle Manager.

  3. Select ACTIONS -> Updates -> Sync updates.

  4. Monitor the Recent Tasks pane and wait for the "Download patch metadata" task to complete successfully.

  5. Navigate back to the target Cluster -> Updates tab.

  6. Select the desired ESXi host image and save the draft settings.

Additional Information