Added QAT configs with experimental flag.#442
Open
UtkarshBhatthere wants to merge 3 commits intocanonical:mainfrom
Open
Added QAT configs with experimental flag.#442UtkarshBhatthere wants to merge 3 commits intocanonical:mainfrom
UtkarshBhatthere wants to merge 3 commits intocanonical:mainfrom
Conversation
f92aff2 to
8e60795
Compare
lmlg
requested changes
Oct 15, 2024
microceph/ceph/config.go
Outdated
| } | ||
|
|
||
| if config.Permission == ClusterConfigEXPRW { | ||
| return fmt.Errorf("WARNING: set operation on experimental config (%s)", c.Key) |
Contributor
There was a problem hiding this comment.
I would advise against doing this. The pattern if err != nil is way too common in Go, and overloading errors for warnings seems like a footgun to me. Instead, I would simply log the warnings here instead of down below.
Contributor
Author
There was a problem hiding this comment.
It's a temporary thing, because we don't want people to run QAT on prod until we're sure about it.
Contributor
Author
There was a problem hiding this comment.
The problem with logging is that the end user will not know about it until they check the logs. An acceptable (rather better) alternative is to require --experimental flag for such configs.
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
8e60795 to
704dfaf
Compare
Signed-off-by: utkarsh bhatt <utkarsh.bhatt@canonical.com>
Contributor
Author
|
Blocked as we do not have a the QAT changes in the distribution packages yet. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added cluster configs for QAT enablement
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Manual Testing
Contributor's Checklist
Please check that you have: