Remove Senlin project code as it retires after 2024.1 (#1518)
fix #1267
Reviewed-by: Mohammed Naser <mnaser@vexxhost.com>
Reviewed-by: Yaguang Tang <heut2008@gmail.com>
diff --git a/charts/patches/senlin/0001-tune-uwsgi-config.patch b/charts/patches/senlin/0001-tune-uwsgi-config.patch
deleted file mode 100644
index 0c96c34..0000000
--- a/charts/patches/senlin/0001-tune-uwsgi-config.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git b/senlin/values.yaml a/charts/senlin/values.yaml
-index d4f72483..5631c58b 100644
---- b/senlin/values.yaml
-+++ a/senlin/values.yaml
-@@ -208,15 +215,20 @@ conf:
- uwsgi:
- add-header: "Connection: close"
- buffer-size: 65535
-+ chunked-input-limit: "4096000"
- die-on-term: true
- enable-threads: true
- exit-on-reload: false
- hook-master-start: unix_signal:15 gracefully_kill_them_all
-+ http-auto-chunked: true
-+ http-raw-body: true
- lazy-apps: true
- log-x-forwarded-for: true
- master: true
-+ need-app: true
- procname-prefix-spaced: "senlin-api:"
- route-user-agent: '^kube-probe.* donotlog:'
-+ socket-timeout: 10
- thunder-lock: true
- worker-reload-mercy: 80
- wsgi-file: /var/lib/openstack/bin/senlin-wsgi-api
diff --git a/charts/patches/senlin/0002-fix-paste-file.patch b/charts/patches/senlin/0002-fix-paste-file.patch
deleted file mode 100644
index 717c0ff..0000000
--- a/charts/patches/senlin/0002-fix-paste-file.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff --git b/senlin/values.yaml a/charts/senlin/values.yaml
-index 48bf86ab..5631c58b 100644
---- b/senlin/values.yaml
-+++ a/senlin/values.yaml
-@@ -98,7 +98,7 @@ conf:
- - network: public
- paste:
- pipeline:senlin-api:
-- pipeline: request_id faultwrap ssl versionnegotiation webhook authtoken context trust apiv1app
-+ pipeline: cors http_proxy_to_wsgi request_id faultwrap versionnegotiation osprofiler webhook authtoken context trust apiv1app
- app:apiv1app:
- paste.app_factory: senlin.api.common.wsgi:app_factory
- senlin.app_factory: senlin.api.openstack.v1.router:API
-@@ -110,8 +110,7 @@ conf:
- filter:context:
- paste.filter_factory: senlin.api.common.wsgi:filter_factory
- senlin.filter_factory: senlin.api.middleware:context_filter
-- filter:ssl:
-- paste.filter_factory: oslo_middleware.ssl:SSLMiddleware.factory
-+ oslo_config_project: senlin
- filter:versionnegotiation:
- paste.filter_factory: senlin.api.common.wsgi:filter_factory
- senlin.filter_factory: senlin.api.middleware:version_filter
-@@ -121,8 +120,16 @@ conf:
- filter:webhook:
- paste.filter_factory: senlin.api.common.wsgi:filter_factory
- senlin.filter_factory: senlin.api.middleware:webhook_filter
-+ filter:http_proxy_to_wsgi:
-+ paste.filter_factory: oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory
-+ oslo_config_project: senlin
- filter:authtoken:
- paste.filter_factory: keystonemiddleware.auth_token:filter_factory
-+ filter:osprofiler:
-+ paste.filter_factory: osprofiler.web:WsgiMiddleware.factory
-+ filter:cors:
-+ paste.filter_factory: oslo_middleware.cors:filter_factory
-+ oslo_config_project: senlin
- policy: {}
- senlin:
- DEFAULT:
diff --git a/playbooks/openstack.yml b/playbooks/openstack.yml
index 3d12749..13d1695 100644
--- a/playbooks/openstack.yml
+++ b/playbooks/openstack.yml
@@ -108,10 +108,6 @@
tags:
- neutron
- - role: senlin
- tags:
- - senlin
-
# NOTE(mnaser): This is disabled out of the box until we have a native way
# of configuring it with a pre-configured backend out of the
# box.
diff --git a/roles/senlin/README.md b/roles/senlin/README.md
deleted file mode 100644
index 8714a46..0000000
--- a/roles/senlin/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# `senlin`
diff --git a/roles/senlin/defaults/main.yml b/roles/senlin/defaults/main.yml
deleted file mode 100644
index 2ed2bef..0000000
--- a/roles/senlin/defaults/main.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-# Copyright (c) 2023 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.
-
-senlin_helm_release_name: senlin
-senlin_helm_release_namespace: openstack
diff --git a/roles/senlin/meta/main.yml b/roles/senlin/meta/main.yml
deleted file mode 100644
index d4c1a5a..0000000
--- a/roles/senlin/meta/main.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2024 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.
-
-galaxy_info:
- author: VEXXHOST, Inc.
- description: Ansible role for OpenStack Senlin (Deprecated)
- license: Apache-2.0
- min_ansible_version: 5.5.0
- standalone: false
- platforms:
- - name: EL
- versions:
- - "8"
- - "9"
- - name: Ubuntu
- versions:
- - focal
- - jammy
diff --git a/roles/senlin/tasks/main.yml b/roles/senlin/tasks/main.yml
deleted file mode 100644
index 569bb59..0000000
--- a/roles/senlin/tasks/main.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright (c) 2022 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.
-
-- name: Remove OpenStack endpoints
- openstack.cloud.endpoint:
- cloud: atmosphere
- service: senlin
- endpoint_interface: "{{ item }}"
- url: endpoint
- region: "{{ openstack_helm_endpoints_region_name }}"
- state: absent
- loop:
- - public
- - admin
- - internal
-
-- name: Remove OpenStack service
- openstack.cloud.catalog_service:
- cloud: atmosphere
- name: senlin
- service_type: clustering
- state: absent
-
-- name: Remove Ingress
- kubernetes.core.k8s:
- state: absent
- definition:
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: clustering
- namespace: "{{ senlin_helm_release_namespace }}"
-
-- name: Remove Helm chart
- run_once: true
- kubernetes.core.helm:
- name: "{{ senlin_helm_release_name }}"
- release_namespace: "{{ senlin_helm_release_namespace }}"
- kubeconfig: /etc/kubernetes/admin.conf
- state: absent
-
-- name: Remove OpenStack user
- openstack.cloud.identity_user:
- cloud: atmosphere
- name: "senlin-{{ openstack_helm_endpoints_region_name }}"
- domain: service