Managed Kubernetes
Latest
Luigi Addon upgrade fails while upgrading cluster from 1.21 to 1.22
Problem
Luigi Addon upgrade fails while upgrading cluster from 1.21 to 1.22.
While trying to disable-enable addon, it gets stuck in
Unstallingstate and laterUninstallErrorsstate:
bash-5.1# kubectl get clusteraddons|grep -i luigi
e295f866-0e71-4f15-90fd-ae2a81a7eb6d-luigi e295f866-0e71-4f15-90fd-ae2a81a7eb6d luigi Uninstalling 2022-08-31T13:38:34Z
Checking the pf9-addon-operator logs show:
{"level":"error","msg":"could not retrieve existing (rbac.authorization.k8s.io/v1beta1, Kind=ClusterRole) /luigi-metrics-reader: no matches for kind \"ClusterRole\" in version \"rbac.authorization.k8s.io/v1beta1\"Error deleting unstructured object","time":"2022-11-19T20:23:57Z"}
{"level":"error","msg":"Failed to delete yaml file: could not retrieve existing (rbac.authorization.k8s.io/v1beta1, Kind=ClusterRole) /luigi-metrics-reader: no matches for kind \"ClusterRole\" in version \"rbac.authorization.k8s.io/v1beta1\"","time":"2022-11-19T20:23:57Z"}
{"level":"error","msg":"Error installing addon: could not retrieve existing (rbac.authorization.k8s.io/v1beta1, Kind=ClusterRole) /luigi-metrics-reader: no matches for kind \"ClusterRole\" in version \"rbac.authorization.k8s.io/v1beta1\"","time":"2022-11-19T20:23:57Z"}
{"level":"error","msg":"\u003cnil\u003eunable to process addon","time":"2022-11-19T20:23:57Z"}
{"level":"info","msg":"Updated addon: e295f866-0e71-4f15-90fd-ae2a81a7eb6d-luigi","time":"2022-11-19T20:23:57Z"}
Environment
Platform9 Managed Kubernetes v5.6.3
Cause
Luigi addon fails to get updated during cluster upgrade.
CRD API version v1beta1 does not work with kubernetes version 1.22.
Resolution
Change the Luigi version from 0.3.0 to 0.4.0 from sunpike clusteraddons.
Last updated on
Was this page helpful?
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered by
