Skip to main content

I’m trying to evalutate K10 (free version) on Openshift. 

After a fresh installation, if I browse the dashboard to the “Applications” menu item, I get this alert message: 

If I get some pod logs, I can find an identical line for each namespace in the OCP cluster (I pasted 3 of them for simplicity): 

 

{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_application_details_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*applicationDetailsHandler).getApplicationDetails","Line":85,"appName":"openshift-cluster-machine-approver","appType":"namespace","cluster_name":"cef31697-14dc-4902-b196-8ff24f619d3a","error":{"message":"Failed to get details for the application","function":"kasten.io/k10/kio/bff.(*ApplicationDetailsDashboard).GetApplicationDetails","linenumber":35,"file":"kasten.io/k10/kio/bff/application_details.go:35","fields":,{"name":"appName","value":"openshift-cluster-machine-approver"}],"cause":{"message":"{\"message\":\"Failed to get details for the application\",\"function\":\"kasten.io/k10/kio/aggapi/apps.(*applicationDetails).GetNamespaceApplicationDetails\",\"linenumber\":99,\"file\":\"kasten.io/k10/kio/aggapi/apps/application_details.go:99\",\"fields\":"{\"name\":\"appName\",\"value\":\"openshift-cluster-machine-approver\"},{\"name\":\"appType\",\"value\":\"namespace\"}],\"cause\":{\"message\":\"the server could not find the requested resource (get virtualmachines.kubevirt.io)\"}}"}},"hostname":"dashboardbff-svc-5d96897df7-2r4sv","level":"error","msg":"Failed to get application details","time":"2024-05-31T21:18:03.514Z","version":"6.5.14"}
{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_application_details_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*applicationDetailsHandler).getApplicationDetails","Line":85,"appName":"default","appType":"namespace","cluster_name":"cef31697-14dc-4902-b196-8ff24f619d3a","error":{"message":"Failed to get details for the application","function":"kasten.io/k10/kio/bff.(*ApplicationDetailsDashboard).GetApplicationDetails","linenumber":35,"file":"kasten.io/k10/kio/bff/application_details.go:35","fields":,{"name":"appName","value":"default"}],"cause":{"message":"{\"message\":\"Failed to get details for the application\",\"function\":\"kasten.io/k10/kio/aggapi/apps.(*applicationDetails).GetNamespaceApplicationDetails\",\"linenumber\":99,\"file\":\"kasten.io/k10/kio/aggapi/apps/application_details.go:99\",\"fields\":"{\"name\":\"appName\",\"value\":\"default\"},{\"name\":\"appType\",\"value\":\"namespace\"}],\"cause\":{\"message\":\"the server could not find the requested resource (get virtualmachines.kubevirt.io)\"}}"}},"hostname":"dashboardbff-svc-5d96897df7-2r4sv","level":"error","msg":"Failed to get application details","time":"2024-05-31T21:18:03.517Z","version":"6.5.14"}
{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_application_details_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*applicationDetailsHandler).getApplicationDetails","Line":85,"appName":"openshift-adp","appType":"namespace","cluster_name":"cef31697-14dc-4902-b196-8ff24f619d3a","error":{"message":"Failed to get details for the application","function":"kasten.io/k10/kio/bff.(*ApplicationDetailsDashboard).GetApplicationDetails","linenumber":35,"file":"kasten.io/k10/kio/bff/application_details.go:35","fields":,{"name":"appName","value":"openshift-adp"}],"cause":{"message":"{\"message\":\"Failed to get details for the application\",\"function\":\"kasten.io/k10/kio/aggapi/apps.(*applicationDetails).GetNamespaceApplicationDetails\",\"linenumber\":99,\"file\":\"kasten.io/k10/kio/aggapi/apps/application_details.go:99\",\"fields\":"{\"name\":\"appName\",\"value\":\"openshift-adp\"},{\"name\":\"appType\",\"value\":\"namespace\"}],\"cause\":{\"message\":\"the server could not find the requested resource (get virtualmachines.kubevirt.io)\"}}"}},"hostname":"dashboardbff-svc-5d96897df7-2r4sv","level":"error","msg":"Failed to get application details","time":"2024-05-31T21:18:03.521Z","version":"6.5.14"}

I’m running OCP 4.12, k10 v6.5.14, I tried to install K10 using both operator and helm, but I’m stuck with the same error. 

 

Thanks in advance for any help.

 

Ramon

 

I double checked (again): 

  • Prerequisites
  • Pre-flight checks
  • SCC (oc auth can-i use securitycontextconstraints/k10-scc --as=system:serviceaccount:kasten-io:k10-k10 returns yes)

At this point, I can’t even figure out which part of the system further investigate…

 

 


Hello @unix.support,

 

Do you have kubevirt installed?

 

Thanks

Emmanuel


Hi Emmanuel, 

no, Kubevirt or Openshift Virtualization are not currently installed..

 


 

Hello, we spot the problem: we are not currentl using Kubevirt/Openshift Virtualization, but we tried the Kubevirt/Openshift Virtualization operator few months ago. The operator was then uninstalled, but due to an operator bug, related CRDs and apiservices were not properly deleted. So probably K10 found those APIs available on the cluster, but they were not responding correctly. We manually deleted all remaining CRDs and also the apiservices disappeared, and K10 now is not showing any error.

Thanks for giving the fundamental hint.

In case someone else could face the same problem, here's some step to workaround the problem: - -

Listing "surviving" CRDs and apiservices:

oc get apiservices | grep kubevirt.io oc get crd | grep kubevirt.io

Quickly removing related CRDs:

for i in $(oc get crd | grep kubevirt.io | awk '{ print $1 }'); do oc delete crd $i; done

Thanks for your support


Comment