Remove sensu images

They have been deprecated in Ussuri [1].

[1]: https://review.opendev.org/#/c/711636/

Change-Id: I0cfde46c29eedce77c70c1c677220814a801ff3a
This commit is contained in:
Marcin Juszkiewicz 2020-07-06 11:33:24 +02:00
parent acf1600973
commit 0cfd36292c
13 changed files with 6 additions and 189 deletions

View File

@ -74,7 +74,6 @@ rsyslog,C,C,C,C,N,C
sahara,C,C,C,C,N,C sahara,C,C,C,C,N,C
searchlight,N,C,N,C,N,C searchlight,N,C,N,C,N,C
senlin,C,C,C,C,N,C senlin,C,C,C,C,N,C
sensu (deprecated),C,C,N,N,N,N
skydive,N,N,N,N,N,N skydive,N,N,N,N,N,N
solum,N,C,N,C,N,C solum,N,C,N,C,N,C
storm,C,C,C,C,N,C storm,C,C,C,C,N,C

1 Image,CentOS,,Ubuntu,,Debian
74 sahara,C,C,C,C,N,C
75 searchlight,N,C,N,C,N,C
76 senlin,C,C,C,C,N,C
sensu (deprecated),C,C,N,N,N,N
77 skydive,N,N,N,N,N,N
78 solum,N,C,N,C,N,C
79 storm,C,C,C,C,N,C

View File

@ -75,7 +75,6 @@ rsyslog,C,C,C,C,C,C
sahara,C,C,C,C,C,C sahara,C,C,C,C,C,C
searchlight,N,C,N,C,N,C searchlight,N,C,N,C,N,C
senlin,C,C,C,C,C,C senlin,C,C,C,C,C,C
sensu (deprecated),C,C,C,C,N,N
skydive,C,C,C,C,C,C skydive,C,C,C,C,C,C
solum,N,C,N,C,N,C solum,N,C,N,C,N,C
storm,C,C,C,C,C,C storm,C,C,C,C,C,C

1 Image,CentOS,,Ubuntu,,Debian
75 sahara,C,C,C,C,C,C
76 searchlight,N,C,N,C,N,C
77 senlin,C,C,C,C,C,C
sensu (deprecated),C,C,C,C,N,N
78 skydive,C,C,C,C,C,C
79 solum,N,C,N,C,N,C
80 storm,C,C,C,C,C,C

View File

@ -33,9 +33,6 @@ deb http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/ussuri main
# Qdrouterd repo # Qdrouterd repo
#deb http://ppa.launchpad.net/qpid/released/ubuntu/ bionic main #deb http://ppa.launchpad.net/qpid/released/ubuntu/ bionic main
# Sensu repo
#deb https://sensu.global.ssl.fastly.net/apt bionic main
# Opendaylight repo # Opendaylight repo
#deb http://ppa.launchpad.net/odl-team/carbon/ubuntu xenial main #deb http://ppa.launchpad.net/odl-team/carbon/ubuntu xenial main

View File

@ -1,13 +0,0 @@
FROM {{ namespace }}/{{ image_prefix }}sensu-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block sensu_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% block sensu_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER sensu

View File

@ -1,28 +0,0 @@
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block sensu_base_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.configure_user(name='sensu') }}
{{ macros.enable_extra_repos(['sensu']) }}
{% if base_package_type == 'rpm' %}
{% set sensu_base_packages = ['sensu'] %}
{% elif base_distro in ['ubuntu'] %}
{% set sensu_base_packages = ['sensu'] %}
{% else %}
RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{{ macros.install_packages(sensu_base_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block sensu_base_footer %}{% endblock %}

View File

@ -1,9 +0,0 @@
#!/bin/bash
# Create log directory, with appropriate permissions
if [[ ! -d "/var/log/kolla/sensu" ]]; then
mkdir -p /var/log/kolla/sensu
fi
if [[ $(stat -c %a /var/log/kolla/sensu) != "755" ]]; then
chmod 755 /var/log/kolla/sensu
fi

View File

@ -1,82 +0,0 @@
FROM {{ namespace }}/{{ image_prefix }}sensu-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block sensu_client_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{{ macros.enable_extra_repos(['ceph']) }}
{% if base_package_type == 'rpm' %}
{% set sensu_client_packages = [
'ceph-common',
'cyrus-sasl-devel',
'docker-client',
'gcc-c++',
'make',
'mariadb',
'ntp',
'python3-pymongo',
'ruby-devel'
] %}
{% elif base_package_type == 'deb' %}
{% set sensu_client_packages = [
'build-essential',
'ceph-common',
'docker.io',
'inetutils-ping',
'libsasl2-dev',
'mysql-client',
'ntp',
'python3-cephfs',
'python3-pymongo',
'python3-rados',
'python3-rbd'
] %}
{% else %}
RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \
&& /bin/false
{% endif %}
{{ macros.install_packages(sensu_client_packages | customizable("packages")) }}
{% block sensu_clients_install %}
# Sensu plugins are all using semantic versioning.
# Let's cap them to the known major version that works with the ruby shipped on
# rhel/centos (currently 2.0)
{% set sensu_plugins = [
'cpu-checks:"~>1"',
'disk-checks:"~>2"',
'dns:"~>1"',
'docker:"~>3"',
'elasticsearch:"~>1"',
'filesystem-checks:"~>1"',
'haproxy:"~>1"',
'http:"~>1"',
'io-checks:"~>1"',
'load-checks:"~>3"',
'memcached:"~>0"',
'memory-checks:"~>1"',
'mongodb:"~>0"',
'mysql:"~>2"',
'network-checks:"~>2"',
'ntp:"~>1"',
'openstack:"~>1"',
'rabbitmq:"~>3"',
'redis:"~>2"',
'uptime-checks:"~>1"',
'vmstats:"~>1"'
] %}
# TODO(mandre) Use packaged sensu plugins from centos-opstools for binary distro
# http://cbs.centos.org/koji/search?match=glob&type=package&terms=*sensu*
# NOTE(hrw): whois 5.0.0 requires Ruby 2.4+ while CentOS has 2.0
# NOTE(yoctozepto): pinning minitest for the same reason
RUN {%if base_package_type == 'rpm' %} gem install whois:"<5" minitest:"~>5.11.3" && {% endif %} sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
{% endblock %}
{% block sensu_client_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -1,42 +0,0 @@
FROM {{ namespace }}/{{ image_prefix }}sensu-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block sensu_server_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_package_type == 'rpm' %}
{% set sensu_server_packages = [
'cyrus-sasl-devel',
'gcc-c++',
'make',
'ruby-devel'
] %}
{% elif base_package_type == 'deb' %}
{% set sensu_server_packages = [
'build-essential',
'libsasl2-dev'
] %}
{% endif %}
{{ macros.install_packages(sensu_server_packages | customizable("packages")) }}
{% block sensu_server_plugins_install %}
# Sensu plugins are all using semantic versioning.
# Let's cap them to the known major version that works with the ruby shipped on
# rhel/centos (currently 2.0)
{% set sensu_plugins = [
'mailer:"~>3"',
'slack:"~>3"'
] %}
RUN sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
{% endblock %}
{% block sensu_server_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER sensu

View File

@ -1072,7 +1072,7 @@ USERS = {
'uid': 42466, 'uid': 42466,
'gid': 42466, 'gid': 42466,
}, },
'sensu-user': { 'sensu-user': { # unused used (sensu dropped)
'uid': 42467, 'uid': 42467,
'gid': 42467, 'gid': 42467,
}, },

View File

@ -132,7 +132,6 @@ UNBUILDABLE_IMAGES = {
"nova-spicehtml5proxy", # Missing spicehtml5 package "nova-spicehtml5proxy", # Missing spicehtml5 package
"opendaylight", # Missing opendaylight repo "opendaylight", # Missing opendaylight repo
"ovsdpdk", # Not supported on CentOS "ovsdpdk", # Not supported on CentOS
"sensu-base", # Dropped by CentOS
"tgtd", # Not supported on CentOS 8 "tgtd", # Not supported on CentOS 8
}, },
@ -143,7 +142,6 @@ UNBUILDABLE_IMAGES = {
"opendaylight", # no binary package "opendaylight", # no binary package
"ovsdpdk", "ovsdpdk",
"qdrouterd", "qdrouterd",
"sensu-base",
}, },
'ubuntu': { 'ubuntu': {
@ -152,11 +150,6 @@ UNBUILDABLE_IMAGES = {
'ubuntu+aarch64': { 'ubuntu+aarch64': {
"kibana", # no binary package "kibana", # no binary package
"sensu-base", # no binary package
},
'ubuntu+ppc64le': {
"sensu-base", # no binary package
}, },
'centos+aarch64': { 'centos+aarch64': {

View File

@ -71,7 +71,6 @@ ubuntu:
opendaylight: "deb http://ppa.launchpad.net/odl-team/carbon/ubuntu xenial main" opendaylight: "deb http://ppa.launchpad.net/odl-team/carbon/ubuntu xenial main"
qdrouterd: "deb http://ppa.launchpad.net/qpid/released/ubuntu/ bionic main" qdrouterd: "deb http://ppa.launchpad.net/qpid/released/ubuntu/ bionic main"
rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ bionic main" rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ bionic main"
sensu: "deb https://sensu.global.ssl.fastly.net/apt bionic main"
td-agent: "deb http://packages.treasuredata.com/3/ubuntu/bionic/ bionic contrib" td-agent: "deb http://packages.treasuredata.com/3/ubuntu/bionic/ bionic contrib"
ubuntu-aarch64: ubuntu-aarch64:

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The ``sensu`` images which were deprecated in the Ussuri cycle has been
removed.

View File

@ -35,7 +35,6 @@ for distro in debian ubuntu centos rhel; do
check_for_errors "gem .*install" check_for_errors "gem .*install"
check_for_errors "pip .*install" check_for_errors "pip .*install"
check_for_errors "npm .*install" check_for_errors "npm .*install"
check_for_errors "sensu-install"
check_for_errors "git .*clone" check_for_errors "git .*clone"
check_for_errors "wget" check_for_errors "wget"
check_for_errors "curl" check_for_errors "curl"