История изменений
Исправление SpaceRanger, (текущая версия) :
Если с хоста делаю
root@ceph1:~# ceph -s
2024-02-21T17:38:00.350+0000 7f34f1ec3700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
2024-02-21T17:38:00.350+0000 7f34f2ec5700 0 librados: client.admin authentication error (13) Permission denied
[errno 13] RADOS permission denied (error connecting to the cluster)
Монитор как бужто бы и не замечает, что что-то произошло.
root@ceph1:/home/mgr# journalctl -fu ceph-814df136-d0d9-11ee-9795-311afd9ab69a@mon.ceph1.service
-- Logs begin at Wed 2024-02-14 14:08:24 UTC. --
Feb 21 17:39:33 ceph1 bash[77535]: cluster 2024-02-21T17:39:31.963379+0000 mgr.ceph1.efhymw (mgr.64099) 66 : cluster 0 pgmap v64: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:35 ceph1 bash[77535]: cluster 2024-02-21T17:39:33.963733+0000 mgr.ceph1.efhymw (mgr.64099) 67 : cluster 0 pgmap v65: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:37 ceph1 bash[77535]: debug 2024-02-21T17:39:37.286+0000 7f85ce6aa700 1 mon.ceph1@0(leader).osd e42 _set_new_cache_sizes cache_size:1020054731 inc_alloc: 348127232 full_alloc: 348127232 kv_alloc: 322961408
Feb 21 17:39:37 ceph1 bash[77535]: cluster 2024-02-21T17:39:35.964159+0000 mgr.ceph1.efhymw (mgr.64099) 68 : cluster 0 pgmap v66: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:38 ceph1 bash[77535]: debug 2024-02-21T17:39:38.034+0000 7f85cbea5700 0 mon.ceph1@0(leader) e1 handle_command mon_command({"prefix": "osd blocklist ls", "format": "json"} v 0) v1
но если дернуть из контейнера монитора, то
root@ceph1:/home/mgr# docker exec -it 789c0e24a269 /bin/bash
[root@ceph1 /]# ceph -s
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 AuthRegistry(0x7f50d0067da0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin, disabling cephx
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 AuthRegistry(0x7f50d5b27ea0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin, disabling cephx
2024-02-21T17:40:08.702+0000 7f50cf7fe700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 monclient: authenticate NOTE: no keyring found; disabled cephx authentication
[errno 13] RADOS permission denied (error connecting to the cluster)
Я как бы могу читать и понимаю что монитор не находит файла ceph.client.admin.keyring. Но
-
почему он его ищет, если я вроде как аутентификацию отключаю?
-
где он его ищет, если на хосте этот файл вполне себе лежит в /etc/ceph ?
-
Почему параметры auth_cluster|service|client_required, выставленные через ceph config set global оказывают такое разрушительное воздействие? Но в то же время , выставленные в /etc/ceph/ceph.conf на хосте, не оказывают вообще никакого эффекта?
-
Как вернуть всё взад?
Исходная версия SpaceRanger, :
Если с хоста делаю
root@ceph1:~# ceph -s
2024-02-21T17:38:00.350+0000 7f34f1ec3700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
2024-02-21T17:38:00.350+0000 7f34f2ec5700 0 librados: client.admin authentication error (13) Permission denied
[errno 13] RADOS permission denied (error connecting to the cluster)
Монитор как бужто бы и не замечает, что что-то произошло.
root@ceph1:/home/mgr# journalctl -fu ceph-814df136-d0d9-11ee-9795-311afd9ab69a@mon.ceph1.service
-- Logs begin at Wed 2024-02-14 14:08:24 UTC. --
Feb 21 17:39:33 ceph1 bash[77535]: cluster 2024-02-21T17:39:31.963379+0000 mgr.ceph1.efhymw (mgr.64099) 66 : cluster 0 pgmap v64: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:35 ceph1 bash[77535]: cluster 2024-02-21T17:39:33.963733+0000 mgr.ceph1.efhymw (mgr.64099) 67 : cluster 0 pgmap v65: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:37 ceph1 bash[77535]: debug 2024-02-21T17:39:37.286+0000 7f85ce6aa700 1 mon.ceph1@0(leader).osd e42 _set_new_cache_sizes cache_size:1020054731 inc_alloc: 348127232 full_alloc: 348127232 kv_alloc: 322961408
Feb 21 17:39:37 ceph1 bash[77535]: cluster 2024-02-21T17:39:35.964159+0000 mgr.ceph1.efhymw (mgr.64099) 68 : cluster 0 pgmap v66: 1 pgs: 1 undersized+peered; 0 B data, 84 MiB used, 1.3 TiB / 1.3 TiB avail
Feb 21 17:39:38 ceph1 bash[77535]: debug 2024-02-21T17:39:38.034+0000 7f85cbea5700 0 mon.ceph1@0(leader) e1 handle_command mon_command({"prefix": "osd blocklist ls", "format": "json"} v 0) v1
но если дернуть из контейнера монитора, то
root@ceph1:/home/mgr# docker exec -it 789c0e24a269 /bin/bash
[root@ceph1 /]# ceph -s
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 AuthRegistry(0x7f50d0067da0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin, disabling cephx
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 auth: unable to find a keyring on /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin: (2) No such file or directory
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 AuthRegistry(0x7f50d5b27ea0) no keyring found at /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin, disabling cephx
2024-02-21T17:40:08.702+0000 7f50cf7fe700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
2024-02-21T17:40:08.702+0000 7f50d5b29700 -1 monclient: authenticate NOTE: no keyring found; disabled cephx authentication
[errno 13] RADOS permission denied (error connecting to the cluster)
Я как бы могу читать и понимаю что монитор не находит файла ceph.client.admin.keyring. Но
-
почему он его ищет, если я вроде как аутентификацию отключаю?
-
где он его ищет, если на хосте этот файл вполне себе лежит в /etc/ceph ?
-
Почему параметры auth_cluster|service|client_required, выставленные через ceph config set global оказывают такое разрушительное воздействие? Но в то же время , выставленные в /etc/ceph/ceph.conf на хосте, не оказывают вообще никакого эффекта?