Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Handle missing configmap by Cozystack #40

Closed
kvaps opened this issue Mar 14, 2024 · 1 comment
Closed

[core] Handle missing configmap by Cozystack #40

kvaps opened this issue Mar 14, 2024 · 1 comment
Milestone

Comments

@kvaps
Copy link
Member

kvaps commented Mar 14, 2024

Cozystack pod fails with the error if configmap is not applied during the initial setup:

helm template -n cozy-system platform . --dry-run=server -a admissionregistration.k8s.io/v1 -a apiextensions.k8s.io/v1 -a apiregistration.k8s.io/v1 -a apps/v1 -a authentication.k8s.io/v1 -a authorizat │
│ namespace/cozy-public unchanged                                                                                                                                                                          │
│ namespace/cozy-system unchanged                                                                                                                                                                          │
│ namespace/cozy-cert-manager unchanged                                                                                                                                                                    │
│ namespace/cozy-cilium unchanged                                                                                                                                                                          │
│ namespace/cozy-fluxcd unchanged                                                                                                                                                                          │
│ namespace/cozy-grafana-operator unchanged                                                                                                                                                                │
│ namespace/cozy-kamaji unchanged                                                                                                                                                                          │
│ namespace/cozy-cluster-api unchanged                                                                                                                                                                     │
│ namespace/cozy-dashboard unchanged                                                                                                                                                                       │
│ namespace/cozy-kubeovn unchanged                                                                                                                                                                         │
│ namespace/cozy-kubevirt unchanged                                                                                                                                                                        │
│ namespace/cozy-kubevirt-cdi unchanged                                                                                                                                                                    │
│ namespace/cozy-linstor unchanged                                                                                                                                                                         │
│ namespace/cozy-mariadb-operator unchanged                                                                                                                                                                │
│ namespace/cozy-metallb unchanged                                                                                                                                                                         │
│ namespace/cozy-monitoring unchanged                                                                                                                                                                      │
│ namespace/cozy-postgres-operator unchanged                                                                                                                                                               │
│ namespace/cozy-rabbitmq-operator unchanged                                                                                                                                                               │

│ namespace/cozy-redis-operator unchanged                                                                                                                                                                  │
│ namespace/cozy-telepresence unchanged                                                                                                                                                                    │
│ namespace/cozy-victoria-metrics-operator unchanged                                                                                                                                                       │
│ make: Leaving directory '/cozystack/packages/core/platform'                                                                                                                                              │
│ Error from server (NotFound): deployments.apps "source-controller" not found                                                                                                                             │
│ Error from server (NotFound): deployments.apps "helm-controller" not found                                                                                                                               │
│ make: Entering directory '/cozystack/packages/system/cilium'                                                                                                                                             │
│ helm upgrade -i -n cozy-cilium cilium .                                                                                                                                                                  │
│ Release "cilium" has been upgraded. Happy Helming!                                                                                                                                                       │
│ NAME: cilium                                                                                                                                                                                             │
│ LAST DEPLOYED: Thu Mar 14 14:34:53 2024                                                                                                                                                                  │
│ NAMESPACE: cozy-cilium                                                                                                                                                                                   │
│ STATUS: deployed                                                                                                                                                                                         │
│ REVISION: 7                                                                                                                                                                                              │
│ TEST SUITE: None                                                                                                                                                                                         │
│ make: Leaving directory '/cozystack/packages/system/cilium'                                                                                                                                              │
│ make: Entering directory '/cozystack/packages/system/kubeovn'                                                                                                                                            │
│ helm upgrade -i -n cozy-kubeovn kubeovn .                                                                                                                                                                │
│ Release "kubeovn" does not exist. Installing it now.                                                                                                                                                     │

│ Error: template: cozy-kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml:59:42: executing "cozy-kubeovn/charts/kube-ovn/templates/ovncni-ds.yaml" at <index $cozyConfig.data "ipv4-svc-cidr">: error calli │
│ make: *** [Makefile:8: apply] Error 1                                                                                                                                                                    │
│ make: Leaving directory '/cozystack/packages/system/kubeovn'                                                                                                                                             │
│ time="2024-03-14T14:34:54Z" level=fatal msg="failed to run" err="exit status 2"

I think in this case it should not fail, but create a new configmap with default values.

@kvaps kvaps added this to the v0.2.0 milestone Mar 14, 2024
@kvaps
Copy link
Member Author

kvaps commented Apr 4, 2024

Closed in favor #63

@kvaps kvaps closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant