Add updated Storpool drivers to images (#1150)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
diff --git a/images/cinder/Dockerfile b/images/cinder/Dockerfile
index 9c7298b..1487042 100644
--- a/images/cinder/Dockerfile
+++ b/images/cinder/Dockerfile
@@ -24,8 +24,16 @@
pip3 install \
--constraint /upper-constraints.txt \
/src/cinder \
- purestorage
+ purestorage \
+ storpool \
+ storpool.spopenstack
EOF
+ADD --chmod=644 \
+ https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/cinder/openstack/bobcat/storpool.py \
+ /var/lib/openstack/lib/python3.10/site-packages/cinder/volume/drivers/storpool.py
+ADD --chmod=644 \
+ https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \
+ /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
RUN <<EOF bash -xe
diff --git a/images/glance/Dockerfile b/images/glance/Dockerfile
index 9b77fd3..7171659 100644
--- a/images/glance/Dockerfile
+++ b/images/glance/Dockerfile
@@ -24,8 +24,13 @@
pip3 install \
--constraint /upper-constraints.txt \
/src/glance \
- /src/glance_store[cinder]
+ /src/glance_store[cinder] \
+ storpool \
+ storpool.spopenstack
EOF
+ADD --chmod=644 \
+ https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \
+ /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
RUN <<EOF bash -xe
diff --git a/images/nova/Dockerfile b/images/nova/Dockerfile
index 968c013..2641a7a 100644
--- a/images/nova/Dockerfile
+++ b/images/nova/Dockerfile
@@ -21,8 +21,13 @@
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <<EOF bash -xe
pip3 install \
--constraint /upper-constraints.txt \
- /src/nova
+ /src/nova \
+ storpool \
+ storpool.spopenstack
EOF
+ADD --chmod=644 \
+ https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/bobcat/storpool.py \
+ /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py
FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE}
ADD https://github.com/novnc/noVNC.git#v1.4.0 /usr/share/novnc