Google-Cloud-Platform

使用 VHD 的圖像導入過程出現問題

  • November 22, 2020

我在導入 vhd 圖像並在日誌中出現以下錯誤時遇到問題 - 有人可以就確切的問題和要採取的步驟提出建議。

starting build "32b9fa2e-5b24-4f92-bc0b-a385a39de4fe"

FETCHSOURCE
BUILD
Pulling image: gcr.io/compute-image-tools/gce_vm_image_import:release
release: Pulling from compute-image-tools/gce_vm_image_import
32f8bd955290: Pulling fs layer
01ed8fd8ea7d: Pulling fs layer
9725b749501b: Pulling fs layer
96ebe2242ea6: Pulling fs layer
7ea060874995: Pulling fs layer
330214355a8a: Pulling fs layer
6a0db923c4a2: Pulling fs layer
d548baee13a0: Pulling fs layer
96ebe2242ea6: Waiting
7ea060874995: Waiting
330214355a8a: Waiting
6a0db923c4a2: Waiting
d548baee13a0: Waiting
9725b749501b: Verifying Checksum
9725b749501b: Download complete
96ebe2242ea6: Verifying Checksum
96ebe2242ea6: Download complete
01ed8fd8ea7d: Verifying Checksum
01ed8fd8ea7d: Download complete
7ea060874995: Verifying Checksum
7ea060874995: Download complete
32f8bd955290: Verifying Checksum
32f8bd955290: Download complete
d548baee13a0: Verifying Checksum
d548baee13a0: Download complete
330214355a8a: Verifying Checksum
330214355a8a: Download complete
6a0db923c4a2: Verifying Checksum
6a0db923c4a2: Download complete
32f8bd955290: Pull complete
01ed8fd8ea7d: Pull complete
9725b749501b: Pull complete
96ebe2242ea6: Pull complete
7ea060874995: Pull complete
330214355a8a: Pull complete
6a0db923c4a2: Pull complete
d548baee13a0: Pull complete
Digest: sha256:b6b9af6f75715335bf7e26d124db4dc12d00802b9b90d4cedcb6109e9229c6c9
Status: Downloaded newer image for gcr.io/compute-image-tools/gce_vm_image_import:release
gcr.io/compute-image-tools/gce_vm_image_import:release
[import-image]: 2020-11-14T18:29:45.876Z Creating scratch bucket `ti-ds-tii-02-daisy-bkt-asia-south1` in ASIA-SOUTH1 region
[import-image]: 2020-11-14T18:29:50Z Validating workflow
[import-image]: 2020-11-14T18:29:50Z Validating step "setup-disks"
[import-image]: 2020-11-14T18:29:50Z Validating step "import-virtual-disk"
[import-image]: 2020-11-14T18:29:51Z Validating step "wait-for-signal"
[import-image]: 2020-11-14T18:29:51Z Validating step "cleanup"
[import-image]: 2020-11-14T18:29:51Z Validation Complete
[import-image]: 2020-11-14T18:29:51Z Workflow Project: ti-ds-tii-02
[import-image]: 2020-11-14T18:29:51Z Workflow Zone: asia-south1-c
[import-image]: 2020-11-14T18:29:51Z Workflow GCSPath: gs://ti-ds-tii-02-daisy-bkt-asia-south1/gce-image-import-2020-11-14T18:29:42Z-9lr5g
[import-image]: 2020-11-14T18:29:51Z Daisy scratch path: https://console.cloud.google.com/storage/browser/ti-ds-tii-02-daisy-bkt-asia-south1/gce-image-import-2020-11-14T18:29:42Z-9lr5g/daisy-import-image-20201114-18:29:50-6njmt
[import-image]: 2020-11-14T18:29:51Z Uploading sources
[import-image]: 2020-11-14T18:29:52Z Running workflow
[import-image]: 2020-11-14T18:29:52Z Running step "setup-disks" (CreateDisks)
[import-image.setup-disks]: 2020-11-14T18:29:52Z CreateDisks: Creating disk "disk-importer-import-image-6njmt".
[import-image.setup-disks]: 2020-11-14T18:29:52Z CreateDisks: Creating disk "disk-9lr5g".
[import-image.setup-disks]: 2020-11-14T18:29:52Z CreateDisks: Creating disk "disk-import-image-scratch-6njmt".
[import-image]: 2020-11-14T18:30:06Z Step "setup-disks" (CreateDisks) successfully finished.
[import-image]: 2020-11-14T18:30:06Z Running step "import-virtual-disk" (CreateInstances)
[import-image.import-virtual-disk]: 2020-11-14T18:30:06Z CreateInstances: Creating instance "inst-importer-import-image-6njmt".
[import-image]: 2020-11-14T18:30:14Z Error running workflow: step "import-virtual-disk" run error: operation failed &{ClientOperationId: CreationTimestamp: Description: EndTime:2020-11-14T10:30:14.723-08:00 Error:0xc0004bef00 HttpErrorMessage:FORBIDDEN HttpErrorStatusCode:403 Id:7304694042046864607 InsertTime:2020-11-14T10:30:08.214-08:00 Kind:compute#operation Name:operation-1605378606684-5b4155594d8c3-a29dc660-d173e76c OperationType:insert Progress:100 Region: SelfLink:https://www.googleapis.com/compute/v1/projects/ti-ds-tii-02/zones/asia-south1-c/operations/operation-1605378606684-5b4155594d8c3-a29dc660-d173e76c StartTime:2020-11-14T10:30:08.217-08:00 Status:DONE StatusMessage: TargetId:4431756053719129280 TargetLink:https://www.googleapis.com/compute/v1/projects/ti-ds-tii-02/zones/asia-south1-c/instances/inst-importer-import-image-6njmt User:219724526694@cloudbuild.gserviceaccount.com Warnings:[] Zone:https://www.googleapis.com/compute/v1/projects/ti-ds-tii-02/zones/asia-south1-c ServerResponse:{HTTPStatusCode:200 Header:map[Cache-Control:[private] Content-Type:[application/json; charset=UTF-8] Date:[Sat, 14 Nov 2020 18:30:14 GMT] Server:[ESF] Vary:[Origin X-Origin Referer] X-Content-Type-Options:[nosniff] X-Frame-Options:[SAMEORIGIN] X-Xss-Protection:[0]]} ForceSendFields:[] NullFields:[]}: 
Code: QUOTA_EXCEEDED
Message: Quota 'CPUS' exceeded.  Limit: 0.0 in region asia-south1.
[import-image]: 2020-11-14T18:30:14Z Workflow "import-image" cleaning up (this may take up to 2 minutes).
[import-image]: 2020-11-14T18:30:16Z Workflow "import-image" finished cleanup.
CANCELLED
ERROR: context canceled

似乎這個問題與配額和限制有關,這是重要的部分:

Quota 'CPUS' exceeded.  Limit: 0.0 in region asia-south1.

您可能需要先提出請求以增加此資源配額(區域中的 CPUS asia-south1),然後才能繼續導入過程。

要送出配額增加請求,您可以按照以下步驟操作:

  1. 轉到配額頁面

在此處輸入圖像描述

  1. Quotas頁面中,選擇您想要更改的配額應該是 CPUS in region asia-south1
  2. 點擊頁面頂部的 編輯配額按鈕。在此處輸入圖像描述
  3. 選中您要編輯的服務的複選框。
  4. 填寫您的姓名、電子郵件和電話號碼,然後點擊下一步
  5. 輸入您增加配額的請求,然後點擊下一步
  6. 然後送出您的請求。

考慮到您的請求的解決可能需要 24 到 48 小時。

引用自:https://serverfault.com/questions/1043348