kyma-project / addons

Helm Broker AddOns
Apache License 2.0
3 stars 34 forks source link

AWS broker addon failed to deploy #149

Closed jia-jerry closed 3 years ago

jia-jerry commented 3 years ago

Description The deployment of broker failed to start

Expected result

Actual result

Steps to reproduce

  1. Create a shoot cluster in Gardener on AWS (k8s version 1.18)
  2. Create a kyma from app hub. The version of kyma is 1.15.1
  3. Create a namespace app. Prepare credentials for AWS Service Broker addon. Create the broker with default plan.

Troubleshooting The broker pod in app namespace failed to start with errors below:

5da4bded6d42e067cd77e84427567" network for pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp": networkPlugin cni failed to set up pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp_app" network: error with field Metadata.Labels (value) = 'hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-servi-service' (must be no more than 63 characters)
  Warning  FailedCreatePodSandBox  5m45s                  kubelet, ip-10-250-15-20.eu-central-1.compute.internal  Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "986539df24a336a1614b6014af6942801b0dabf510065b7f718a39c07bd220db" network for pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp": networkPlugin cni failed to set up pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp_app" network: error with field Metadata.Labels (value) = 'hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-servi-service' (must be no more than 63 characters)
  Warning  FailedCreatePodSandBox  5m41s (x4 over 5m44s)  kubelet, ip-10-250-15-20.eu-central-1.compute.internal  (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "ea2054347882e75727a3cbb8abba624be1fee4f2483772dd6316302150ce7937" network for pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp": networkPlugin cni failed to set up pod "hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-944cp_app" network: error with field Metadata.Labels (value) = 'hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-servi-service' (must be no more than 63 characters)
  Normal   SandboxChanged          48s (x272 over 5m53s)  kubelet, ip-10-250-15-20.eu-central-1.compute.internal  Pod sandbox changed, it will be killed and re-created.

It seems the deployment name is too long. Exampe: hb-aws-se-defaul-f21fb585-60fd-47ce-ba8e-f019d720329f-aws-servi

PK85 commented 3 years ago

Known bug, already solved in next Kyma release. For now just change your ClusterAddonsConfiguration to point to:https://github.com/kyma-project/addons/releases/tag/0.14.0.

https://github.com/kyma-project/kyma/blob/master/resources/helm-broker/values.yaml