FIX: ceph Deployment failed: RuntimeError: bootstrap-osd keyring not found 69/2969/3
authorgraiss <grakiss.wanglei@huawei.com>
Sat, 31 Oct 2015 09:13:03 +0000 (17:13 +0800)
committergraiss <grakiss.wanglei@huawei.com>
Mon, 2 Nov 2015 08:07:47 +0000 (16:07 +0800)
JIRA: COMPASS-85
  - try to gather keys manually before next operation

Change-Id: I32a7e79488813c42b5ead0f08675cf346c81eb54
Signed-off-by: graiss <grakiss.wanglei@huawei.com>
build/build.conf
deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_Debian.yml
deploy/adapters/ansible/roles/ceph-deploy/tasks/ceph_install_RedHat.yml
deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml

index d57e5f3..c6f0bde 100644 (file)
@@ -1,5 +1,5 @@
 TIMEOUT=10
-export PACKAGE_URL=${PACKAGE_URL:-http://58.251.166.184:9999}
+export PACKAGE_URL=${PACKAGE_URL:-http://205.177.226.235:9999}
 
 #begin: package download
 export CENTOS_BASE=${CENTOS_BASE:-$PACKAGE_URL/centos_base.iso}
index f897c94..06c28f2 100644 (file)
 - 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:
index ed88cd5..6ce01b8 100644 (file)
 - 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:
index a258a0c..6b193d6 100644 (file)
 
 - 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