Project

General

Profile

Bug #9007

Ceph Firefly 0.80.4 : Unable to get some pool values

Added by karan singh over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
% Done:

0%

Source:
Q/A
Tags:
ceph osd pool set
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Hello Developers

I am curious to know if there is something missing from the code for Ceph pool values.

As mentioned in the documentation there are several pool values that we can set and get for any pool.

http://ceph.com/docs/master/rados/operations/pools/#set-pool-values

Here is my observation :

  • I am able to set pool values like cache_target_dirty_ratio , target_max_bytes , cache_min_flush_age etc. But unable to get it.
  • ceph osd pool get ? -- Does not contain these values in the help. The values that are mentioned in the help are only gettable.

Below is the output from my Ceph setup , if you think this needs to be fixed , you can take necessary actions , else you can close this issue.

# ceph osd pool get ?
Invalid command:  missing required parameter var(size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid)
osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid :  get pool parameter <var>
Error EINVAL: invalid command
#
#
#
# ceph osd pool get cache-pool hit_set_type
hit_set_type: bloom
# ceph osd pool get cache-pool hit_set_period
hit_set_period: 300
# ceph osd pool get cache-pool hit_set_count
hit_set_count: 1
# ceph osd pool get cache-pool hit_set_fpp
hit_set_fpp: 0.05
#
#
# ceph osd pool get cache-pool cache_target_dirty_ratio
Invalid command:  cache_target_dirty_ratio not in size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid
osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid :  get pool parameter <var>
Error EINVAL: invalid command
#
#
#
# ceph osd pool set cache-pool target_max_bytes 10000000000
set pool 24 target_max_bytes to 10000000000
#
#
# ceph osd pool get  cache-pool target_max_bytes
Invalid command:  target_max_bytes not in size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid
osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid :  get pool parameter <var>
Error EINVAL: invalid command
#
#
# ceph osd pool set cache-pool cache_min_flush_age 300
set pool 24 cache_min_flush_age to 300
#
# ceph osd pool get cache-pool cache_min_flush_age
Invalid command:  cache_min_flush_age not in size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid
osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|auid :  get pool parameter <var>
Error EINVAL: invalid command
#
#

History

#1 Updated by Sage Weil over 5 years ago

  • Status changed from New to Duplicate

you're right. this is fixed in master, and backported to firefly-next.. will be in next firefly point release.

Also available in: Atom PDF