91f60d2884
Reverting this ps since we tried to solve the problem here for
the old clients prior to nautilus but nautilus clients thinks
its v2 port and try to communicate with server and getting some
warnings as shown below:
lets make v2 port as default and ovverride mon_host config for
old clients prior to nautilus as we did in this ps
(https://review.opendev.org/#/c/711648/).
better solution will be moving out of old ceph clients by changing
the images wherever old ceph clients are installed.
log:
+ ceph auth get-or-create client.cinder mon 'profile rbd' osd
'profile rbd' -o /tmp/tmp.k9PBzKOyCq.keyring
2020-06-19 15:56:13.100 7febee088700 -1 --2-
172.29.0.139:0/2835096817 >> v2:172.29.0.141:6790/0 conn(0x7febe816b4d0
0x7febe816b990 unknown :-1 s=BANNER_CONNECTING pgs=0 cs=0 l=0
rx=0 tx=0)._handle_peer_banner peer v2:172.29.0.141:6790/0 is using msgr V1 protocol
This reverts commit acde91c87d
.
Change-Id: I08ef968b3e80c80b973ae4ec1f80ba1618f0e0a5
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
{{/*
|
|
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.
|
|
*/}}
|
|
|
|
{{- define "ceph.configmap.etc" }}
|
|
{{- $configMapName := index . 0 }}
|
|
{{- $envAll := index . 1 }}
|
|
{{- with $envAll }}
|
|
|
|
{{- if or (.Values.deployment.ceph) (.Values.deployment.client_secrets) }}
|
|
|
|
{{- if empty .Values.conf.ceph.global.mon_host -}}
|
|
{{- $monHost := tuple "ceph_mon" "internal" "mon_msgr2" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
|
|
{{- $_ := $monHost | set .Values.conf.ceph.global "mon_host" -}}
|
|
{{- end -}}
|
|
|
|
|
|
{{- if empty .Values.conf.ceph.osd.cluster_network -}}
|
|
{{- $_ := .Values.network.cluster | set .Values.conf.ceph.osd "cluster_network" -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.ceph.osd.public_network -}}
|
|
{{- $_ := .Values.network.public | set .Values.conf.ceph.osd "public_network" -}}
|
|
{{- end -}}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ $configMapName }}
|
|
data:
|
|
ceph.conf: |
|
|
{{ include "helm-toolkit.utils.to_ini" .Values.conf.ceph | indent 4 }}
|
|
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
{{- list .Values.storageclass.rbd.ceph_configmap_name . | include "ceph.configmap.etc" }}
|
|
{{- end }}
|