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

ceph: enable debug for adminops client if the rook loglevel <= debug #8208

Merged
merged 1 commit into from Jul 5, 2021

Conversation

thotz
Copy link
Contributor

@thotz thotz commented Jun 28, 2021

The debug for adminOps client can be enabled by setting Debug flag.
In this PR, it is enabled for OBC and cephobjectstore not healthchecker.
Also add similar changes while calling NewS3Agent in the bucket
provisioner code path.

Signed-off-by: Jiffin Tony Thottan thottanjiffin@gmail.com

Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

@thotz thotz requested review from leseb and BlaineEXE June 28, 2021 06:27
@mergify mergify bot added the ceph main ceph tag label Jun 28, 2021
@thotz thotz requested a review from travisn June 28, 2021 06:27
Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

Funny, I have a similar patch locally that I haven't pushed yet, you beat me to it :)

pkg/operator/ceph/object/bucket/provisioner.go Outdated Show resolved Hide resolved
pkg/operator/ceph/object/user/controller.go Outdated Show resolved Hide resolved
@leseb
Copy link
Member

leseb commented Jun 29, 2021

Just to answer anyone who might have concerns, turning on DEBUG on the API does not leak connection credentials 😌

Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

Why not the healthchecker btw? /pkg/operator/ceph/object/health.go

Copy link
Member

@leseb leseb left a comment

Choose a reason for hiding this comment

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

Why not the healthchecker btw? /pkg/operator/ceph/object/health.go

@mergify
Copy link

mergify bot commented Jun 30, 2021

This pull request has merge conflicts that must be resolved before it can be merged. @thotz please rebase it. https://rook.io/docs/rook/master/development-flow.html#updating-your-fork

The debug for adminOps client can be enabled by setting `Debug` flag.
In this PR, it is enabled for OBC and cephobjectstore not healthchecker.
Also add similar changes while calling `NewS3Agent` in the bucket
provisioner code path.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
@thotz thotz requested a review from leseb July 1, 2021 06:12
@thotz
Copy link
Contributor Author

thotz commented Jul 1, 2021

Why not the healthchecker btw? /pkg/operator/ceph/object/health.go

Done

@leseb leseb merged commit 6be2801 into rook:master Jul 5, 2021
mergify bot added a commit that referenced this pull request Jul 6, 2021
ceph: enable debug for adminops client if the rook loglevel <= debug (backport #8208)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ceph main ceph tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants