Code Review
/
compass4nfv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a2ea627
)
destroy GPT label befroe lvm create PV
85/1885/1
author
baigk
<baiguoku@huawei.com>
Tue, 22 Sep 2015 15:39:17 +0000
(23:39 +0800)
committer
baigk
<baiguoku@huawei.com>
Tue, 22 Sep 2015 15:39:17 +0000
(23:39 +0800)
JIRA: COMPASS-64
Change-Id: I21ef97689444a7509f09394d6f0a3d4956074f06
Signed-off-by: baigk <baiguoku@huawei.com>
deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
patch
|
blob
|
history
diff --git
a/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
b/deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
index
3700bcd
..
b64024d
100644
(file)
--- a/
deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
+++ b/
deploy/adapters/ansible/roles/cinder-volume/tasks/main.yml
@@
-43,6
+43,10
@@
shell: losetup {{ first_lo.stdout }} /mnt/cinder-volumes
when: cindervolumes.stdout != 'cinder-volumes'
+- name: destroy GPT lable
+ shell: dd if=/dev/urandom of=/dev/sdb bs=4M count=1
+ ignore_errors: True
+
- name: create physical and group volumes
lvg: vg=cinder-volumes pvs={{ physical_device }}
vg_options=--force