Force filesystem type on swift format

It currently seems to think that /dev/vmvg00/disk1
is used for btrfs, so force this operation to
ensure it's changed to xfs.

Change-Id: I0bcc9723fb33b557315422c3259a7ba2b75ceff6
This commit is contained in:
Antony Messerli 2018-09-05 09:26:35 -05:00
parent 868a559840
commit ad1a4bc9ef

View File

@ -342,6 +342,9 @@
- "ansible_service_mgr == 'systemd'"
- "(_remove_mounts is changed) or (_remove_lvs is changed)"
- name: Set fact to indicate that the volumes changed (later used to force formatting)
set_fact:
_force_format_disks: "{{ (_remove_mounts is changed) or (_remove_lvs is changed) }}"
- name: Setup cinder host volume
hosts: cinder_hosts
@ -384,6 +387,7 @@
filesystem:
fstype: xfs
dev: "/dev/vmvg00/{{ item }}"
force: "{{ _force_format_disks | default(False) }}"
with_items:
- disk1
- disk2