Nova - Add ephemeral pool creation

- remove the ephemeral pool support from the rbd-provisioner helm
  chart. This was initially added to the rbd-provisioner helm chart
  to support initial integration efforts.
- remove the info for the ephemeral pool(s) from the rbd-provisioner
  overrides.
- update the nova overrides to include the necessary info for
  creating the ephemeral pool. Right now only one pool is included,
  but the nova chart supports multiple.

Change-Id: I9850663fc86c62ed759714f1297cfdaa8183183f
Story: 2005073
Task: 29647
Signed-off-by: Irina Mihai <irina.mihai@windriver.com>
This commit is contained in:
Irina Mihai
2019-02-19 22:55:49 +00:00
parent d9edf76bf2
commit e5bac7cef0
3 changed files with 48 additions and 54 deletions

View File

@@ -153,25 +153,7 @@ spec:
- name: config-volume-{{- $root.Values.global.name }}
mountPath: {{ $mount }}
{{- end }}
{{- range $ephemeralPool := $root.Values.ephemeral_pools }}
- name: storage-init-{{- $ephemeralPool.pool_name }}
image: {{ $root.Values.images.tags.rbd_provisioner_storage_init | quote }}
command: [ "/bin/bash", "{{ $mount }}/check_ceph.sh" ]
env:
- name: NAMESPACE
value: {{ $root.Release.Namespace }}
- name: POOL_NAME
value: {{ $ephemeralPool.pool_name }}
- name: POOL_REPLICATION
value: {{ $ephemeralPool.replication | quote }}
- name: POOL_CRUSH_RULE_NAME
value: {{ $ephemeralPool.crush_rule_name | quote }}
- name: POOL_CHUNK_SIZE
value: {{ $ephemeralPool.chunk_size | quote }}
volumeMounts:
- name: config-volume-{{- $root.Values.global.name }}
mountPath: {{ $mount }}
{{- end }}
---
# This ConfigMap is needed because we're not using ceph's helm chart
apiVersion: v1