已知問題

本頁列出 Config Connector 的已知問題。

這裡列出的許多問題都已修正。「Fixed version」(修正版本) 欄會指出導入修正項目的版本。如要套用這項修正,請升級至所列版本或更新版本。

如果您是 Google Developer Program 成員,可以儲存這個頁面,以便在與此頁面相關的版本資訊發布時收到通知。詳情請參閱「儲存的網頁」。

如要依產品版本或類別篩選已知問題,請從下列下拉式選單中選取篩選條件。

選取 Config Connector 版本:

選取問題類別:

或者,您也可以篩選已知問題:

類別 最早發現的版本 已修正的版本 問題和解決方法
資源 1.126.0 1.134.1

嘗試建立或套用新的 Config Connector 資源時,Kubernetes API 伺服器會拒絕要求,並禁止建立資源。您無法部署新資源,但現有資源可能仍會正常協調。這項問題是由 Config Connector 1.134.1 之前版本中,cnrm-webhook-manager 元件的已知競爭狀況所造成。

部署輸出內容或 API 伺服器記錄中,可能會顯示類似下方的錯誤:

failed calling webhook "container-annotation-handler.cnrm.cloud.google.com": failed to call webhook: Post "https://cnrm-validating-webhook.cnrm-system.svc:443/...": tls: failed to verify certificate: x509: certificate signed by unknown authority
      

此外,cnrm-webhook-manager Pod 記錄可能會顯示下列內容:

http: TLS handshake error ... remote error: tls: bad certificate.
      

解決方法:

如要立即解除資源建立作業的封鎖狀態,可以強制 Webhook Manager Pod 同步處理並提取正確的憑證資料,方法是使用下列指令重新啟動 Deployment:

kubectl rollout restart deployment cnrm-webhook-manager -n cnrm-system
      
資源 1.134 1.134.2

受影響的 SQLInstance 資源可能會卡在 Updating 狀態,並顯示與 state-into-spec 註解相關的錯誤訊息。

invalid value "merge" for "cnrm.cloud.google.com/state-into-spec" annotation
      

這是因為 1.134.0 版導入更嚴格的驗證機制,導致系統誤拒 SQLInstance 資源的「合併」策略,即使該策略設為預設值也一樣。這個問題已在後續版本中修正。

直接對帳員 1.131 1.134

Config Connector 1.132.0 版會影響使用直接協調器的資源。

控制器名稱重複錯誤

在 1.132.0 版中,SpannerInstance 和 SecretManagerSecret 等資源可能無法協調,並顯示錯誤,指出已有名稱相同的控制器:

error registering controller: error adding direct controller for SpannerInstance to a manager: error creating new controller: controller with name spannerinstance-controller already exists.
      

SecretManagerSecret「last-applied-configuration」錯誤

在 1.131.0 至 1.133 版中,如果您為 SecretManagerSecret 啟用直接協調器 (使用 alpha.cnrm.cloud.google.com/reconciler: direct 註解),協調作業可能會失敗,並顯示 API 錯誤:

[kubectl.kubernetes.io/last-applied-configuration] must follow pattern [a-z0-9A-Z]+([_\.\-]*[a-z0-9A-Z]+)*), be less than 64 characters, and must have a UTF encoding of less than 128 bytes
      

這是因為 Config Connector 誤將內部 Kubernetes 註解當做標籤,傳遞至 Secret Manager API。

安裝、網路 Kubernetes 1.19 1.43

如果看到類似以下範例的錯誤,表示憑證可能有問題:

Error from server (InternalError): error when creating "/mnt/set-weaver-dns-record.yml": Internal error occurred: failed calling webhook "annotation-defaulter.cnrm.cloud.google.com": Post "https://cnrm-validating-webhook.cnrm-system.svc:443/annotation-defaulter?timeout=30s": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0
      

這個問題會發生在 Kubernetes 1.19 以上版本。Config Connector 1.43 以上版本支援自動產生憑證,應可避免這個問題。


解決方法:

如要解決這個問題,您可以刪除相關憑證和 Pod:

kubectl delete -n cnrm-system secrets cnrm-webhook-cert-abandon-on-uninstall
kubectl delete -n cnrm-system secrets cnrm-webhook-cert-cnrm-validating-webhook
kubectl delete -n cnrm-system pods -l "cnrm.cloud.google.com/component=cnrm-webhook-manager"
      

刪除這些資源後,系統應會重新產生正確的憑證。

返回頁首