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

etcd-snapshot subcommand does not out debug logs even when --debug flag is provided #4920

Closed
1 task done
dereknola opened this issue Jan 12, 2022 · 2 comments
Closed
1 task done
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@dereknola
Copy link
Member

Environmental Info:
K3s Version:

Master branch

Cluster Configuration:

Any etcd cluster
Describe the bug:

With a running k3s server, calling k3s etcd-snapshot save --debug does not correctly output debug logs.

Steps To Reproduce:

  • Installed K3s:

Steps To Reproduce:

Installed K3s:
Run any cluster
Attempt to save a snapshot with the --debug flag set in either CLI or config.yaml

Expected behavior:

All k3s subcommands that support debug flag should output debug logs

Actual behavior:

Only server and agent output debug logs with the flag set.
etcd-snapshot and others do not.
Backporting

  • Needs backporting to all older releases.
@ShylajaDevadiga
Copy link
Contributor

Validated using the commit 48ffed3 from master branch. Passing --debug flag displays the debug logs while using etcd-snapshot subcommands.

$ sudo k3s etcd-snapshot save --debug
INFO[0000] Managed etcd cluster bootstrap already complete and initialized 
INFO[0000] Applying CRD addons.k3s.cattle.io            
DEBU[0000] DesiredSet - Patch apiextensions.k8s.io/v1,

@ShylajaDevadiga
Copy link
Contributor

Validated on rc using k3s version v1.23.2-rc1+k3s1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants