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

Log level resets to "0" after microceppd restarts #339

Open
tregubovav-dev opened this issue Apr 13, 2024 · 0 comments
Open

Log level resets to "0" after microceppd restarts #339

tregubovav-dev opened this issue Apr 13, 2024 · 0 comments

Comments

@tregubovav-dev
Copy link

Log level resets to "0" after microcephd restarts or host reboots

This issue is related to #239.

What version of MicroCeph are you using ?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic

$ sudo microceph --version
ceph-version: 18.2.0-0ubuntu3~cloud0; microceph-git: 450240f

What are the steps to reproduce this issue ?

  1. verify log level using command sudo microceph log get-level. In my case it always 0 (zero) after host reboots.
  2. change log level to any other than 0 (zero), for example using next command: sudo microceph log set-level 3
  3. verify that log level change is accepted using command sudo microceph log get-level. (actually microcephd continues producing debug level logs due to bug microceph spams logs with debug messages #239).
  4. restart microcephd using command sudo snap restart microceph.daemon and wait for several seconds until the microcephd restarts and initializes. You can also restart host instead of restarting microcephd service via snap.
  5. verify log level using command sudo microceph log get-level.

What happens (observed behaviour) ?

log level resets to "0" (zero) after microcephd restarts

What were you expecting to happen ?

log level should remain the same as set in step 3 of "steps to reproduce" section above.

Relevant logs, error output, etc.

test shell script:

#!/bin/sh
echo ">>>" && \
echo "Current log level: $(sudo microceph log get-level)" && \
echo "Changing log level to 3" && sudo microceph log set-level 3 && \
echo "Log level has been updated to: $(sudo microceph log get-level)" && \
echo "Restarting microcephd" && sudo snap restart microceph.daemon && \
echo "Waiting for 10s" && sleep 10s && \
echo "Log level after restart: $(sudo microceph log get-level)" && \
echo "<<<"

script output

Current log level: 0
Changing log level to 3
Log level has been updated to: 3
Restarting microcephd
Restarted.
Waiting for 10s
Log level after restart: 0
<<<

If it’s considerably long, please paste to https://gist.github.com/ and insert the link here.

Additional comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant