Merge "Update cinder sanity check to use built in shade"

This commit is contained in:
Jenkins 2017-07-19 03:24:38 +00:00 committed by Gerrit Code Review
commit f50efca182

View File

@ -1,19 +1,23 @@
--- ---
- name: Cinder sanity checks - name: Cinder sanity check - create volume
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost kolla_toolbox:
-m kolla_sanity module_name: os_volume
-a "service=cinder module_args:
project=service auth: "{{ openstack_cinder_auth }}"
user={{ openstack_auth.username }} state: present
password={{ cinder_keystone_password }} size: 1
role=admin display_name: kolla_test_volume
region_name={{ openstack_region_name }}
auth={{ '{{ openstack_cinder_auth }}' }}"
-e "{'openstack_cinder_auth':{{ openstack_cinder_auth }}}"
register: cinder_sanity
changed_when: "{{ cinder_sanity.stdout.find('localhost | SUCCESS => ') != -1 and (cinder_sanity.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
until: cinder_sanity.stdout.split()[2] == 'SUCCESS'
retries: 10
delay: 5
run_once: True 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 when: kolla_enable_sanity_cinder | bool