Add support for Aodh

Aodh is replacement for OpenStack Ceilometer Alarming
service.

Change-Id: I4daf2160fe6743d62e6874f9fe032d37c9db90b7
Partially-Implements: blueprint add-aodh
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2015-12-01 13:08:35 +05:30
parent c21ac63691
commit 6f2fbe933e
8 changed files with 116 additions and 1 deletions

View File

@ -0,0 +1,18 @@
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-aodh-api \
&& yum clean all
{% endif %}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER aodh

View File

@ -0,0 +1,8 @@
#!/bin/bash
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
aodh-manage db_sync
exit 0
fi

View File

@ -0,0 +1,25 @@
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-aodh-common \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
ADD aodh-base-archive /aodh-base-source
RUN ln -s aodh-base-source/* aodh \
&& useradd --user-group aodh \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install -c requirements/upper-constraints.txt /aodh \
&& mkdir -p /etc/aodh /var/log/aodh /home/aodh \
&& cp -r /aodh/etc/* /etc/aodh/ \
&& chown -R aodh: /etc/aodh /var/log/aodh /home/aodh
{% endif %}
RUN usermod -a -G kolla aodh

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-aodh-evaluator \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER aodh

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-aodh-expirer \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER aodh

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-aodh-listener\
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER aodh

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}aodh-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-aodh-notifier\
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER aodh

View File

@ -53,7 +53,7 @@
[profiles] [profiles]
infra = ceph,data,mariadb,haproxy,keepalived,kolla-ansible,memcached,mongodb,openvswitch,rabbitmq,rsyslog infra = ceph,data,mariadb,haproxy,keepalived,kolla-ansible,memcached,mongodb,openvswitch,rabbitmq,rsyslog
main = cinder,ceilometer,glance,heat,horizon,keystone,neutron,nova,swift main = cinder,ceilometer,glance,heat,horizon,keystone,neutron,nova,swift
aux = designate,gnocchi,ironic,magnum,zaqar aux = aodh,designate,gnocchi,ironic,magnum,zaqar
default = data,kolla-ansible,glance,haproxy,heat,horizon,keepalived,keystone,memcached,mariadb,neutron,nova,openvswitch,rabbitmq,rsyslog default = data,kolla-ansible,glance,haproxy,heat,horizon,keepalived,keystone,memcached,mariadb,neutron,nova,openvswitch,rabbitmq,rsyslog
gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kolla-ansible,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,rsyslog gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kolla-ansible,mariadb,memcached,neutron,nova,openvswitch,rabbitmq,rsyslog
@ -74,6 +74,10 @@ gate = ceph,cinder,data,dind,glance,haproxy,heat,horizon,keepalived,keystone,kol
type = url type = url
location = https://github.com/openstack/requirements/tarball/master location = https://github.com/openstack/requirements/tarball/master
[aodh-base]
type = url
location = http://tarballs.openstack.org/aodh/aodh-master.tar.gz
[ceilometer-base] [ceilometer-base]
type = url type = url
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz