aedbb8aa0c
This commit is rebasing on upstream commit 7803000a545687ec40b0ddc41d46a6b377dea45f and also remove some patches that were already merged. This change depends on the rebase of openstack-helm-infra made at01f6571912
Patch 0005-Nova-Add-support-for-disabling-Readiness-Liveness-pr.patch This patch was dropped because a feature that add this support was implemented in 2020. It can be found on commitaf4e2aaadd
Patch 0007-Allow-more-generic-overrides-for-placeme.patch Changes that this patch applies were already applied on commitbdbea96326
Patch 0009-Disabling-helm3_hook.patch Adding a helm3_hook in values.yaml file in case hooks needs to be disabled Patch 0011-Trust-public-ingress-certificate.patch Removed in favor of using the openstack-helm implementation of tls support. As we are dropping this patch we moved the changes to the patch where the job is created. Commits can be found on https://opendev.org/openstack/openstack-helm/commits/branch/master/search?q=feat%28tls%29 Patch 0012-Update-helm-tookit-dependencies-to-0.2.19.patch Changes that this patch applies were already applied on commit20b6b9a236
Due to changes implemented on054affa290 (diff-9bd79f0fd832cb30fa4f4b6242b9059fbc0c81b30541b4243ff29cdf39bce621R63)
python-k8sapp-openstack/k8sapp_openstack/k8sapp_openstack/helm/cinder.py needed to be modified so the system overrides for the ceph client matches the name of the internal ceph cluster we that StarlingX creates and the deployment-cinder.yaml renders without issues. We've change the endpoints on nova-api-proxy/templates/deployment.yaml as in upstream openstack-helm deals with TLS internally, however in starlingx there is a workaround that forces public endpoint for openstack services. Although after some changes on openstack-helm that came with this rebase and using cert-manager to generate all tls internal secrets we dont need to do this anymore. The volume mounts for dev-pts at python-k8sapp-openstack/k8sapp_openstack/k8sapp_openstack/helm/nova.py were removed since this problem was fixed upstream on04d600c5b0
Story: 2009161 Task: 43150 Change-Id: Iaf7d4bf9aa80e1d5acacdfe24743d41d4e67a8c0 Signed-off-by: Arthur Luz de Avila <arthur.luzdeavila@windriver.com> Signed-off-by: Lucas Cavalcante <lucasmedeiros.cavalcante@windriver.com> Change-Id: Iaf7d4bf9aa80e1d5acacdfe24743d41d4e67a8c0
111 lines
3.7 KiB
Diff
111 lines
3.7 KiB
Diff
From 50e5e101857767fa5b20a3f548e3f28ffb8664ed Mon Sep 17 00:00:00 2001
|
|
From: Shuicheng Lin <shuicheng.lin@intel.com>
|
|
Date: Wed, 28 Oct 2020 15:17:34 +0800
|
|
Subject: [PATCH] Add stx_admin account for host to communicate with openstack
|
|
app
|
|
|
|
lcavalca: changed content to support tls keystone
|
|
|
|
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
|
|
Signed-off-by: Lucas Cavalcante <lucasmedeiros.cavalcante@windriver.com>
|
|
Change-Id: Iedcd131578f4e33efd3c3d7c47cbef83331b143a
|
|
---
|
|
keystone/templates/job-ks-user.yaml | 21 +++++++++++++++++++++
|
|
keystone/templates/secret-keystone.yaml | 2 +-
|
|
keystone/values.yaml | 17 +++++++++++++++++
|
|
3 files changed, 39 insertions(+), 1 deletion(-)
|
|
create mode 100644 keystone/templates/job-ks-user.yaml
|
|
|
|
diff --git a/keystone/templates/job-ks-user.yaml b/keystone/templates/job-ks-user.yaml
|
|
new file mode 100644
|
|
index 00000000..91f990f3
|
|
--- /dev/null
|
|
+++ b/keystone/templates/job-ks-user.yaml
|
|
@@ -0,0 +1,21 @@
|
|
+{{/*
|
|
+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.job_ks_user }}
|
|
+{{- $ksUserJob := dict "envAll" . "serviceName" "keystone" "serviceUser" "stx_admin" -}}
|
|
+{{- if .Values.manifests.certificates -}}
|
|
+{{- $_ := set $ksUserJob "tlsSecret" .Values.secrets.tls.identity.api.internal -}}
|
|
+{{- end -}}
|
|
+{{ $ksUserJob | include "helm-toolkit.manifests.job_ks_user" }}
|
|
+{{- end }}
|
|
diff --git a/keystone/templates/secret-keystone.yaml b/keystone/templates/secret-keystone.yaml
|
|
index 5aa87ab5..0e471f13 100644
|
|
--- a/keystone/templates/secret-keystone.yaml
|
|
+++ b/keystone/templates/secret-keystone.yaml
|
|
@@ -14,7 +14,7 @@ limitations under the License.
|
|
|
|
{{- if .Values.manifests.secret_keystone }}
|
|
{{- $envAll := . }}
|
|
-{{- range $key1, $userClass := tuple "admin" "test" }}
|
|
+{{- range $key1, $userClass := tuple "admin" "test" "stx_admin" }}
|
|
{{- $secretName := index $envAll.Values.secrets.identity $userClass }}
|
|
---
|
|
apiVersion: v1
|
|
diff --git a/keystone/values.yaml b/keystone/values.yaml
|
|
index 5f0e7aa1..ff4493f3 100644
|
|
--- a/keystone/values.yaml
|
|
+++ b/keystone/values.yaml
|
|
@@ -141,6 +141,10 @@ dependencies:
|
|
services:
|
|
- endpoint: internal
|
|
service: oslo_db
|
|
+ ks_user:
|
|
+ services:
|
|
+ - endpoint: internal
|
|
+ service: identity
|
|
domain_manage:
|
|
services:
|
|
- endpoint: internal
|
|
@@ -1047,6 +1051,7 @@ secrets:
|
|
identity:
|
|
admin: keystone-keystone-admin
|
|
test: keystone-keystone-test
|
|
+ stx_admin: keystone-keystone-stxadmin
|
|
oslo_db:
|
|
admin: keystone-db-admin
|
|
keystone: keystone-db-user
|
|
@@ -1090,6 +1095,17 @@ endpoints:
|
|
user_domain_name: default
|
|
project_domain_name: default
|
|
default_domain_id: default
|
|
+ stx_admin:
|
|
+ role:
|
|
+ - admin
|
|
+ - member
|
|
+ region_name: RegionOne
|
|
+ username: stx_admin
|
|
+ password: password
|
|
+ project_name: admin
|
|
+ user_domain_name: default
|
|
+ project_domain_name: default
|
|
+ default_domain_id: default
|
|
test:
|
|
role: admin
|
|
region_name: RegionOne
|
|
@@ -1247,6 +1263,7 @@ manifests:
|
|
job_domain_manage: true
|
|
job_fernet_setup: true
|
|
job_image_repo_sync: true
|
|
+ job_ks_user: true
|
|
job_rabbit_init: true
|
|
pdb_api: true
|
|
pod_rally_test: true
|
|
--
|
|
2.17.1
|
|
|