tmforum-oda / oda-canvas

Apache License 2.0
19 stars 53 forks source link

CanvasInstallation: Canvas Couldn't be installed due to Helm Dependencies not resolved. #355

Open AliSaygin opened 1 month ago

AliSaygin commented 1 month ago

Canvas 3PP Helm Dependencies are not deployed.

I tried to install the Canvas v1.1.5 onto a local minikube cluster by following the "Installation Guide". Helm command to install Canvas is failing due to missing cert-manager dependency deployment.

Description

I extracted the Helm package downloaded into local $HELM_REPOSITORY_CACHE, then executed below inside the extracted folder

helm resolve-deps .\charts\cert-manager-init\

and disabled the installation of canvas-vault since it causes the installation to fail:

canvas-vault:
  enabled: false

After applying the above changes, the installation was completed successfully.

The code snippet to reproduce the issue ``` ```
The exact command to reproduce the issue ```bash helm install canvas oda-canvas/canvas-oda -n canvas --create-namespace --debug ```
The full output of the command that failed ``` install.go:200: [debug] Original chart version: "" install.go:217: [debug] CHART PATH: C:\Users\ealsayg\AppData\Local\Temp\helm\repository\canvas-oda-1.1.5.tgz client.go:134: [debug] creating 2 resource(s) install.go:160: [debug] CRD clusterkopfpeerings.zalando.org is already present. Skipping. client.go:134: [debug] creating 1 resource(s) client.go:134: [debug] creating 49 resource(s) client.go:478: [debug] Starting delete for "job-hook-postinstall" Job client.go:134: [debug] creating 1 resource(s) client.go:707: [debug] Watching for changes to Job job-hook-postinstall with timeout of 5m0s client.go:735: [debug] Add/Modify event for job-hook-postinstall: ADDED client.go:774: [debug] job-hook-postinstall: Jobs active: 0, jobs failed: 0, jobs succeeded: 0 client.go:735: [debug] Add/Modify event for job-hook-postinstall: MODIFIED client.go:774: [debug] job-hook-postinstall: Jobs active: 1, jobs failed: 0, jobs succeeded: 0 client.go:735: [debug] Add/Modify event for job-hook-postinstall: MODIFIED client.go:774: [debug] job-hook-postinstall: Jobs active: 1, jobs failed: 0, jobs succeeded: 0 client.go:735: [debug] Add/Modify event for job-hook-postinstall: MODIFIED client.go:774: [debug] job-hook-postinstall: Jobs active: 1, jobs failed: 0, jobs succeeded: 0 client.go:735: [debug] Add/Modify event for job-hook-postinstall: MODIFIED client.go:774: [debug] job-hook-postinstall: Jobs active: 0, jobs failed: 0, jobs succeeded: 0 client.go:735: [debug] Add/Modify event for job-hook-postinstall: MODIFIED Error: INSTALLATION FAILED: failed post-install: unable to build kubernetes object for deleting hook canvas-oda/charts/cert-manager-init/templates/issuer.yaml: resource mapping not found for name: "canvas-cert-manager-init-selfsigned" namespace: "canvas" from "": no matches for kind "Issuer" in version "cert-manager.io/v1" ensure CRDs are installed first helm.go:84: [debug] failed post-install: unable to build kubernetes object for deleting hook canvas-oda/charts/cert-manager-init/templates/issuer.yaml: resource mapping not found for name: "canvas-cert-manager-init-selfsigned" namespace: "canvas" from "": no matches for kind "Issuer" in version "cert-manager.io/v1" ensure CRDs are installed first INSTALLATION FAILED main.newInstallCmd.func2 helm.sh/helm/v3/cmd/helm/install.go:147 github.com/spf13/cobra.(*Command).execute github.com/spf13/cobra@v1.6.1/command.go:916 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/cobra@v1.6.1/command.go:1044 github.com/spf13/cobra.(*Command).Execute github.com/spf13/cobra@v1.6.1/command.go:968 main.main helm.sh/helm/v3/cmd/helm/helm.go:83 runtime.main runtime/proc.go:250 runtime.goexit runtime/asm_amd64.s:1598 ```

Environment

rsivaji-tmforum commented 1 month ago

@AliSaygin : shall we schedule a call on Monday to troubleshoot on this issue? If you are fine, please block my calendar or let me know so i can schedule at your availability hour proposed.

LesterThomas commented 1 month ago

I believe @RJ-acc has already issues a pull-request to fix this issue. See https://github.com/tmforum-oda/oda-canvas/pull/354

AliSaygin commented 1 month ago

@LesterThomas @rsivaji-tmforum i checked the https://github.com/tmforum-oda/oda-canvas/pull/354

Chart releaser cause Intermittent issue(all good in till 1.1.5-rc3 but some dependent chart like cert manager not updated in 1.1.5) if chart releaser publishes chart from same directory so charts separated now.

This seems that defining the same issue. Let me test once the new release having the fix is ready. If it persists we can schedule a call.