]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-create-keys: fix existing-but-different case 11417/head
authorJohn Spray <john.spray@redhat.com>
Sat, 23 Jul 2016 21:56:45 +0000 (22:56 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 11 Oct 2016 08:52:17 +0000 (10:52 +0200)
commitca8fc6fc8baae2e4da842e16e25b91d304702cb5
tree69a1a0a44946d593e0b7b49d0faa9515655043f3
parent2a348d23e5a047bf6a9c80140cf31ba2d6d4113f
ceph-create-keys: fix existing-but-different case

We just have to refrain from calling get-or-create
if the named key already exists, to avoid potentially
having an error when the default creation args don't
match the key as it has already been created, such
as on certain upgrades.

Fixes: http://tracker.ceph.com/issues/16255
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 278196d86c52b0be3cb9c17ed7f8f3e3502a217a)
src/ceph-create-keys