juju run ceph-osd keyring error

I have just reinstalled charm openstack, and ceph-osd is showing non-pristine drives, so I want to zap them. I’m trying to get a list of the drives that it sees, but I’m getting keyring errors:

$ juju run ceph-osd list-disks --machine=0
2023-08-29T15:48:19.883+0000 7f03e08b5800 -1 auth: unable to find a keyring on /var/lib/ceph/osd/ceph-admin/keyring: (13) Permission denied
2023-08-29T15:48:19.887+0000 7f03e08b5800 -1 auth: unable to find a keyring on /var/lib/ceph/osd/ceph-admin/keyring: (13) Permission denied
2023-08-29T15:48:19.887+0000 7f03e08b5800 -1 auth: unable to find a keyring on /var/lib/ceph/osd/ceph-admin/keyring: (13) Permission denied
2023-08-29T15:48:19.887+0000 7f03e08b5800 -1 monclient: keyring not found
failed to fetch mon config (--no-mon-config to skip)

Any ideas?

Thanks.

I tried reinstalling everything again, thinking that I may have messed one of the deployment commands. I’m still having the same problem though:

$ juju run ceph-osd list-disks --unit=ceph-osd/0
2023-08-31T21:09:24.686+0000 7f7c90288800 -1 auth: unable to find a keyring on /var/lib/ceph/osd/ceph-admin/keyring: (2) No such file or directory
2023-08-31T21:09:24.686+0000 7f7c90288800 -1 AuthRegistry(0x563f5266e138) no keyring found at /var/lib/ceph/osd/ceph-admin/keyring, disabling cephx
2023-08-31T21:09:24.686+0000 7f7c90288800 -1 auth: unable to find a keyring on /var/lib/ceph/osd/ceph-admin/keyring: (2) No such file or directory
2023-08-31T21:09:24.686+0000 7f7c90288800 -1 AuthRegistry(0x7ffd661078f0) no keyring found at /var/lib/ceph/osd/ceph-admin/keyring, disabling cephx
failed to fetch mon config (--no-mon-config to skip)

Any thoughts?

Thanks.

Turns out I was looking at an old reference. The commands should be similar to:

$ juju run-action ceph-osd/0 list-disks --wait

All good now.