blob: 42ceee7172390ff11c3e38944aacd122000900cd [file] [log] [blame]
Peter Pentchev7b8acdc2022-11-11 11:32:02 +02001- hosts: localhost
2 connection: local
Peter Pentchevafc36372022-11-15 12:22:05 +02003 vars:
4 host_id: "{{ hostvars['tempest']['nodepool']['external_id'] }}"
5 storprep_filename: "/tmp/storprep-bootstrap-{{ host_id }}.sh"
Peter Pentchev7b8acdc2022-11-11 11:32:02 +02006 tasks:
Peter Pentchev18f67c62022-11-14 14:09:09 +02007 - name: ctrl-sp-whoami-hostname
8 shell:
Peter Pentchev03989dd2022-11-15 10:35:42 +02009 cmd: hostname || true
Peter Pentchev18f67c62022-11-14 14:09:09 +020010
Peter Pentchevff460a52022-11-15 11:47:40 +020011 - name: ctrl-sp-fetch-storprep
Peter Pentchev18f67c62022-11-14 14:09:09 +020012 shell:
Peter Pentchevafc36372022-11-15 12:22:05 +020013 cmd: curl -C - -o '{{ storprep_filename }}' -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt
Peter Pentchev18f67c62022-11-14 14:09:09 +020014
Peter Pentchevff460a52022-11-15 11:47:40 +020015 - name: ctrl-sp-run-storprep
Peter Pentchev18f67c62022-11-14 14:09:09 +020016 shell:
Peter Pentchevafc36372022-11-15 12:22:05 +020017 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 Pentchev1a318ae2022-11-11 11:24:39 +020022
Peter Pentchev251b1f52022-11-18 10:52:30 +020023 - 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 Pentchev7b8acdc2022-11-11 11:32:02 +020050- hosts: all
51 tasks:
Peter Pentchev1a318ae2022-11-11 11:24:39 +020052 - name: sp-processes
53 shell:
54 cmd: ps awwfux
55
56 - name: sp-processes-pstree
57 shell:
58 cmd: pstree -l