Add debug sleep
Change-Id: Ib195bbc66458f41ba137f801b005c5aa0240e8a8
diff --git a/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml b/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
index 229680b..63a6fe3 100644
--- a/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
+++ b/playbooks/charm-cinder-storpool-iscsi/zaza-functional.yaml
@@ -1,40 +1,43 @@
- hosts: all
tasks:
+ - name: A block
+ block:
+ - name: Install charmcraft
+ ansible.builtin.command: snap install charmcraft --classic
+ become: true
- - name: Install charmcraft
- ansible.builtin.command: snap install charmcraft --classic
- 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 {{ 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'] }}"
-
+ - name: run func-target-discard-model
+ ansible.builtin.shell: tox -e func-target {{ 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