Ceph POOL_APP_NOT_ENABLED: application not enabled on pool
Ceph POOL_APP_NOT_ENABLED warns that a pool older than 5 minutes has no application tag. Find what uses the pool, then tag it with rbd, cephfs or rgw.
POOL_APP_NOT_ENABLED<N> pool(s) do not have an application enabledapplication not enabled on pool '<pool-name>'use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.These four lines are the health code, summary, detail and hint strings in the Ceph source (PGMap.cc), copied as text rather than real output. The warning means a pool has no application tag at all; it is not a data safety warning. Find out whether RBD, CephFS or RGW uses that pool, then tag it with ceph osd pool application enable <pool> <app> and the warning clears.
[1] Know when it fires. In the Tentacle source there are three conditions:
| Condition | Source / setting |
|---|---|
| The pool's application metadata is empty | pool.application_metadata.empty() |
| The pool is not a cache tier | !pool.is_tier() |
| The grace period since pool creation has passed | mon_warn_on_pool_no_app_grace, default 5_min |
That is why a new pool stays quiet at first and the warning shows up about five minutes later. The check runs in the mgr (both settings are services: mgr).
[2] Find the pool and each pool's current tag. Both commands are read-only.
# ceph health detail# ceph osd pool ls detailThe application not enabled on pool '<pool-name>' line in health detail names the pool. ls detail prints one line per pool starting with pool <id> '<name>' …; in the source, only a pool with an application tag gets application and the name (for example application rbd) on that line, and an untagged pool has no application word at all. Use it to see how the other pools in the cluster are tagged.
[3] Decide what uses the pool. Getting the tag right is the whole job, and the checks below are read-only.
| Used by | Check | How to tag |
|---|---|---|
| RBD (block devices) | rbd ls <pool> lists images, or the pool was just created for RBD | rbd pool init <pool> |
| CephFS | The name appears under metadata pool or data pools in ceph fs ls | ceph osd pool application enable <pool> cephfs |
| RGW (object) | The name appears in the pool list of radosgw-admin zone get (.rgw.root, <zone>.rgw.…) | ceph osd pool application enable <pool> rgw |
| Your own librados program | None of the above | A free-form name (letters, digits, -_.) |
The Ceph pools docs say pools intended for CephFS and pools created automatically by RGW are tagged automatically, while RBD pools should be initialized from the dashboard or with rbd pool init. So this warning usually comes from **a pool created by hand with ceph osd pool create**. If a pool with a CephFS or RGW name triggers it, first check whether it is actually attached to a file system or zone; it may be attached to nothing.
[4] Apply the tag, naming both the pool and the application.
# ceph osd pool application enable mypool rbdThe example in this entry of the health checks docs is ceph osd pool application enable foo, which leaves out the pool name. The command definition (MonCommands.h) takes the pool name and then the application name, so copying that example as is will not do what you want. Use the form from the pools docs, ceph osd pool application enable {pool-name} {application-name}. For an RBD pool, rbd pool init sets the same tag.
Trying to add a new name to a pool that already has a tag is refused by the source like this:
Are you SURE? Pool '<pool-name>' already has an enabled application; pass --yes-i-really-mean-it to proceed anywayDo not reach for --yes-i-really-mean-it here; go back to [3]. A pool with this warning has no tag, so you should never see this refusal for it. If you do, you typed a different pool name. A pool can carry at most four tags (MAX_POOL_APPLICATIONS).
[5] Separate silencing from fixing. For an unused test pool, decide whether the pool is needed at all rather than tagging it. ceph health mute POOL_APP_NOT_ENABLED hides the warning for a while, but it also hides the same warning for any pool created meanwhile. Setting mon_warn_on_pool_no_app to false also exists in the source, but it is a level: dev option that removes the check cluster-wide, so do not use it.
The general way to read health codes is in reading ceph health detail output.