]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-docker-common: detect ceph version 1822/head
authorSébastien Han <seb@redhat.com>
Mon, 28 Aug 2017 21:23:36 +0000 (23:23 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 28 Aug 2017 21:28:47 +0000 (23:28 +0200)
commit764e69718682864b3f468a0e62643ee163bf32f1
tree7b56bf4f509770981f8520887d829a2c46a37c11
parent3c294131ae614f319edb84c83539755c9e48a6f3
ceph-docker-common: detect ceph version

By detecting the ceph version running in the container we can easily
apply conditions like:
ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous

We do that already, in ceph-docker-common/tasks/fetch_configs.yml.

This fixes the error:

TASK [ceph-docker-common : register rbd bootstrap key]
******************************************************

fatal: [magna005]: FAILED! => {"failed": true, "msg": "The conditional
check 'ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous'
failed. The error was: error while evaluating conditional
(ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous):
'dict object' has no attribute 'dummy'\n\nThe error appears to have been
in
'/home/ubuntu/ceph-ansible/roles/ceph-docker-common/tasks/fetch_configs.yml':
line 2, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n---\n-
name: register rbd bootstrap key\n  ^ here\n"}

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1486062
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-docker-common/tasks/main.yml
roles/ceph-docker-common/tasks/release.yml [new file with mode: 0644]