Merge "Add ceph plugin in the devstack for glance"
This commit is contained in:
commit
bffe463513
@ -13,22 +13,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM docker.io/opendevorg/python-builder as builder
|
FROM vexxhost/python-builder as builder
|
||||||
COPY bindep.txt /tmp/src/bindep.txt
|
FROM vexxhost/python-base AS glance-api
|
||||||
RUN apt update && apt -y install git
|
|
||||||
ADD https://releases.openstack.org/constraints/upper/ussuri /tmp/src/upper-constraints.txt
|
|
||||||
RUN assemble git+https://opendev.org/openstack/glance@stable/ussuri \
|
|
||||||
boto3 \
|
|
||||||
msgpack===0.6.1 \
|
|
||||||
PyMySQL \
|
|
||||||
python-memcached \
|
|
||||||
python-swiftclient
|
|
||||||
|
|
||||||
FROM docker.io/opendevorg/uwsgi-base as glance-api
|
|
||||||
COPY --from=builder /output/ /output
|
|
||||||
RUN apt update && apt -y install git && \
|
|
||||||
/output/install-from-bindep && \
|
|
||||||
apt -y purge git && apt clean all
|
|
||||||
EXPOSE 9292
|
EXPOSE 9292
|
||||||
ENV UWSGI_HTTP_SOCKET=:9292 UWSGI_WSGI_FILE=/usr/local/bin/glance-wsgi-api
|
ENV UWSGI_HTTP_SOCKET=:9292 UWSGI_WSGI_FILE=/usr/local/bin/glance-wsgi-api
|
||||||
CMD ["/usr/local/bin/uwsgi","--ini","/etc/uwsgi/uwsgi.ini"]
|
CMD ["/usr/local/bin/uwsgi", "--ini", "/etc/uwsgi/uwsgi.ini"]
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
gcc [compile]
|
gcc [compile]
|
||||||
libc-dev [compile]
|
libc-dev [compile]
|
||||||
|
librados-dev [compile]
|
||||||
|
librbd-dev [compile]
|
||||||
|
librados2
|
||||||
|
librbd1
|
||||||
|
1
images/glance/build-requirements.txt
Normal file
1
images/glance/build-requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Cython
|
1
images/glance/constraints.txt
Normal file
1
images/glance/constraints.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
--constraint https://releases.openstack.org/constraints/upper/ussuri
|
7
images/glance/requirements.txt
Normal file
7
images/glance/requirements.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
uWSGI
|
||||||
|
boto3
|
||||||
|
PyMySQL
|
||||||
|
python-memcached
|
||||||
|
git+https://opendev.org/openstack/glance@stable/ussuri
|
||||||
|
https://github.com/ceph/ceph/archive/octopus.tar.gz#egg=rados&subdirectory=src/pybind/rados
|
||||||
|
https://github.com/ceph/ceph/archive/octopus.tar.gz#egg=rbd&subdirectory=src/pybind/rbd
|
55
images/glance/setup-repos.sh
Executable file
55
images/glance/setup-repos.sh
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Copyright (c) 2020 VEXXHOST, Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
# implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
apt-get install -y gnupg2
|
||||||
|
|
||||||
|
cat <<EOF | apt-key add -
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
mQINBFX4hgkBEADLqn6O+UFp+ZuwccNldwvh5PzEwKUPlXKPLjQfXlQRig1flpCH
|
||||||
|
E0HJ5wgGlCtYd3Ol9f9+qU24kDNzfbs5bud58BeE7zFaZ4s0JM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yPpAqA6jcqSOC7Xoz9cYxkVWnYMLBUySXmSS0uxl
|
||||||
|
3p+wK0lMG0my/gb+alke5PAQjcE5dtXYzCn+8Lj0uSfCk8Gy0ZOK2oiUjaCGYN6D
|
||||||
|
u72qDRFBnR3jaoFqi03bGBIMnglGuAPyBZiI7LJgzuT9xumjKTJW3kN4YJxMNYu1
|
||||||
|
FzmIyFZpyvZ7930vB2UpCOiIaRdZiX4Z6ZN2frD3a/vBxBNqiNh/BO+Dex+PDfI4
|
||||||
|
TqwF8zlcjt4XZ2teQ8nNMR/D8oiYTUW8hwR4laEmDy7ASxe0p5aijmUApWq5UTsF
|
||||||
|
+s/QbwugccU0iR5orksM5u9MZH4J/mFGKzOltfGXNLYI6D5Mtwrnyi0BsF5eY0u6
|
||||||
|
vkdivtdqrq2DXY+ftuqLOQ7b+t1RctbcMHGPptlxFuN9ufP5TiTWSpfqDwmHCLsT
|
||||||
|
k2vFiMwcHdLpQ1IH8ORVRgPPsiBnBOJ/kIiXG2SxPUTjjEGOVgeA
|
||||||
|
=/Tod
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF | tee /etc/apt/sources.list.d/ceph.list
|
||||||
|
deb https://download.ceph.com/debian-octopus/ buster main
|
||||||
|
EOF
|
@ -76,6 +76,8 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: ceph
|
||||||
|
mountPath: /etc/ceph
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/glance
|
mountPath: /etc/glance
|
||||||
- name: data
|
- name: data
|
||||||
@ -83,6 +85,10 @@ spec:
|
|||||||
- name: uwsgi-config
|
- name: uwsgi-config
|
||||||
mountPath: /etc/uwsgi
|
mountPath: /etc/uwsgi
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: ceph
|
||||||
|
hostPath:
|
||||||
|
path: /etc/ceph
|
||||||
|
type: Directory
|
||||||
- name: config
|
- name: config
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ spec['configDir'] }}
|
path: {{ spec['configDir'] }}
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
run: playbooks/functional/run.yaml
|
run: playbooks/functional/run.yaml
|
||||||
post-run: playbooks/functional/post.yaml
|
post-run: playbooks/functional/post.yaml
|
||||||
required-projects:
|
required-projects:
|
||||||
|
- openstack/devstack-plugin-ceph
|
||||||
- openstack/heat
|
- openstack/heat
|
||||||
- openstack/heat-tempest-plugin
|
- openstack/heat-tempest-plugin
|
||||||
- openstack/magnum
|
- openstack/magnum
|
||||||
@ -23,6 +24,7 @@
|
|||||||
openstack-operator: https://opendev.org/vexxhost/openstack-operator
|
openstack-operator: https://opendev.org/vexxhost/openstack-operator
|
||||||
heat: https://github.com/openstack/heat
|
heat: https://github.com/openstack/heat
|
||||||
magnum: https://github.com/openstack/magnum
|
magnum: https://github.com/openstack/magnum
|
||||||
|
devstack-plugin-ceph: https://github.com/openstack/devstack-plugin-ceph
|
||||||
devstack_source_dirs:
|
devstack_source_dirs:
|
||||||
- src/opendev.org/openstack
|
- src/opendev.org/openstack
|
||||||
- src/opendev.org/vexxhost
|
- src/opendev.org/vexxhost
|
||||||
|
Loading…
x
Reference in New Issue
Block a user