From 9e28b43af14bdaa4693b3d05a043ff6cdb797fbf Mon Sep 17 00:00:00 2001 From: graiss Date: Sat, 31 Oct 2015 17:13:03 +0800 Subject: FIX: ceph Deployment failed: RuntimeError: bootstrap-osd keyring not found JIRA: COMPASS-85 - try to gather keys manually before next operation Change-Id: I32a7e79488813c42b5ead0f08675cf346c81eb54 Signed-off-by: graiss --- .../adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml | 4 ++++ .../adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'deploy/adapters/ansible/roles/ceph-deploy/tasks') diff --git a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml b/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml index f897c944..06c28f24 100644 --- a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml +++ b/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml @@ -10,6 +10,10 @@ - name: create monitor node in controller group shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy --overwrite-conf mon create-initial +- name: gather keys + shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy gatherkeys {{ ceph_cluster_hosts.stdout_lines[0] }} + ignore_errors: True + - name: copy create_osd.sh to host1 copy: src=create_osd.sh dest=~/create_osd.sh mode=0777 tags: diff --git a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml b/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml index ed88cd5c..6ce01b86 100644 --- a/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml +++ b/deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml @@ -10,6 +10,10 @@ - name: create monitor node in controller group shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy --overwrite-conf mon create-initial +- name: gather keys + shell: cd {{ ceph_cluster_dir[0] }} && ceph-deploy gatherkeys {{ ceph_cluster_hosts.stdout_lines[0] }} + ignore_errors: True + - name: copy create_osd.sh to host1 copy: src=create_osd.sh dest=~/create_osd.sh mode=0777 tags: -- cgit 1.2.3-korg