so we don't bother to trigger an pool update, which is potentially
big stuff.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
expect_false ceph osd pool application disable app_for_test rgw
ceph osd pool application disable app_for_test rgw --yes-i-really-mean-it
+ ceph osd pool application disable app_for_test rgw --yes-i-really-mean-it # should be idempotent
ceph osd pool ls detail | grep "application rbd"
ceph osd pool ls detail --format=json | grep '"application_metadata":{"rbd":{}}'
return -EPERM;
}
+ if (!app_exists) {
+ ss << "application '" << app << "' is not enabled on pool '" << pool_name
+ << "'";
+ return 0; // idempotent
+ }
+
p.application_metadata.erase(app);
ss << "disable application '" << app << "' on pool '" << pool_name << "'";