
當從本地筆記型電腦 jx boot 運行時,它會在 GoogleCloud 上建立儲存桶:
....
....
The bucket gs://acmecluster1-logs-1ed782b2-db25-4631-bbf7-7a2178eec2a6 does not exist so lets create it
The bucket gs://acmecluster1-reports-4836f7b2-4f55-435d-9087-619c54d469 does not exist so lets create it
The bucket gs://acmecluster1-repository-60a6f654-7cd4-4027-9d23-1b81577 does not exist so lets create it
....
....
後來,之後
....
....
vault-operator addon succesfully installed.
vault operator installed in namespace jx
finding vault in namespace jx
Creating new system vault
Updated property [core/project].
Service Account exists
Downloading service account key
Error creating bucket: Creating gs://jx-vault-acmecluster1-bucket/...
ServiceException: 409 Bucket jx-vault-acmecluster1-bucket already exists., failed to run 'gsutil mb -l us-west1 -p acmecorp-one gs://jx-vault-acmecluster1-bucket' command in directory '', output: 'Creating gs://jx-vault-acmecluster1-bucket/...
嘗試建立另一個儲存失敗。錯誤訊息「已存在」可能是錯誤的,至少在終止運行後不存在這樣的儲存桶。一些線索如何解決這個問題?非常感謝。
答案1
問題似乎是 jenkins-x 嘗試創建的儲存桶的名稱。gs://jx-vault-acmecluster1-bucket
需要在 Google 上是唯一的(可能是 jenkins-x 中的錯誤)。
如果您檢查其他建立的儲存桶,它們有一個自動產生的 uuid gs://acmecluster1-repository-60a6f654-7cd4-4027-9d23-1b81577
。
目前我建議是更改叢集/組織的名稱以避免出現此問題。
編輯:您也可以透過更改 jx-requirements.yml 中的保管庫名稱來修復此問題
vault:
name: xxxxxxx #something unique