Merge pull request #2153 from ceph/fix_disk_list_test

osd: always run disk_list test
pull/2163/head
Guillaume Abrioux 2017-11-09 23:50:32 +01:00 committed by GitHub
commit a695b2c08f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -15,8 +15,6 @@
changed_when: false
failed_when: false
register: disk_list
when:
- ceph_release_num[ceph_release] < ceph_release_num.kraken
- name: generate ceph osd docker run script
become: true

View File

@ -5,7 +5,7 @@
#############
# FUNCTIONS #
#############
{% if disk_list.get("rc", 1) == 0 -%}
{% if disk_list.get('rc') == 0 -%}
function expose_partitions () {
DOCKER_ENV=$(docker run --rm --name expose_partitions_${1} --privileged=true -v /dev/:/dev/ -v /etc/ceph:/etc/ceph -e CLUSTER={{ cluster }} -e OSD_DEVICE=/dev/${1} {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} disk_list)
docker rm -f expose_partitions_${1}