Pool creation error message is hidden on FileStore-backed pools
When trying to create a pool with an incorrect PG number then the error message is hidden by a warning message.
# ceph --version ceph version 12.2.12-48.el7cp (26388d73d88602005946d4381cc5796d42904858) luminous (stable)
# ceph osd pool create foo 2048 Error ERANGE: For better initial performance on pools expected to store a large number of objects, consider supplying the expected_num_objects parameter when creating the pool. # echo $? 34
It's actually hiding the real pool creation error.
# ceph osd pool create foo 2048 replicated_rule 1 1000000 Error ERANGE: pg_num 2048 size 3 would mean 6504 total pgs, which exceeds max 6000 (mon_max_pg_per_osd 250 * num_in_osds 24) # echo $? 34
This seems to be introduced by