summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-26 13:38:56 +0000
committerGerrit Code Review <review@openstack.org>2017-04-26 13:38:56 +0000
commit1c44b02a5b1814218609ab3667502e2edb9ff84b (patch)
tree0ae06174df3ca54a8dbef0d770877d8885cde4b8
parent2cccab69ec18db49d440294172b4fd135cdb290e (diff)
parent1cc921cef4b0a7dd81e34dab9d710a8e19b20a1f (diff)
Merge "Rescan disk bus before using volume"
-rwxr-xr-xworkloads/ansible/shade/k8s/roles/worker/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/workloads/ansible/shade/k8s/roles/worker/tasks/main.yml b/workloads/ansible/shade/k8s/roles/worker/tasks/main.yml
index 0faecbb..5c28ee0 100755
--- a/workloads/ansible/shade/k8s/roles/worker/tasks/main.yml
+++ b/workloads/ansible/shade/k8s/roles/worker/tasks/main.yml
@@ -18,6 +18,9 @@
18- stat: path=/tmp/diskflag 18- stat: path=/tmp/diskflag
19 register: diskflag 19 register: diskflag
20 20
21- shell: for adapter in $(echo `find /sys/class/scsi_host -name "host*"`); do echo "- - -" > ${adapter}/scan; done
22 when: diskflag.stat.exists == false
23
21- shell: parted -s "{{ app_env.block_device_name }}" mklabel msdos 24- shell: parted -s "{{ app_env.block_device_name }}" mklabel msdos
22 when: diskflag.stat.exists == false 25 when: diskflag.stat.exists == false
23 26