Unable to upload the master image on MCS machine catalog in GCP

Unable to upload the master image on MCS machine catalog in GCP

book

Article ID: CTX693078

calendar_today

Updated On:

Description

Error when updating the catalog

Action Name: MC_UpdateMachineCatalog

Exception:

  StudioErrorId : ProvisioningTaskError

  ErrorCategory : NotSpecified

  TaskState : UnknownError

  TaskStateInformation : Terminated

  ErrorId : ManagedMachineGeneralException

  Operation : PreparingMasterImage

  ErrorMessage : Error in Cloud Build Log: [Daisy] Errors in one or more workflows:

Step #1:  image-export-ext: step "export-disk" run error: step "wait-for-inst-export-disk" run error: WaitForInstancesSignal FailureMatch found for "inst-export-disk-image-export-ext-export-disk-mmr3d": "ExportFailed: Failed to copy disk size monitor script.[Privacy-> Error: Copying

Step #1: [image-export-ext]: Workflow "image-export-ext" finished cleanup.

Finished Step #1

ERROR

ERROR: build step 1 "gcr.io/compute-image-tools/daisy:release" failed: step exited with non-zero status: 1

Serial Port Log for Daisy VM shows the below error :


content <ProjectID>-compute@developer.gserviceaccount.com does not have storage.objects.get access to the Google Cloud Storage object. Permission &#39;storage.objects.get&#39; denied on resource (or it may not exist).>'

Resolution

Provide following permission to the <project-id>-compute@developer.gserviceaccount.com.

  • resourcemanager.projects.get
  • storage.objects.create
  • storage.objects.get
  • storage.objects.list

Problem Cause

<project-id>-compute@developer.gserviceaccount.com account doesn't have sufficient permissions.