Merge "Build Masakari for Ubuntu binary"

This commit is contained in:
Zuul 2021-01-26 11:09:02 +00:00 committed by Gerrit Code Review
commit 36cb21f61f
8 changed files with 89 additions and 18 deletions

View File

@ -39,7 +39,7 @@ logstash,C,C,C,C,N,C
magnum,C,C,C,C,N,C
manila,C,C,C,C,N,C
mariadb,C,C,C,C,N,C
masakari,N,C,N,C,N,C
masakari,N,C,C,C,N,C
memcached,C,C,C,C,N,C
mistral,C,C,C,C,N,C
monasca,N,N,N,N,N,N

1 Image,CentOS,,Ubuntu,,Debian
39 magnum,C,C,C,C,N,C
40 manila,C,C,C,C,N,C
41 mariadb,C,C,C,C,N,C
42 masakari,N,C,N,C,N,C masakari,N,C,C,C,N,C
43 memcached,C,C,C,C,N,C
44 mistral,C,C,C,C,N,C
45 monasca,N,N,N,N,N,N

View File

@ -40,7 +40,7 @@ logstash,C,C,C,C,C,C
magnum,C,C,C,C,C,C
manila,C,C,C,C,C,C
mariadb,T,T,T,T,C,T
masakari,N,T,N,T,N,C
masakari,N,T,C,T,N,C
memcached,T,T,T,T,C,C
mistral,C,T,N,C,C,C
monasca,N,C,N,C,N,N

1 Image,CentOS,,Ubuntu,,Debian
40 magnum,C,C,C,C,C,C
41 manila,C,C,C,C,C,C
42 mariadb,T,T,T,T,C,T
43 masakari,N,T,N,T,N,C masakari,N,T,C,T,N,C
44 memcached,T,T,T,T,C,C
45 mistral,C,T,N,C,C,C
46 monasca,N,C,N,C,N,N

View File

@ -5,10 +5,29 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block masakari_api_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% if base_package_type == 'rpm' %}
{# not available #}
{% set masakari_base_packages = [
] %}
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
'masakari-api',
] %}
{% endif %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
{% if base_package_type == 'deb' %}
RUN rm -f /etc/apache2/sites-enabled/masakari-api.conf
{% endif %}
{% endif %}

View File

@ -11,8 +11,21 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% if base_package_type == 'rpm' %}
{# not available #}
{% set masakari_base_packages = [
] %}
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
'python3-masakari',
] %}
{% endif %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
@ -21,17 +34,17 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% set masakari_base_packages = [
] %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
RUN mkdir -p /var/www/cgi-bin/masakari
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
] %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
RUN mkdir -p /var/www/cgi-bin/masakari
{% endif %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
RUN mkdir -p /var/www/cgi-bin/masakari
ADD masakari-base-archive /masakari-base-source
{% set masakari_base_pip_packages = [
@ -42,14 +55,14 @@ RUN ln -s masakari-base-source/* masakari \
&& {{ macros.install_pip(masakari_base_pip_packages | customizable("pip_packages")) }} \
&& mkdir -p /etc/masakari /var/www/cgi-bin/masakari \
&& cp -r /masakari/etc/masakari/* /etc/masakari/ \
&& chown -R masakari: /etc/masakari /var/www/cgi-bin/masakari
&& chown -R masakari: /etc/masakari /var/www/cgi-bin/masakari \
&& chmod 755 /var/www/cgi-bin/masakari
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN touch /usr/local/bin/kolla_masakari_extend_start \
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_masakari_extend_start \
&& chmod 755 /var/www/cgi-bin/masakari
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_masakari_extend_start
{% block masakari_base_footer %}{% endblock %}

View File

@ -5,10 +5,25 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block masakari_engine_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% if base_package_type == 'rpm' %}
{# not available #}
{% set masakari_base_packages = [
] %}
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
'masakari-engine',
] %}
{% endif %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
{% endif %}

View File

@ -11,8 +11,24 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% if base_package_type == 'rpm' %}
{# not available #}
{% set masakari_base_packages = [
] %}
{% elif base_package_type == 'deb' %}
{% set masakari_base_packages = [
'masakari-host-monitor',
'masakari-instance-monitor',
'masakari-introspective-instance-monitor',
'masakari-process-monitor',
] %}
{% endif %}
{{ macros.install_packages(masakari_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %}

View File

@ -102,7 +102,6 @@ UNBUILDABLE_IMAGES = {
"cyborg-base",
"freezer-base",
"kuryr-base",
"masakari-base",
"monasca-base",
"monasca-thresh",
"solum-base",
@ -159,9 +158,14 @@ UNBUILDABLE_IMAGES = {
"kibana", # no binary package
},
"centos+binary": {
"masakari-base",
},
'debian+binary': {
"cloudkitty-base",
"ironic-neutron-agent",
"masakari-base",
"nova-serialproxy",
"senlin-conductor", # no binary package
"senlin-health-manager", # no binary package

View File

@ -0,0 +1,4 @@
---
features:
- |
Support for Ubuntu binary (aka packaged) Masakari images.