kolla-ansible/ansible/roles/cinder/tasks/check.yml
Paul Bourke eea490e604 Update cinder sanity check to use built in shade
The current module 'kolla_sanity' was written as a shim before full
shade support was added to Ansible. This should now no longer be needed,
we can implement the checks using Ansible provided modules.

Change-Id: If212243e42615d7725201ee577bec40a1305887d
Depends-On: I6e3f4b72243da1cfa76d32822ec4f75f689f7317
Partially-implements: blueprint sanity-check-container
2017-07-10 14:44:44 +01:00

24 lines
643 B
YAML

---
- name: Cinder sanity check - create volume
kolla_toolbox:
module_name: os_volume
module_args:
auth: "{{ openstack_cinder_auth }}"
state: present
size: 1
display_name: kolla_test_volume
run_once: True
delegate_to: "{{ groups['cinder-api'][0] }}"
when: kolla_enable_sanity_cinder | bool
- name: Cinder sanity check - cleanup volume
kolla_toolbox:
module_name: os_volume
module_args:
auth: "{{ openstack_cinder_auth }}"
state: absent
display_name: kolla_test_volume
run_once: True
delegate_to: "{{ groups['cinder-api'][0] }}"
when: kolla_enable_sanity_cinder | bool