Skip to content

Etcd log level configuration - #151

Open
zezav-cz wants to merge 5 commits into
voxpupuli:masterfrom
deric:etcd_debug
Open

zezav-cz wants to merge 5 commits into
voxpupuli:masterfrom
deric:etcd_debug

Conversation

@zezav-cz

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

The ETCD_DEBUG environment variable is deprecated since v3.5, and there is a new option since v3.4 by setting ETCD_LOGGING_LEVEL=debug.

Check: https://etcd.io/docs/v3.4/op-guide/configuration/

This also cause unrecognized variable warning.

Jan 30 13:45:54 sa01 etcd[3050583]: {"level":"warn","ts":"2026-01-30T13:45:54.232787Z","caller":"flags/flag.go:93","msg":"unrecognized environment variable","environment-variable":"ETCD_DEBUG=false"}

This PR removes the unused debug parameter from the etcd cfg template and introduces a new class parameter to specify the etcd log level.


This issue was found by @cowjen01

@zezav-cz zezav-cz changed the title Etcd debug Etcd log level configuration Feb 11, 2026
@ananace ananace added the enhancement New feature or request label Mar 12, 2026
@TheMeier

Copy link
Copy Markdown
Contributor

@zezav-cz thank you for this PR. Could you add a test for the new parameter please.

@zezav-cz

Copy link
Copy Markdown
Contributor Author

@TheMeier Added

Comment thread manifests/server/etcd/setup.pp Outdated
Optional[Integer[0, 65535]] $uid = undef,
Optional[Integer[0, 65535]] $gid = undef,

Enum['debug', 'info', 'warn', 'error', 'panic', 'fatal'] $logging_level = 'info',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a nit regarding the name of the parameter, as it's not a 1:1 map to the ETCD variable like all the other parameters.
It should probably be called log_level instead just to remain consistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed

@zezav-cz
zezav-cz requested a review from ananace April 20, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants