cluster-api-provider-nested icon indicating copy to clipboard operation
cluster-api-provider-nested copied to clipboard

log v5 doesn't print desired log of vn-agent

Open jichenjc opened this issue 4 years ago • 12 comments

What steps did you take and what happened: [A clear and concise description on how to REPRODUCE the bug.]

What did you expect to happen:

$ kubectl describe pod vn-agent-45wmt  -n vc-manager | grep Command -A 5
    Command:
      vn-agent
      --cert-dir=/etc/vn-agent/
      --kubelet-client-certificate=/etc/vn-agent/pki/client.crt
      --kubelet-client-key=/etc/vn-agent/pki/client.key
      --v=5

$ kubectl logs vn-agent-45wmt  -n vc-manager
I0719 02:01:45.819355       1 cert.go:61] Using self-signed cert (/etc/vn-agent/vn.crt, /etc/vn-agent/vn.key)
I0719 02:01:45.819508       1 server.go:127] server listen on :10550
I0719 02:02:03.109097       1 route.go:135] will forward request to super apiserver

looks like v5 log doesn't work for detailed log

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • cluster-api-provider-nested version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

/kind bug [One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-provider-nested/labels?q=area for the list of labels]

jichenjc avatar Jul 19 '21 02:07 jichenjc

/assign

jichenjc avatar Jul 19 '21 02:07 jichenjc

Have you found more information about what is going on here?

christopherhein avatar Jul 27 '21 22:07 christopherhein

not sure what happened , still checking

jichenjc avatar Jul 28 '21 04:07 jichenjc

just notice vn-agent-xxx does not exist in capn created env :( so @christopherhein do you think it's still worthy to fix those issue given capn is future ?

jichenjc avatar Jul 29 '21 01:07 jichenjc

Yes, cause in the capn future there is two paths, CAPN w/ VC and CAPN without. CAPN w/ VC is likely going to be most folks way of deploying the architecture.

christopherhein avatar Jul 29 '21 15:07 christopherhein

ok, thanks for the info~

jichenjc avatar Jul 30 '21 00:07 jichenjc

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Oct 28 '21 00:10 k8s-triage-robot

/remove-lifecycle stale /lifecycle frozen

christopherhein avatar Oct 28 '21 17:10 christopherhein

I actually could reproduce this issue. Neither -v nor --v would work. 😢 Have you found anything? @jichenjc

jasonliu747 avatar Jan 12 '22 09:01 jasonliu747

cc @charleszheng44 did you work on the vn-agent? it looks like klog isn't configured properly with verbosity levels…?

christopherhein avatar Jan 27 '22 00:01 christopherhein

I will take a look.

charleszheng44 avatar Jan 27 '22 06:01 charleszheng44

/assign

charleszheng44 avatar Jan 27 '22 06:01 charleszheng44