Download a storprep bootstrap tool
Give up on the idea of installing the storprep dependencies within
the zuul-executor container. Instead, fetch a bootstrap tool from
the spfactory website and run it.
Change-Id: I95193542c978d5ddde085392375c31abbba49427
diff --git a/playbooks/sp-init.yaml b/playbooks/sp-init.yaml
index 1986d47..56d5729 100644
--- a/playbooks/sp-init.yaml
+++ b/playbooks/sp-init.yaml
@@ -23,26 +23,13 @@
shell:
cmd: hostname || true
- - name: ctrl-sp-whoami-id
+ - name: ctrl-sp-fetch-storprep
shell:
- cmd: id || true
+ cmd: curl -C - -o storprep-bootstrap.sh -- https://spfactory.storpool.com/sp-osci/storprep-bootstrap-sh.txt
- - name: ctrl-sp-whereami-pwd
+ - name: ctrl-sp-run-storprep
shell:
- cmd: pwd || true
-
- - name: ctrl-sp-python3
- shell:
- cmd: python3 --version || true
-
- - name: ctrl-sp-dump-ansible-facts
- ansible.builtin.debug:
- var: hostvars
-
- - name: ctrl-sp-storprep
- shell:
- cmd: /var/lib/storprep/bin/storprep -n lab-charmed-testing-storage -s lab-vlan400 -- {{ hostvars['tempest']['nodepool']['external_id'] }}
- become: true
+ cmd: sh storprep-bootstrap.sh -- -n lab-charmed-testing-storage -s lab-vlan400 -- {{ hostvars['tempest']['nodepool']['external_id'] }}
- hosts: all
tasks: