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

Ability to debug when things go wrong in a physical cluster #521

Closed
samyak-jn opened this issue Feb 16, 2022 · 2 comments
Closed

Ability to debug when things go wrong in a physical cluster #521

samyak-jn opened this issue Feb 16, 2022 · 2 comments
Labels
area/transparent-multi-cluster Related to scheduling of workloads into pclusters. kind/feature Categorizes issue or PR as related to a new feature. severity/experience-blocker Something that considerably blocks the user experience of kcp

Comments

@samyak-jn
Copy link

Hi folks, 👋

Is your feature request related to a problem? Please describe.

Is there a way to get logs and errors in one place, I can see some errors like one mentioned below when I am running kcp binary in the foreground but is there a way where I can get errors separately in forms of logs.

E0215 17:48:37.929559  154705 cluster.go:144] error starting syncer in push mode: The following resource types were requested to be synced, but were not found in the KCP logical cluster: [clusterroles.rbac.authorization.k8s.io]
E0215 17:48:37.929651  154705 controller.go:252] "cluster" controller failed to sync "admin#$#k3d-test-kcp-cluster", err: The following resource types were requested to be synced, but were not found in the KCP logical cluster: [clusterroles.rbac.authorization.k8s.io]

Let's take an example of pods as a resource,
I applied a related YAML file for it which is supposed to create a pod. Since I'm using KCP for testing purposes I know that I have connected it to one physical cluster and I can see pod existing from my physical cluster end and the pod (was in Init state) while going through kubectl describe from the physical cluster side I got to know there was a problem with configmaps but there was no entry of POD in kcp side and hence I wasn't able to locate those errors

What I'm proposing for now?
For this issue particularly, I want to fetch all the pod issues occurring in physical clusters. And then later on (if already exists let me know) if we can fetch errors (the reason behind which the resources are not reaching the desired state) in form of logs It will be awesome!

@samyak-jn samyak-jn added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 16, 2022
@ncdc
Copy link
Member

ncdc commented Feb 16, 2022

@samyak-jn I'd like to propose a couple of things:

  1. We need 1 issue that specifically covers visibility of things in physical clusters - when something goes wrong and you need to e.g. kubectl describe pod/foo, how can kcp address that?
  2. I'd like to make it an explicit non-goal that the initial method of diagnosing a problem is via logs. It's a much better user experience if we can present state to users using the APIs, especially in status.conditions. Logs certainly are valuable, but generally as a 2nd/last resort compared to a nice UX. And also remember that many times, users won't have access to server/controller logs.

Can we use this issue for (1)? Or close it and use #25 instead?

@samyak-jn
Copy link
Author

Yes, we can use this issue for 1, that does make more sense!

@ncdc ncdc changed the title Adding log feature to the various resources in KCP Ability to debug when things go wrong in a physical cluster Feb 23, 2022
@ncdc ncdc added the severity/experience-blocker Something that considerably blocks the user experience of kcp label Feb 23, 2022
@ncdc ncdc added this to the TBD milestone Feb 23, 2022
@ncdc ncdc added the area/transparent-multi-cluster Related to scheduling of workloads into pclusters. label Apr 29, 2022
@ncdc ncdc moved this to New in kcp Oct 17, 2022
@ncdc ncdc added this to kcp Oct 17, 2022
@ncdc ncdc moved this from New to Backlog in kcp Oct 17, 2022
@ncdc ncdc removed this from the TBD milestone Oct 17, 2022
@github-project-automation github-project-automation bot moved this from Backlog to Done in kcp Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/transparent-multi-cluster Related to scheduling of workloads into pclusters. kind/feature Categorizes issue or PR as related to a new feature. severity/experience-blocker Something that considerably blocks the user experience of kcp
Projects
Status: Done
Development

No branches or pull requests

3 participants