diff options
author | graiss <grakiss.wanglei@huawei.com> | 2015-10-31 17:13:03 +0800 |
---|---|---|
committer | graiss <grakiss.wanglei@huawei.com> | 2015-11-02 16:07:47 +0800 |
commit | 9e28b43af14bdaa4693b3d05a043ff6cdb797fbf (patch) | |
tree | 444dcdbef3f47bf223316f1891aecb6f6338da20 /deploy/adapters | |
parent | 6ccf509ef306522f9038d942e7bb936084e3610f (diff) |
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 <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters')
3 files changed, 10 insertions, 2 deletions
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: diff --git a/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml b/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml index a258a0cf..6b193d6e 100644 --- a/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml +++ b/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml @@ -15,11 +15,11 @@ - name: load loop.yml include: loop.yml - when: status.stat.isblk == False + when: status.stat.exists == False or status.stat.isblk == False - name: load real.yml include: real.yml - when: status.stat.isblk == True + when: status.stat.exists == True and status.stat.isblk == True - name: upload cinder-volume configuration template: src=cinder.conf dest=/etc/cinder/cinder.conf |