Revert "Remove debug sleep"
This reverts commit 6d02db83f78dd0e0b6635edc398ba4964b5a7265.
Change-Id: If1bc65a5f0d921f0c6e76cf3d3ebe33c56c22e8d
diff --git a/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml b/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
index 14a7967..8b6a4f8 100644
--- a/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
+++ b/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
@@ -1,38 +1,43 @@
- hosts: all
tasks:
- - name: Install charmcraft
- ansible.builtin.command: snap install charmcraft --classic --channel=2.2/stable
- become: true
+ - name: A block
+ block:
+ - name: Install charmcraft
+ ansible.builtin.command: snap install charmcraft --classic --channel=2.2/stable
+ become: true
- - name: Initialize lxd
- ansible.builtin.command: lxd init --auto
- become: true
+ - name: Initialize lxd
+ ansible.builtin.command: lxd init --auto
+ become: true
- - name: Install tox
- ansible.builtin.apt:
- name: tox
- update_cache: yes
- become: true
+ - name: Install tox
+ ansible.builtin.apt:
+ name: tox
+ update_cache: yes
+ become: true
- - name: RDBG take a look around
- ansible.builtin.shell: find /home/ubuntu/src/ -mindepth 0 -maxdepth 3 -ls
+ - name: RDBG take a look around
+ ansible.builtin.shell: find /home/ubuntu/src/ -mindepth 0 -maxdepth 3 -ls
- - name: run build
- ansible.builtin.shell: tox -e build
- args:
- executable: /usr/bin/bash
- chdir: /home/ubuntu/src/spfactory.storpool.com/charm-cinder-storpool-iscsi
+ - name: run build
+ ansible.builtin.shell: tox -e build
+ args:
+ executable: /usr/bin/bash
+ chdir: /home/ubuntu/src/spfactory.storpool.com/charm-cinder-storpool-iscsi
- - name: run func-target-discard-model
- ansible.builtin.shell: tox -e func-target-discard-model {{ bundle }}
- args:
- executable: /usr/bin/bash
- chdir: /home/ubuntu/src/spfactory.storpool.com/charm-cinder-storpool-iscsi
- environment:
- CHARM_SP_PUBLIC_SPACE: "{{ SP_PUBLIC_SPACE['v'] }}"
- CHARM_SP_TEMPLATE: "{{ SP_TEMPLATE['v'] }}"
- CHARM_SP_API_HTTP_HOST: "{{ SP_API_HTTP_HOST['v'] }}"
- CHARM_SP_API_HTTP_PORT: "{{ SP_API_HTTP_PORT['v'] }}"
- CHARM_SP_AUTH_TOKEN: "{{ SP_AUTH_TOKEN['v'] }}"
- CHARM_SP_ISCSI_PORTAL_GROUP: "{{ SP_ISCSI_PORTAL_GROUP['v'] }}"
- CHARM_SP_EXTRA_MACHINE_TAGS: "{{ SP_EXTRA_MACHINE_TAGS['v'] }}"
\ No newline at end of file
+ - name: run func-target-discard-model
+ ansible.builtin.shell: tox -e func-target-discard-model {{ bundle }}
+ args:
+ executable: /usr/bin/bash
+ chdir: /home/ubuntu/src/spfactory.storpool.com/charm-cinder-storpool-iscsi
+ environment:
+ CHARM_SP_PUBLIC_SPACE: "{{ SP_PUBLIC_SPACE['v'] }}"
+ CHARM_SP_TEMPLATE: "{{ SP_TEMPLATE['v'] }}"
+ CHARM_SP_API_HTTP_HOST: "{{ SP_API_HTTP_HOST['v'] }}"
+ CHARM_SP_API_HTTP_PORT: "{{ SP_API_HTTP_PORT['v'] }}"
+ CHARM_SP_AUTH_TOKEN: "{{ SP_AUTH_TOKEN['v'] }}"
+ CHARM_SP_ISCSI_PORTAL_GROUP: "{{ SP_ISCSI_PORTAL_GROUP['v'] }}"
+ CHARM_SP_EXTRA_MACHINE_TAGS: "{{ SP_EXTRA_MACHINE_TAGS['v'] }}"
+ always:
+ - name: Debug sleep
+ ansible.builtin.shell: sleep 9999