Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 1 | - hosts: localhost |
| 2 | connection: local |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 3 | vars: |
| 4 | host_id: "{{ hostvars['tempest']['nodepool']['external_id'] }}" |
| 5 | storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh" |
Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 6 | tasks: |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 7 | - name: ctrl-sp-whoami-hostname |
| 8 | shell: |
Peter Pentchev | 03989dd | 2022-11-15 10:35:42 +0200 | [diff] [blame] | 9 | cmd: hostname || true |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 10 | |
Peter Pentchev | ff460a5 | 2022-11-15 11:47:40 +0200 | [diff] [blame] | 11 | - name: ctrl-sp-fetch-storprep |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 12 | shell: |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 13 | cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 14 | |
Peter Pentchev | ff460a5 | 2022-11-15 11:47:40 +0200 | [diff] [blame] | 15 | - name: ctrl-sp-run-storprep |
Peter Pentchev | 18f67c6 | 2022-11-14 14:09:09 +0200 | [diff] [blame] | 16 | shell: |
Peter Pentchev | afc3637 | 2022-11-15 12:22:05 +0200 | [diff] [blame] | 17 | cmd: sh '{{ storprep_filename }}' -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ host_id }} |
| 18 | |
| 19 | - name: ctrl-sp-rm-storprep |
| 20 | shell: |
| 21 | cmd: rm -- '{{ storprep_filename }}' |
Peter Pentchev | 1a318ae | 2022-11-11 11:24:39 +0200 | [diff] [blame] | 22 | |
Peter Pentchev | 251b1f5 | 2022-11-18 10:52:30 +0200 | [diff] [blame^] | 23 | - name: ctrl-sp-processes |
| 24 | shell: |
| 25 | cmd: ps awwfux |
| 26 | |
| 27 | - name: ctrl-sp-processes-pstree |
| 28 | shell: |
| 29 | cmd: pstree -l |
| 30 | |
| 31 | - hosts: tempest |
| 32 | tasks: |
| 33 | - name: Apply the StorPool patches |
| 34 | shell: |
| 35 | cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s /home/zuul/src/spfactory.storpool.com/sp-osci/patches/series.experimental -S am |
| 36 | chdir: /opt/stack |
| 37 | become: true |
| 38 | become_user: stack |
| 39 | |
| 40 | - name: Apply the StorPool patches to the other place |
| 41 | shell: |
| 42 | cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/git-if-needed -s /home/zuul/src/spfactory.storpool.com/sp-osci/patches/series.experimental am |
| 43 | chdir: /home/zuul/src/opendev.org |
| 44 | |
| 45 | # - name: Set up the random StorPool volume prefix |
| 46 | # shell: |
| 47 | # cmd: /home/zuul/src/spfactory.storpool.com/sp-osci/tools/bin/sp_rand_init |
| 48 | # become: true |
| 49 | |
Peter Pentchev | 7b8acdc | 2022-11-11 11:32:02 +0200 | [diff] [blame] | 50 | - hosts: all |
| 51 | tasks: |
Peter Pentchev | 1a318ae | 2022-11-11 11:24:39 +0200 | [diff] [blame] | 52 | - name: sp-processes |
| 53 | shell: |
| 54 | cmd: ps awwfux |
| 55 | |
| 56 | - name: sp-processes-pstree |
| 57 | shell: |
| 58 | cmd: pstree -l |