Revert "Fix cinder host name"
This reverts commit d554d74bf0c6d61d63f92e1d8224881dd4fa726d. This change is very problematic, because then the volumes will no longer be able to have API operations work on them, since the volumes are tied to a host, so when that host it down, things are bad. We should keep this old (non-clean behaviour) and switch towards using Cinder clusters instead https://docs.openstack.org/cinder/latest/contributor/high_availability.html This means configuring a few other things, but this is a really bad change and will break production deployments. I suggest we revert ASAP. Change-Id: Iee54ef5feca5c8bee80aded75d2fd182a431adb3
This commit is contained in:
parent
d554d74bf0
commit
6a5466e9a4
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Cinder
|
||||
name: cinder
|
||||
version: 0.2.31
|
||||
version: 0.2.32
|
||||
home: https://docs.openstack.org/cinder/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_vertical.png
|
||||
sources:
|
||||
|
@ -1,31 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
{{/*
|
||||
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
|
||||
|
||||
# If any cinder service is down, then sleep for 2 times the report_interval
|
||||
# to confirm service is still down.
|
||||
DISABLED_SVC="$(cinder-manage service list | grep XXX | grep -v ':-)' || true)"
|
||||
if [ ! -z "${DISABLED_SVC}" ]; then
|
||||
sleep {{ .Values.jobs.service_cleaner.sleep_time }}
|
||||
fi
|
||||
|
||||
bins=($(cinder-manage service list | grep XXX | grep -v ":-)" | awk '{print $1 }'))
|
||||
hosts=($(cinder-manage service list | grep XXX | grep -v ":-)" | awk '{print $2 }'))
|
||||
|
||||
for i in "${!bins[@]}"; do
|
||||
cinder-manage service remove "${bins[i]}" "${hosts[i]}"
|
||||
done
|
@ -71,8 +71,6 @@ data:
|
||||
{{ tuple "bin/_storage-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
clean-secrets.sh: |
|
||||
{{ tuple "bin/_clean-secrets.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
cinder-service-cleaner.sh: |
|
||||
{{ tuple "bin/_cinder-service-cleaner.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
{{- if .Values.bootstrap.enabled }}
|
||||
bootstrap.sh: |
|
||||
{{ tuple "bin/_bootstrap.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
|
@ -1,85 +0,0 @@
|
||||
{{/*
|
||||
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.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.cron_job_service_cleaner }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
{{- $serviceAccountName := "cinder-service-cleaner" }}
|
||||
{{ tuple $envAll "service_cleaner" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: cinder-service-cleaner
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
spec:
|
||||
schedule: {{ .Values.jobs.service_cleaner.cron | quote }}
|
||||
successfulJobsHistoryLimit: {{ .Values.jobs.service_cleaner.history.success }}
|
||||
failedJobsHistoryLimit: {{ .Values.jobs.service_cleaner.history.failed }}
|
||||
{{- if .Values.jobs.service_cleaner.starting_deadline }}
|
||||
startingDeadlineSeconds: {{ .Values.jobs.service_cleaner.starting_deadline }}
|
||||
{{- end }}
|
||||
concurrencyPolicy: Forbid
|
||||
jobTemplate:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "cinder" "service-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "cinder" "service-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
{{ dict "envAll" $envAll "application" "service_cleaner" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 10 }}
|
||||
restartPolicy: OnFailure
|
||||
nodeSelector:
|
||||
{{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }}
|
||||
{{ if $envAll.Values.pod.tolerations.cinder.enabled }}
|
||||
{{ tuple $envAll "cinder" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 10 }}
|
||||
{{ end }}
|
||||
initContainers:
|
||||
{{ tuple $envAll "service_cleaner" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 12 }}
|
||||
containers:
|
||||
- name: cinder-service-cleaner
|
||||
{{ tuple $envAll "cinder_service_cleaner" | include "helm-toolkit.snippets.image" | indent 14 }}
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.service_cleaner | include "helm-toolkit.snippets.kubernetes_resources" | indent 14 }}
|
||||
{{ dict "envAll" $envAll "application" "service_cleaner" "container" "cinder_service_cleaner" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 14 }}
|
||||
env:
|
||||
command:
|
||||
- /tmp/cinder-service-cleaner.sh
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
- name: cinder-bin
|
||||
mountPath: /tmp/cinder-service-cleaner.sh
|
||||
subPath: cinder-service-cleaner.sh
|
||||
readOnly: true
|
||||
- name: cinder-etc
|
||||
mountPath: /etc/cinder/cinder.conf
|
||||
subPath: cinder.conf
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: pod-tmp
|
||||
emptyDir: {}
|
||||
- name: cinder-etc
|
||||
secret:
|
||||
secretName: cinder-etc
|
||||
defaultMode: 0444
|
||||
- name: cinder-bin
|
||||
configMap:
|
||||
name: cinder-bin
|
||||
defaultMode: 0555
|
||||
{{- end }}
|
@ -55,7 +55,6 @@ images:
|
||||
cinder_scheduler: docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic
|
||||
cinder_volume: docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic
|
||||
cinder_volume_usage_audit: docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic
|
||||
cinder_service_cleaner: docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic
|
||||
cinder_storage_init: docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic
|
||||
cinder_backup: docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic
|
||||
cinder_backup_storage_init: docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic
|
||||
@ -69,13 +68,6 @@ images:
|
||||
- image_repo_sync
|
||||
|
||||
jobs:
|
||||
service_cleaner:
|
||||
cron: "0 */1 * * *"
|
||||
starting_deadline: 600
|
||||
history:
|
||||
success: 3
|
||||
failed: 1
|
||||
sleep_time: 60
|
||||
volume_usage_audit:
|
||||
cron: "5 * * * *"
|
||||
starting_deadline: 600
|
||||
@ -134,13 +126,6 @@ pod:
|
||||
cinder_scheduler:
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
service_cleaner:
|
||||
pod:
|
||||
runAsUser: 42424
|
||||
container:
|
||||
cinder_service_cleaner:
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
cinder_volume:
|
||||
pod:
|
||||
runAsUser: 42424
|
||||
@ -377,13 +362,6 @@ pod:
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
service_cleaner:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
|
||||
bootstrap:
|
||||
enabled: true
|
||||
@ -915,6 +893,7 @@ conf:
|
||||
osapi_volume_workers: 1
|
||||
glance_api_version: 2
|
||||
os_region_name: RegionOne
|
||||
host: cinder-volume-worker
|
||||
# NOTE(portdirect): the bind port should not be defined, and is manipulated
|
||||
# via the endpoints section.
|
||||
osapi_volume_listen_port: null
|
||||
@ -1225,19 +1204,6 @@ dependencies:
|
||||
service: identity
|
||||
- endpoint: internal
|
||||
service: volumev3
|
||||
service_cleaner:
|
||||
jobs:
|
||||
- cinder-db-sync
|
||||
- cinder-rabbit-init
|
||||
services:
|
||||
- endpoint: internal
|
||||
service: oslo_messaging
|
||||
- endpoint: internal
|
||||
service: oslo_db
|
||||
- endpoint: internal
|
||||
service: identity
|
||||
- endpoint: internal
|
||||
service: volumev3
|
||||
storage_init:
|
||||
jobs: null
|
||||
tests:
|
||||
@ -1530,7 +1496,6 @@ manifests:
|
||||
configmap_bin: true
|
||||
configmap_etc: true
|
||||
cron_volume_usage_audit: true
|
||||
cron_job_service_cleaner: true
|
||||
deployment_api: true
|
||||
deployment_backup: true
|
||||
deployment_scheduler: true
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:train-ubuntu_bionic"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:train-ubuntu_bionic"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:train-ubuntu_bionic"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:train-ubuntu_bionic"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:train-ubuntu_bionic"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:ussuri-ubuntu_bionic"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:victoria-ubuntu_focal"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:victoria-ubuntu_focal"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:victoria-ubuntu_focal"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:victoria-ubuntu_focal"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:victoria-ubuntu_focal"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:wallaby-ubuntu_focal"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:wallaby-ubuntu_focal"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:wallaby-ubuntu_focal"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:wallaby-ubuntu_focal"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:wallaby-ubuntu_focal"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:xena-ubuntu_focal"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:xena-ubuntu_focal"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:xena-ubuntu_focal"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:xena-ubuntu_focal"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:xena-ubuntu_focal"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -12,7 +12,6 @@ images:
|
||||
cinder_scheduler: "docker.io/openstackhelm/cinder:yoga-ubuntu_focal"
|
||||
cinder_volume: "docker.io/openstackhelm/cinder:yoga-ubuntu_focal"
|
||||
cinder_volume_usage_audit: "docker.io/openstackhelm/cinder:yoga-ubuntu_focal"
|
||||
cinder_service_cleaner: "docker.io/openstackhelm/cinder:yoga-ubuntu_focal"
|
||||
cinder_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
cinder_backup: "docker.io/openstackhelm/cinder:yoga-ubuntu_focal"
|
||||
cinder_backup_storage_init: "docker.io/openstackhelm/ceph-config-helper:latest-ubuntu_bionic"
|
||||
|
@ -48,4 +48,5 @@ cinder:
|
||||
- 0.2.29 Add SYS_ADMIN capability in cinder-volume
|
||||
- 0.2.30 Specify a existing configmap name for external ceph configuration
|
||||
- 0.2.31 Remove fixed node name from default values and add service cleaner cronjob
|
||||
- 0.2.32 Revert "Remove fixed node name from default values and add service cleaner cronjob"
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user