Merge "Remove retired Searchlight support"

This commit is contained in:
Zuul 2020-12-19 03:36:07 +00:00 committed by Gerrit Code Review
commit f30cf26271
44 changed files with 18 additions and 640 deletions

View File

@ -68,7 +68,6 @@ Kolla-Ansible deploys containers for the following OpenStack projects:
- `Panko <https://docs.openstack.org/panko/latest/>`__ - `Panko <https://docs.openstack.org/panko/latest/>`__
- `Rally <https://docs.openstack.org/rally/latest/>`__ - `Rally <https://docs.openstack.org/rally/latest/>`__
- `Sahara <https://docs.openstack.org/sahara/latest/>`__ - `Sahara <https://docs.openstack.org/sahara/latest/>`__
- `Searchlight <https://docs.openstack.org/searchlight/latest/>`__
- `Senlin <https://docs.openstack.org/senlin/latest/>`__ - `Senlin <https://docs.openstack.org/senlin/latest/>`__
- `Solum <https://docs.openstack.org/solum/latest/>`__ - `Solum <https://docs.openstack.org/solum/latest/>`__
- `Swift <https://docs.openstack.org/swift/latest/>`__ - `Swift <https://docs.openstack.org/swift/latest/>`__

View File

@ -456,8 +456,6 @@ redis_sentinel_port: "26379"
sahara_api_port: "8386" sahara_api_port: "8386"
searchlight_api_port: "9393"
senlin_internal_fqdn: "{{ kolla_internal_fqdn }}" senlin_internal_fqdn: "{{ kolla_internal_fqdn }}"
senlin_external_fqdn: "{{ kolla_external_fqdn }}" senlin_external_fqdn: "{{ kolla_external_fqdn }}"
senlin_api_port: "8778" senlin_api_port: "8778"
@ -616,7 +614,6 @@ enable_horizon_murano: "{{ enable_murano | bool }}"
enable_horizon_neutron_vpnaas: "{{ enable_neutron_vpnaas | bool }}" enable_horizon_neutron_vpnaas: "{{ enable_neutron_vpnaas | bool }}"
enable_horizon_octavia: "{{ enable_octavia | bool }}" enable_horizon_octavia: "{{ enable_octavia | bool }}"
enable_horizon_sahara: "{{ enable_sahara | bool }}" enable_horizon_sahara: "{{ enable_sahara | bool }}"
enable_horizon_searchlight: "{{ enable_searchlight | bool }}"
enable_horizon_senlin: "{{ enable_senlin | bool }}" enable_horizon_senlin: "{{ enable_senlin | bool }}"
enable_horizon_solum: "{{ enable_solum | bool }}" enable_horizon_solum: "{{ enable_solum | bool }}"
enable_horizon_tacker: "{{ enable_tacker | bool }}" enable_horizon_tacker: "{{ enable_tacker | bool }}"
@ -674,7 +671,6 @@ enable_qdrouterd: "{{ 'yes' if om_rpc_transport == 'amqp' else 'no' }}"
enable_rally: "no" enable_rally: "no"
enable_redis: "no" enable_redis: "no"
enable_sahara: "no" enable_sahara: "no"
enable_searchlight: "no"
enable_senlin: "no" enable_senlin: "no"
enable_skydive: "no" enable_skydive: "no"
enable_solum: "no" enable_solum: "no"

View File

@ -209,9 +209,6 @@ control
[rally:children] [rally:children]
control control
[searchlight:children]
control
[octavia:children] [octavia:children]
control control
@ -610,13 +607,6 @@ senlin
[senlin-health-manager:children] [senlin-health-manager:children]
senlin senlin
# Searchlight
[searchlight-api:children]
searchlight
[searchlight-listener:children]
searchlight
# Octavia # Octavia
[octavia-api:children] [octavia-api:children]
octavia octavia

View File

@ -227,9 +227,6 @@ control
[rally:children] [rally:children]
control control
[searchlight:children]
control
[octavia:children] [octavia:children]
control control
@ -628,13 +625,6 @@ senlin
[senlin-health-manager:children] [senlin-health-manager:children]
senlin senlin
# Searchlight
[searchlight-api:children]
searchlight
[searchlight-listener:children]
searchlight
# Octavia # Octavia
[octavia-api:children] [octavia-api:children]
octavia octavia

View File

@ -146,7 +146,7 @@ barbican_ks_roles:
#################### ####################
barbican_notification_topics: barbican_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool }}" enabled: "{{ enable_ceilometer | bool }}"
barbican_enabled_notification_topics: "{{ barbican_notification_topics | selectattr('enabled', 'equalto', true) | list }}" barbican_enabled_notification_topics: "{{ barbican_notification_topics | selectattr('enabled', 'equalto', true) | list }}"

View File

@ -166,8 +166,6 @@ fluentd_input_openstack_services:
enabled: "{{ enable_rally | bool }}" enabled: "{{ enable_rally | bool }}"
- name: sahara - name: sahara
enabled: "{{ enable_sahara | bool }}" enabled: "{{ enable_sahara | bool }}"
- name: searchlight
enabled: "{{ enable_searchlight | bool }}"
- name: senlin - name: senlin
enabled: "{{ enable_senlin | bool }}" enabled: "{{ enable_senlin | bool }}"
- name: solum - name: solum

View File

@ -212,7 +212,6 @@
- { name: "rabbitmq", enabled: "{{ enable_rabbitmq | bool }}" } - { name: "rabbitmq", enabled: "{{ enable_rabbitmq | bool }}" }
- { name: "rally", enabled: "{{ enable_rally | bool }}" } - { name: "rally", enabled: "{{ enable_rally | bool }}" }
- { name: "sahara", enabled: "{{ enable_sahara | bool }}" } - { name: "sahara", enabled: "{{ enable_sahara | bool }}" }
- { name: "searchlight", enabled: "{{ enable_searchlight | bool }}" }
- { name: "senlin", enabled: "{{ enable_senlin | bool }}" } - { name: "senlin", enabled: "{{ enable_senlin | bool }}" }
- { name: "skydive", enabled: "{{ enable_skydive | bool }}" } - { name: "skydive", enabled: "{{ enable_skydive | bool }}" }
- { name: "solum", enabled: "{{ enable_solum | bool }}" } - { name: "solum", enabled: "{{ enable_solum | bool }}" }

View File

@ -1,3 +0,0 @@
"/var/log/kolla/searchlight/*.log"
{
}

View File

@ -96,7 +96,7 @@ glance_ks_users:
#################### ####################
glance_notification_topics: glance_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool }}" enabled: "{{ enable_ceilometer | bool }}"
glance_enabled_notification_topics: "{{ glance_notification_topics | selectattr('enabled', 'equalto', true) | list }}" glance_enabled_notification_topics: "{{ glance_notification_topics | selectattr('enabled', 'equalto', true) | list }}"

View File

@ -767,19 +767,6 @@
- haproxy_stat.find('sahara_api') == -1 - haproxy_stat.find('sahara_api') == -1
- haproxy_vip_prechecks - haproxy_vip_prechecks
- name: Checking free port for Searchlight API HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- enable_searchlight | bool
- inventory_hostname in groups['haproxy']
- haproxy_stat.find('searchlight_api') == -1
- haproxy_vip_prechecks
- name: Checking free port for Senlin API HAProxy - name: Checking free port for Senlin API HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"

View File

@ -24,7 +24,6 @@ horizon_services:
ENABLE_NEUTRON_VPNAAS: "{{ 'yes' if enable_horizon_neutron_vpnaas | bool else 'no' }}" ENABLE_NEUTRON_VPNAAS: "{{ 'yes' if enable_horizon_neutron_vpnaas | bool else 'no' }}"
ENABLE_OCTAVIA: "{{ 'yes' if enable_horizon_octavia | bool else 'no' }}" ENABLE_OCTAVIA: "{{ 'yes' if enable_horizon_octavia | bool else 'no' }}"
ENABLE_SAHARA: "{{ 'yes' if enable_horizon_sahara | bool else 'no' }}" ENABLE_SAHARA: "{{ 'yes' if enable_horizon_sahara | bool else 'no' }}"
ENABLE_SEARCHLIGHT: "{{ 'yes' if enable_horizon_searchlight | bool else 'no' }}"
ENABLE_SENLIN: "{{ 'yes' if enable_horizon_senlin | bool else 'no' }}" ENABLE_SENLIN: "{{ 'yes' if enable_horizon_senlin | bool else 'no' }}"
ENABLE_SOLUM: "{{ 'yes' if enable_horizon_solum | bool else 'no' }}" ENABLE_SOLUM: "{{ 'yes' if enable_horizon_solum | bool else 'no' }}"
ENABLE_TACKER: "{{ 'yes' if enable_horizon_tacker | bool else 'no' }}" ENABLE_TACKER: "{{ 'yes' if enable_horizon_tacker | bool else 'no' }}"

View File

@ -41,7 +41,6 @@
- { name: "nova", enabled: "{{ enable_nova_horizon_policy_file }}" } - { name: "nova", enabled: "{{ enable_nova_horizon_policy_file }}" }
- { name: "octavia", enabled: "{{ enable_horizon_octavia }}" } - { name: "octavia", enabled: "{{ enable_horizon_octavia }}" }
- { name: "sahara", enabled: "{{ enable_horizon_sahara }}" } - { name: "sahara", enabled: "{{ enable_horizon_sahara }}" }
- { name: "searchlight", enabled: "{{ enable_horizon_searchlight }}" }
- { name: "senlin", enabled: "{{ enable_horizon_senlin }}" } - { name: "senlin", enabled: "{{ enable_horizon_senlin }}" }
- { name: "solum", enabled: "{{ enable_horizon_solum }}" } - { name: "solum", enabled: "{{ enable_horizon_solum }}" }
- { name: "tacker", enabled: "{{ enable_horizon_tacker }}" } - { name: "tacker", enabled: "{{ enable_horizon_tacker }}" }

View File

@ -636,7 +636,7 @@ neutron_service_plugins: "{{ service_plugins | selectattr('enabled', 'equalto',
#################### ####################
neutron_notification_topics: neutron_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool or enable_neutron_infoblox_ipam_agent | bool }}" enabled: "{{ enable_ceilometer | bool or enable_neutron_infoblox_ipam_agent | bool }}"
- name: notifications_designate - name: notifications_designate
enabled: "{{ enable_designate | bool }}" enabled: "{{ enable_designate | bool }}"
- name: vitrage_notifications - name: vitrage_notifications

View File

@ -467,7 +467,7 @@ nova_cell_conductor_has_api_database: "yes"
#################### ####################
nova_notification_topics: nova_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool or enable_neutron_infoblox_ipam_agent | bool }}" enabled: "{{ enable_ceilometer | bool or enable_neutron_infoblox_ipam_agent | bool }}"
- name: notifications_designate - name: notifications_designate
enabled: "{{ enable_designate | bool }}" enabled: "{{ enable_designate | bool }}"
- name: vitrage_notifications - name: vitrage_notifications

View File

@ -26,7 +26,7 @@ compute_driver = libvirt.LibvirtDriver
# Though my_ip is not used directly, lots of other variables use $my_ip # Though my_ip is not used directly, lots of other variables use $my_ip
my_ip = {{ api_interface_address }} my_ip = {{ api_interface_address }}
{% if enable_ceilometer | bool or enable_searchlight | bool or enable_designate | bool %} {% if enable_ceilometer | bool or enable_designate | bool %}
instance_usage_audit = True instance_usage_audit = True
instance_usage_audit_period = hour instance_usage_audit_period = hour
{% if enable_watcher | bool %} {% if enable_watcher | bool %}
@ -217,15 +217,9 @@ cafile = {{ openstack_cacert }}
valid_interfaces = internal valid_interfaces = internal
[notifications] [notifications]
{% if enable_ceilometer | bool or enable_searchlight | bool or enable_designate | bool or enable_neutron_infoblox_ipam_agent | bool %} {% if enable_ceilometer | bool or enable_designate | bool or enable_neutron_infoblox_ipam_agent | bool %}
notify_on_state_change = vm_and_task_state notify_on_state_change = vm_and_task_state
{% endif %} {% endif %}
{% if not enable_searchlight | bool %}
notification_format = unversioned
{% else %}
notification_format = both
{% endif %}
{% if enable_osprofiler | bool %} {% if enable_osprofiler | bool %}
[profiler] [profiler]

View File

@ -224,7 +224,7 @@ nova_ks_users:
#################### ####################
nova_notification_topics: nova_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool or enable_neutron_infoblox_ipam_agent | bool }}" enabled: "{{ enable_ceilometer | bool or enable_neutron_infoblox_ipam_agent | bool }}"
- name: notifications_designate - name: notifications_designate
enabled: "{{ enable_designate | bool }}" enabled: "{{ enable_designate | bool }}"
- name: vitrage_notifications - name: vitrage_notifications

View File

@ -13,7 +13,7 @@ allow_resize_to_same_host = true
# Though my_ip is not used directly, lots of other variables use $my_ip # Though my_ip is not used directly, lots of other variables use $my_ip
my_ip = {{ api_interface_address }} my_ip = {{ api_interface_address }}
{% if enable_ceilometer | bool or enable_searchlight | bool or enable_designate | bool %} {% if enable_ceilometer | bool or enable_designate | bool %}
instance_usage_audit = True instance_usage_audit = True
instance_usage_audit_period = hour instance_usage_audit_period = hour
{% endif %} {% endif %}
@ -176,15 +176,9 @@ cafile = {{ openstack_cacert }}
valid_interfaces = internal valid_interfaces = internal
[notifications] [notifications]
{% if enable_ceilometer | bool or enable_searchlight | bool or enable_designate | bool or enable_neutron_infoblox_ipam_agent | bool %} {% if enable_ceilometer | bool or enable_designate | bool or enable_neutron_infoblox_ipam_agent | bool %}
notify_on_state_change = vm_and_task_state notify_on_state_change = vm_and_task_state
{% endif %} {% endif %}
{% if not enable_searchlight | bool %}
notification_format = unversioned
{% else %}
notification_format = both
{% endif %}
{% if enable_osprofiler | bool %} {% if enable_osprofiler | bool %}
[profiler] [profiler]

View File

@ -84,7 +84,7 @@ openstack_placement_auth: "{{ openstack_auth }}"
#################### ####################
placement_notification_topics: placement_notification_topics:
- name: notifications - name: notifications
enabled: "{{ enable_ceilometer | bool or enable_searchlight | bool or enable_neutron_infoblox_ipam_agent | bool }}" enabled: "{{ enable_ceilometer | bool or enable_neutron_infoblox_ipam_agent | bool }}"
- name: notifications_designate - name: notifications_designate
enabled: "{{ enable_designate | bool }}" enabled: "{{ enable_designate | bool }}"

View File

@ -1,107 +0,0 @@
---
project_name: "searchlight"
searchlight_services:
searchlight-api:
container_name: searchlight_api
group: searchlight-api
enabled: true
image: "{{ searchlight_api_image_full }}"
volumes: "{{ searchlight_api_default_volumes + searchlight_api_extra_volumes }}"
dimensions: "{{ searchlight_api_dimensions }}"
haproxy:
searchlight_api:
enabled: "{{ enable_searchlight }}"
mode: "http"
external: false
port: "{{ searchlight_api_port }}"
searchlight_api_external:
enabled: "{{ enable_searchlight }}"
mode: "http"
external: true
port: "{{ searchlight_api_port }}"
searchlight-listener:
container_name: searchlight_listener
group: searchlight-listener
enabled: true
image: "{{ searchlight_listener_image_full }}"
volumes: "{{ searchlight_listener_default_volumes + searchlight_listener_extra_volumes }}"
dimensions: "{{ searchlight_listener_dimensions }}"
####################
# Elasticsearch
####################
searchlight_elasticsearch_url: "{{ elasticsearch_address | put_address_in_context('url') }}:{{ elasticsearch_port }}"
####################
# Docker
####################
searchlight_install_type: "{{ kolla_install_type }}"
searchlight_tag: "{{ openstack_tag }}"
searchlight_listener_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ searchlight_install_type }}-searchlight-listener"
searchlight_listener_tag: "{{ searchlight_tag }}"
searchlight_listener_image_full: "{{ searchlight_listener_image }}:{{ searchlight_listener_tag }}"
searchlight_api_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ searchlight_install_type }}-searchlight-api"
searchlight_api_tag: "{{ searchlight_tag }}"
searchlight_api_image_full: "{{ searchlight_api_image }}:{{ searchlight_api_tag }}"
searchlight_api_dimensions: "{{ default_container_dimensions }}"
searchlight_listener_dimensions: "{{ default_container_dimensions }}"
searchlight_api_default_volumes:
- "{{ node_config_directory }}/searchlight-api/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
searchlight_listener_default_volumes:
- "{{ node_config_directory }}/searchlight-listener/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
- "kolla_logs:/var/log/kolla/"
searchlight_extra_volumes: "{{ default_extra_volumes }}"
searchlight_api_extra_volumes: "{{ searchlight_extra_volumes }}"
searchlight_listener_extra_volumes: "{{ searchlight_extra_volumes }}"
####################
# OpenStack
####################
searchlight_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ searchlight_api_port }}"
searchlight_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ searchlight_api_port }}"
searchlight_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ searchlight_api_port }}"
searchlight_logging_debug: "{{ openstack_logging_debug }}"
searchlight_keystone_user: "searchlight"
openstack_searchlight_auth: "{{ openstack_auth }}"
####################
# Notifications
####################
searchlight_notification_topics:
- name: notifications
enabled: "{{ enable_ceilometer | bool }}"
searchlight_enabled_notification_topics: "{{ searchlight_notification_topics | selectattr('enabled', 'equalto', true) | list }}"
####################
# Keystone
####################
searchlight_ks_services:
- name: "searchlight"
type: "search"
description: "Openstack Index Service"
endpoints:
- {'interface': 'admin', 'url': '{{ searchlight_admin_endpoint }}'}
- {'interface': 'internal', 'url': '{{ searchlight_internal_endpoint }}'}
- {'interface': 'public', 'url': '{{ searchlight_public_endpoint }}'}
searchlight_ks_users:
- project: "service"
user: "{{ searchlight_keystone_user }}"
password: "{{ searchlight_keystone_password }}"
role: "admin"

View File

@ -1,30 +0,0 @@
---
- name: Restart searchlight-api container
vars:
service_name: "searchlight-api"
service: "{{ searchlight_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
when:
- kolla_action != "config"
- name: Restart searchlight-listener container
vars:
service_name: "searchlight-listener"
service: "{{ searchlight_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
volumes: "{{ service.volumes }}"
dimensions: "{{ service.dimensions }}"
when:
- kolla_action != "config"

View File

@ -1,2 +0,0 @@
---
- import_tasks: bootstrap_service.yml

View File

@ -1,20 +0,0 @@
---
- name: Running Searchlight bootstrap container
vars:
searchlight_api: "{{ searchlight_services['searchlight-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
image: "{{ searchlight_api.image }}"
labels:
BOOTSTRAP:
name: "bootstrap_searchlight"
restart_policy: no
volumes: "{{ searchlight_api.volumes }}"
run_once: True
delegate_to: "{{ groups[searchlight_api.group][0] }}"

View File

@ -1,16 +0,0 @@
---
- name: Check searchlight containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes }}"
dimensions: "{{ item.value.dimensions }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ searchlight_services }}"
notify:
- "Restart {{ item.key }} container"

View File

@ -1 +0,0 @@
---

View File

@ -1,82 +0,0 @@
---
- name: Ensuring config directories exist
file:
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"
owner: "{{ config_owner_user }}"
group: "{{ config_owner_group }}"
mode: "0770"
become: true
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ searchlight_services }}"
- name: Check if policies shall be overwritten
stat:
path: "{{ item }}"
delegate_to: localhost
run_once: True
register: searchlight_policy
with_first_found:
- files: "{{ supported_policy_format_list }}"
paths:
- "{{ node_custom_config }}/searchlight/"
skip: true
- name: Set searchlight policy file
set_fact:
searchlight_policy_file: "{{ searchlight_policy.results.0.stat.path | basename }}"
searchlight_policy_file_path: "{{ searchlight_policy.results.0.stat.path }}"
when:
- searchlight_policy.results
- include_tasks: copy-certs.yml
when:
- kolla_copy_ca_into_containers | bool
- name: Copying over config.json files for services
template:
src: "{{ item.key }}.json.j2"
dest: "{{ node_config_directory }}/{{ item.key }}/config.json"
mode: "0660"
become: true
when:
- item.value.enabled | bool
- inventory_hostname in groups[item.value.group]
with_dict: "{{ searchlight_services }}"
notify:
- Restart {{ item.key }} container
- name: Copying over searchlight.conf
vars:
service_name: "{{ item.key }}"
merge_configs:
sources:
- "{{ role_path }}/templates/searchlight.conf.j2"
- "{{ node_custom_config }}/global.conf"
- "{{ node_custom_config }}/searchlight.conf"
- "{{ node_custom_config }}/searchlight/{{ inventory_hostname }}/searchlight.conf"
dest: "{{ node_config_directory }}/{{ item.key }}/searchlight.conf"
mode: "0660"
become: true
when:
- item.value.enabled | bool
- inventory_hostname in groups[item.value.group]
with_dict: "{{ searchlight_services }}"
notify:
- Restart {{ item.key }} container
- name: Copying over existing policy file
template:
src: "{{ searchlight_policy_file_path }}"
dest: "{{ node_config_directory }}/{{ item.key }}/{{ searchlight_policy_file }}"
mode: "0660"
become: true
when:
- searchlight_policy_file is defined
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ searchlight_services }}"
notify:
- Restart {{ item.key }} container

View File

@ -1,6 +0,0 @@
---
- name: "Copy certificates and keys for {{ project_name }}"
import_role:
role: service-cert-copy
vars:
project_services: "{{ searchlight_services }}"

View File

@ -1,2 +0,0 @@
---
- import_tasks: check-containers.yml

View File

@ -1,11 +0,0 @@
---
- import_tasks: register.yml
- import_tasks: config.yml
- import_tasks: check-containers.yml
- import_tasks: bootstrap.yml
- name: Flush handlers
meta: flush_handlers

View File

@ -1,7 +0,0 @@
---
- name: "Configure haproxy for {{ project_name }}"
import_role:
name: haproxy-config
vars:
project_services: "{{ searchlight_services }}"
tags: always

View File

@ -1,2 +0,0 @@
---
- include_tasks: "{{ kolla_action }}.yml"

View File

@ -1,24 +0,0 @@
---
- import_role:
name: service-precheck
vars:
service_precheck_services: "{{ searchlight_services }}"
service_name: "{{ project_name }}"
- name: Get container facts
become: true
kolla_container_facts:
name:
- searchlight_api
register: container_facts
- name: Checking free port for Searchlight API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ searchlight_api_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['searchlight_api'] is not defined
- inventory_hostname in groups['searchlight-api']

View File

@ -1,11 +0,0 @@
---
- name: Pulling searchlight images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ item.value.image }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ searchlight_services }}"

View File

@ -1,2 +0,0 @@
---
- import_tasks: deploy.yml

View File

@ -1,7 +0,0 @@
---
- import_role:
name: service-ks-register
vars:
service_ks_register_auth: "{{ openstack_searchlight_auth }}"
service_ks_register_services: "{{ searchlight_ks_services }}"
service_ks_register_users: "{{ searchlight_ks_users }}"

View File

@ -1,6 +0,0 @@
---
- import_role:
name: service-stop
vars:
project_services: "{{ searchlight_services }}"
service_name: "{{ project_name }}"

View File

@ -1,9 +0,0 @@
---
- import_tasks: config.yml
- import_tasks: check-containers.yml
- import_tasks: bootstrap_service.yml
- name: Flush handlers
meta: flush_handlers

View File

@ -1,24 +0,0 @@
{
"command": "searchlight-api",
"config_files": [
{
"source": "{{ container_config_directory }}/searchlight.conf",
"dest": "/etc/searchlight/searchlight.conf",
"owner": "searchlight",
"perm": "0600"
}{% if searchlight_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ searchlight_policy_file }}",
"dest": "/etc/searchlight/{{ searchlight_policy_file }}",
"owner": "searchlight",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/searchlight",
"owner": "searchlight:searchlight",
"recurse": true
}
]
}

View File

@ -1,24 +0,0 @@
{
"command": "searchlight-listener",
"config_files": [
{
"source": "{{ container_config_directory }}/searchlight.conf",
"dest": "/etc/searchlight/searchlight.conf",
"owner": "searchlight",
"perm": "0600"
}{% if searchlight_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ searchlight_policy_file }}",
"dest": "/etc/searchlight/{{ searchlight_policy_file }}",
"owner": "searchlight",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/searchlight",
"owner": "searchlight:searchlight",
"recurse": true
}
]
}

View File

@ -1,147 +0,0 @@
[DEFAULT]
debug = {{ searchlight_logging_debug }}
log_dir = /var/log/kolla/searchlight
transport_url = {{ rpc_transport_url }}
[api]
port = {{ searchlight_api_port }}
bind_host = {{ api_interface_address }}
public_endpoint = {{ searchlight_public_endpoint }}
workers = {{ openstack_service_workers }}
[elasticsearch]
hosts = {{ searchlight_elasticsearch_url }}
[listener]
workers = {{ openstack_service_workers }}
notifications_pool = searchlight-listener
[paste_deploy]
flavor = keystone
[keystone_authtoken]
www_authenticate_uri = {{ keystone_internal_url }}
auth_url = {{ keystone_admin_url }}
project_domain_name = {{ default_project_domain_name }}
project_name = service
user_domain_name = {{ default_user_domain_name }}
username = {{ searchlight_keystone_user }}
password = {{ searchlight_keystone_password }}
auth_type = password
cafile = {{ openstack_cacert }}
memcache_security_strategy = ENCRYPT
memcache_secret_key = {{ memcache_secret_key }}
memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_address(host) | put_address_in_context('memcache') }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
[oslo_messaging_notifications]
transport_url = {{ notify_transport_url }}
{% if searchlight_enabled_notification_topics %}
driver = messagingv2
topics = {{ searchlight_enabled_notification_topics | map(attribute='name') | join(',') }}
{% else %}
driver = noop
{% endif %}
{% if om_enable_rabbitmq_tls | bool %}
[oslo_messaging_rabbit]
ssl = true
ssl_ca_file = {{ om_rabbitmq_cacert }}
{% endif %}
{% if searchlight_policy_file is defined %}
[oslo_policy]
policy_file = {{ searchlight_policy_file }}
{% endif %}
[service_credentials]
auth_uri = {{ keystone_internal_url }}
auth_url = {{ keystone_admin_url }}
region_name = {{ openstack_region_name }}
project_domain_name = default
project_name = service
user_domain_name = default
username = {{ searchlight_keystone_user }}
password = {{ searchlight_keystone_password }}
auth_type = password
auth_plugin = password
cafile = {{ openstack_cacert }}
memcache_security_strategy = ENCRYPT
memcache_secret_key = {{ memcache_secret_key }}
memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_address(host) | put_address_in_context('memcache') }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
[resource_plugin:os_cinder_volume]
enabled = {{ enable_cinder | bool }}
[resource_plugin:os_cinder_snapshot]
enabled = {{ enable_cinder | bool }}
[resource_plugin:os_designate_zone]
enabled = {{ enable_designate | bool }}
[resource_plugin:os_designate_recordset]
enabled = {{ enable_designate | bool }}
[resource_plugin:os_swift_account]
enabled = {{ enable_swift | bool }}
[resource_plugin:os_swift_container]
enabled = {{ enable_swift | bool }}
[resource_plugin:os_swift_object]
enabled = {{ enable_swift | bool }}
[resource_plugin:os_nova_server]
enabled = {{ enable_nova | bool }}
[resource_plugin:os_nova_hypervisor]
enabled = {{ enable_nova | bool }}
[resource_plugin:os_nova_flavor]
enabled = {{ enable_nova | bool }}
notifications_topics_exchanges = versioned_notifications,nova
[resource_plugin:os_nova_servergroup]
enabled = {{ enable_nova | bool }}
[resource_plugin:os_glance_image]
enabled = {{ enable_glance | bool }}
[resource_plugin:os_glance_metadef]
enabled = {{ enable_glance | bool }}
[resource_plugin:os_neutron_net]
enabled = {{ enable_neutron | bool }}
[resource_plugin:os_neutron_port]
enabled = {{ enable_neutron | bool }}
[resource_plugin:os_neutron_floatingip]
enabled = {{ enable_neutron | bool }}
[resource_plugin:os_neutron_security_group]
enabled = {{ enable_neutron | bool }}
[resource_plugin:os_ironic_chassis]
enabled = {{ enable_ironic | bool }}
notifications_topics_exchanges = ironic_versioned_notifications,ironic
[resource_plugin:os_ironic_node]
enabled = {{ enable_ironic | bool }}
notifications_topics_exchanges = ironic_versioned_notifications,ironic
[resource_plugin:os_ironic_port]
enabled = {{ enable_ironic | bool }}
notifications_topics_exchanges = ironic_versioned_notifications,ironic
{# TODO(blallau): enabling osprofiler when fixed in searchlight #}
{# {% if enable_osprofiler | bool %} #}
{# [profiler] #}
{# enabled = true #}
{# trace_sqlalchemy = true #}
{# hmac_keys = {{ osprofiler_secret }} #}
{# connection_string = {{ osprofiler_backend_connection_string }} #}
{# {% endif %} #}

View File

@ -66,7 +66,6 @@
- enable_rally_{{ enable_rally | bool }} - enable_rally_{{ enable_rally | bool }}
- enable_redis_{{ enable_redis | bool }} - enable_redis_{{ enable_redis | bool }}
- enable_sahara_{{ enable_sahara | bool }} - enable_sahara_{{ enable_sahara | bool }}
- enable_searchlight_{{ enable_searchlight | bool }}
- enable_senlin_{{ enable_senlin | bool }} - enable_senlin_{{ enable_senlin | bool }}
- enable_skydive_{{ enable_skydive | bool }} - enable_skydive_{{ enable_skydive | bool }}
- enable_solum_{{ enable_solum | bool }} - enable_solum_{{ enable_solum | bool }}
@ -314,11 +313,6 @@
tasks_from: loadbalancer tasks_from: loadbalancer
tags: sahara tags: sahara
when: enable_sahara | bool when: enable_sahara | bool
- include_role:
name: searchlight
tasks_from: loadbalancer
tags: searchlight
when: enable_searchlight | bool
- include_role: - include_role:
name: senlin name: senlin
tasks_from: loadbalancer tasks_from: loadbalancer
@ -1084,18 +1078,6 @@
tags: senlin, tags: senlin,
when: enable_senlin | bool } when: enable_senlin | bool }
- name: Apply role searchlight
gather_facts: false
hosts:
- searchlight-api
- searchlight-listener
- '&enable_searchlight_True'
serial: '{{ kolla_serial|default("0") }}'
roles:
- { role: searchlight,
tags: searchlight,
when: enable_searchlight | bool }
- name: Apply role tacker - name: Apply role tacker
gather_facts: false gather_facts: false
hosts: hosts:

View File

@ -313,7 +313,6 @@
#enable_horizon_neutron_vpnaas: "{{ enable_neutron_vpnaas | bool }}" #enable_horizon_neutron_vpnaas: "{{ enable_neutron_vpnaas | bool }}"
#enable_horizon_octavia: "{{ enable_octavia | bool }}" #enable_horizon_octavia: "{{ enable_octavia | bool }}"
#enable_horizon_sahara: "{{ enable_sahara | bool }}" #enable_horizon_sahara: "{{ enable_sahara | bool }}"
#enable_horizon_searchlight: "{{ enable_searchlight | bool }}"
#enable_horizon_senlin: "{{ enable_senlin | bool }}" #enable_horizon_senlin: "{{ enable_senlin | bool }}"
#enable_horizon_solum: "{{ enable_solum | bool }}" #enable_horizon_solum: "{{ enable_solum | bool }}"
#enable_horizon_tacker: "{{ enable_tacker | bool }}" #enable_horizon_tacker: "{{ enable_tacker | bool }}"
@ -371,7 +370,6 @@
#enable_rally: "no" #enable_rally: "no"
#enable_redis: "no" #enable_redis: "no"
#enable_sahara: "no" #enable_sahara: "no"
#enable_searchlight: "no"
#enable_senlin: "no" #enable_senlin: "no"
#enable_skydive: "no" #enable_skydive: "no"
#enable_solum: "no" #enable_solum: "no"

View File

@ -172,8 +172,6 @@ octavia_keystone_password:
octavia_ca_password: octavia_ca_password:
octavia_client_ca_password: octavia_client_ca_password:
searchlight_keystone_password:
tacker_database_password: tacker_database_password:
tacker_keystone_password: tacker_keystone_password:

View File

@ -0,0 +1,8 @@
---
upgrade:
- |
The ``Searchlight`` project is no longer maintained and
`retired since Wallaby cycle`__ . Its support and roles
are also removed since Wallaby cycle.
__ http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018637.html

View File

@ -241,9 +241,6 @@ control
[rally:children] [rally:children]
control control
[searchlight:children]
control
[octavia:children] [octavia:children]
control control
@ -642,13 +639,6 @@ senlin
[senlin-health-manager:children] [senlin-health-manager:children]
senlin senlin
# Searchlight
[searchlight-api:children]
searchlight
[searchlight-listener:children]
searchlight
# Octavia # Octavia
[octavia-api:children] [octavia-api:children]
octavia octavia