Closed subhamkrai closed 6 months ago
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
Will there be a separate PR for setting the near-full ratio and the backfill ratio? You might consider including them in the same PR so we can review for consistency of the commands.
added now, also two question:
./bin/odf -n rook-ceph set ceph osd set-full-ratio 0.9
~/go/src/github.com/odf-cli srai@fedora ~ (add-cmd-osd-full-ratio) $
2. should add `get` command similar to set for these two new commands to list the settings? Also, we could call the `get` command after `set` command which prints the config. wdyt?
Will there be a separate PR for setting the near-full ratio and the backfill ratio? You might consider including them in the same PR so we can review for consistency of the commands.
added now, also two question:
- currently after running the commands it prints blank line like below, should we add some logs when it is applied
./bin/odf -n rook-ceph set ceph osd set-full-ratio 0.9 ~/go/src/github.com/odf-cli srai@fedora ~ (add-cmd-osd-full-ratio) $
Sounds good to print a success message, such as Successfully set <key> to <value>
- should add
get
command similar to set for these two new commands to list the settings? Also, we could call theget
command afterset
command which prints the config. wdyt?
Yes, get
commands sound good. How about in a follow-up PR? But perhaps we don't call it as part of the get
since with the suggested generic approach, it might not work for all commands.
Will there be a separate PR for setting the near-full ratio and the backfill ratio? You might consider including them in the same PR so we can review for consistency of the commands.
added now, also two question:
- currently after running the commands it prints blank line like below, should we add some logs when it is applied
./bin/odf -n rook-ceph set ceph osd set-full-ratio 0.9 ~/go/src/github.com/odf-cli srai@fedora ~ (add-cmd-osd-full-ratio) $
Sounds good to print a success message, such as
Successfully set <key> to <value>
- should add
get
command similar to set for these two new commands to list the settings? Also, we could call theget
command afterset
command which prints the config. wdyt?Yes,
get
commands sound good. How about in a follow-up PR? But perhaps we don't call it as part of theget
since with the suggested generic approach, it might not work for all commands.
follow up pr sounds good
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: subhamkrai, travisn
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/cherry-pick release-4.16
@subhamkrai: new pull request created: #46
adding command
odf set full <ratio>
to update the osd full ratio within the range of 0.0 to 1.0 and similarly 'backfillfull, nearfull' ratio. Also added the docs.