]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix get_keyring_with_caps
authorSage Weil <sage@newdream.net>
Fri, 12 Mar 2021 16:15:35 +0000 (10:15 -0600)
committerSage Weil <sage@newdream.net>
Fri, 12 Mar 2021 18:17:55 +0000 (12:17 -0600)
commit6127d7f20bc8a6ad02d8ea144584eaf2bfc9590e
treeb1038c1363d0382a852a9d48701c94c4f9ada91f
parent9f46890e33c8a58fe04f0b1260a5a7a670a1e3c2
mgr/cephadm: fix get_keyring_with_caps

1- Pass caps to 'auth get-or-create'
2- Only try 'auth caps' if the get-or-create failed

Note that the 'auth caps' step can fail if upgrading from 15.2.0 since
'profile mgr' didn't include 'auth caps' until 15.2.1.  We're not
addressing that for now...

Fixes: 7c0d532f3a4839f4199a13773fb5fa8b6fb3f183
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/tests/test_services.py