Browse Source

Merge "Rescan disk bus before using volume"

changes/46/456446/10
Jenkins 2 years ago
parent
commit
1c44b02a5b
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      workloads/ansible/shade/k8s/roles/worker/tasks/main.yml

+ 3
- 0
workloads/ansible/shade/k8s/roles/worker/tasks/main.yml View File

@@ -18,6 +18,9 @@
18 18
 - stat: path=/tmp/diskflag
19 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 24
 - shell: parted -s "{{ app_env.block_device_name }}" mklabel msdos
22 25
   when: diskflag.stat.exists == false
23 26
 

Loading…
Cancel
Save