Missing attr package when using Cephfs


Maybe not so much a bug I think but might be worth mentioning.
After setting up CephFS for custom volumes. When creating a new volume I get:
Attr error - Error: Failed to run: setfattr -n ceph.quota.max_bytes -v 0 /var/lib/lxd/storage-pools/cephfs/custom/default_test:

The LXD debug logs tell me something like:
DBUG[08-26|10:31:26] Database error: &errors.errorString{s:"No such object"}

But this is caused just by the fact that I didn’t have attr installed.
The error should be something like:
Command 'setfattr' not found, but can be installed with: apt install attr
Which in this case would have been the output of the command that is run.

I’m not entirely sure this could be called a bug but it was annoying to say the least.