Remove unused elements

Most elements in this repo are old, untested and no longer used, so
remove all those we're not using (as proven via CI).

I think there are some remaining things we build into the images but no
longer need, but those can be handled via follow-up patches.

Change-Id: I221c5a3f82a2500c90646fc69439a210cf64e5e1
This commit is contained in:
Steven Hardy 2017-03-29 15:12:11 +01:00
parent 683256d1f9
commit c653eaee1c
849 changed files with 0 additions and 14540 deletions

View File

@ -1,12 +0,0 @@
Install Ansible.
Configuration
-------------
At Present there is no configuration for this element.
Ansible Version
---------------
By default this installs ansible 1.8.1, but the environment variable
ANSIBLE_VERSION can be set to override the installed version of Ansible.

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eu
sudo rm -fr "${TMP_MOUNT_PATH}/opt/stack/tripleo-ansible"

View File

@ -1 +0,0 @@
pip-and-virtualenv

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -ue
export ANSIBLE_VENV_DIR=${ANSIBLE_VENV_DIR:-"/opt/stack/venvs/ansible"}

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
install-packages ansible

View File

@ -1,37 +0,0 @@
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# 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.
#
set -eux
set -o pipefail
ANSIBLE_VERSION=${ANSIBLE_VERSION:-1.8.1}
install-packages build-essential libssl-dev libyaml-dev python-dev libxml2-dev libxslt-dev libffi-dev
virtualenv $ANSIBLE_VENV_DIR
set +u
source $ANSIBLE_VENV_DIR/bin/activate
set -u
$ANSIBLE_VENV_DIR/bin/pip install paramiko PyYAML jinja2 httplib2
$ANSIBLE_VENV_DIR/bin/pip install ansible==${ANSIBLE_VERSION}
ln -s $ANSIBLE_VENV_DIR/bin/ansible /usr/local/bin/ansible
ln -s $ANSIBLE_VENV_DIR/bin/ansible-playbook /usr/local/bin/ansible-playbook

View File

@ -1,13 +0,0 @@
Installs Apache2 from packages.
Will generate Snakeoil self signed ssl certs if the provided PEM file is
unable to pass basic validity check.
The Snakeoil SSL cert can be configured via Heat Metadata. For example:
apache2:
snakeoil_pem: ----- BEGIN PlaceHolder...
snakeoil_key: ----- BEGIN PlaceHolder...
Sample usage shown in nagios3 template at:
https://git.openstack.org/cgit/openstack/tripleo-heat-templates

View File

@ -1,4 +0,0 @@
os-apply-config
os-refresh-config
os-svc-install
package-installs

View File

@ -1,8 +0,0 @@
#!/bin/bash
# install apache2
set -eux
if [ -f /etc/debian_version ]; then
install-packages ssl-cert
fi

View File

@ -1 +0,0 @@
apache2

View File

@ -1 +0,0 @@
{{apache2.snakeoil_pem}}

View File

@ -1 +0,0 @@
{{apache2.snakeoil_key}}

View File

@ -1,41 +0,0 @@
#!/bin/bash
set -eux
if [ -f /etc/debian_version ]; then
openssl_cmd="openssl"
cert_create_cmd="make-ssl-cert generate-default-snakeoil --force-overwrite"
snakeoil_pem_file='/etc/ssl/certs/ssl-cert-snakeoil.pem'
if [ -f $snakeoil_pem_file ]; then
# check if snakeoil pem file is valid
cert_chk_cmd="$openssl_cmd x509 -noout -in $snakeoil_pem_file"
exit_error=0
cmd_run=$($cert_chk_cmd) || exit_error=1
if [ $exit_error -ne 0 ]; then
# Snakeoil cert is there but not valid.
exit_error=0
cmd_run=$($cert_create_cmd) || exit_error=1
fi
if [ $exit_error -eq 0 ]; then
# we should have valid certs. Now enable ssl in apache2
cmd="a2enmod ssl"
cmd_run=$($cmd) || exit_error=2
if [ $exit_error -eq 0 ]; then
# Activate apache default ssl
cmd="a2ensite default-ssl"
cmd_run=$($cmd) || exit_error=3
fi
fi
if [ $exit_error -ne 0 ]; then
# error setting up ssl
echo "Error encountered setting up SSL (exit_error=$exit_error)"
fi
fi
fi
# Pick up on any config changes other elements may have done
# if service is not running reload isnt sufficient, so restart
if [ -f /etc/debian_version ]; then
service apache2 reload || service apache2 restart
elif [ -f /etc/yum.conf ]; then
service httpd reload || service httpd restart
fi

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-enable -an apache2

View File

@ -1,3 +0,0 @@
apache2:
default: apache2
redhat: httpd

View File

@ -1,8 +0,0 @@
Element to install bandersnatch
Installs a bandersnatch pypi mirror in the image, when booted a cronjob will
populate the mirror and keep it up to date.
Note: Booting an image including this element will result in a full mirror
of https://pypi.python.org (over 100G of data being downloaded), do not
do this unless that is your intention.

View File

@ -1,5 +0,0 @@
apache2
os-svc-install
pip-and-virtualenv
source-repositories
use-ephemeral

View File

@ -1,31 +0,0 @@
#!/bin/bash
set -eu
mkdir -p /opt/stack /srv/pypi/web
virtualenv /opt/stack/bandersnatch
/opt/stack/bandersnatch/bin/pip install bandersnatch
ln -s /opt/stack/bandersnatch/bin/bandersnatch /usr/local/bin/bandersnatch
register-state-path --leave-symlink /srv/pypi/web
# Run bandersnatch once to create a config file
/usr/local/bin/bandersnatch mirror || true
# Run bandersnatch every hour
echo "0 * * * * root flock -n /var/run/bandersnatch -c \"/usr/local/bin/bandersnatch mirror >> /var/log/bandersnatch 2>&1\"" > /etc/cron.d/bandersnatch
chmod 755 /etc/cron.d/bandersnatch
HTTPDCONFFILE=/etc/httpd/conf.d/bandersnatch.conf
if [ -d /etc/apache2/sites-enabled ]; then
HTTPDCONFFILE=/etc/apache2/sites-enabled/bandersnatch.conf
fi
cat > $HTTPDCONFFILE<<'EOF'
Alias /pypi /srv/pypi/web
<Directory "/srv/pypi/web">
Options Indexes
AllowOverride None
Require all granted
</Directory>
EOF

View File

@ -1,7 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
# Start building mirror in the background, this can take hours and downloads over 100G of data
flock -n /var/run/bandersnatch -c \
"/usr/local/bin/bandersnatch mirror >> /var/log/bandersnatch 2>&1" &

View File

@ -1,12 +0,0 @@
Non-PXE Neutron DHCP workaround
-------------------------------
Separate pool based dnsmasq to workaround old Neutron not supporting PXE
booting, which is restarted during os-refresh-config.
Installs a filter-bootps cronjob. filter-bootps adds an iptables filter to the
br-ctlplane bridge interface, ensuring that only bootps requests from nodes
registered with nova baremetal are received by services running in the image.
This prevents the seed node from trying to PXE boot overcloud nodes (rather
than the undercloud node doing so).

View File

@ -1,31 +0,0 @@
#!/bin/bash
#
# Idempotently build an IPTables chain which will filter to only permitted MAC
# addresses, on incoming BOOTP requests on the control plane interface.
set -eux
INTERFACE=br-ctlplane
. /root/stackrc
MACS=$(for node in $(nova baremetal-node-list | grep -v '+\|ID' | awk ' { print $2 } '); do nova baremetal-interface-list $node | awk '/:/ { print $8}' ; done)
# In case this script crashed earlier, flush, unlink and delete the temp chain.
iptables -F FILTERBOOTPSNEW || true
iptables -D INPUT -i $INTERFACE -p udp --dport 67 -j FILTERBOOTPSNEW || true
iptables -X FILTERBOOTPSNEW || true
iptables -N FILTERBOOTPSNEW
# Build the chain we want.
for MAC in $MACS; do
iptables -A FILTERBOOTPSNEW -m mac --mac-source $MAC -j ACCEPT
done
# Drop rather than reject as this is a broadcast protocol: we'd just be
# creating noise on the network.
iptables -A FILTERBOOTPSNEW -j DROP
# Link it in.
iptables -I INPUT -i $INTERFACE -p udp --dport 67 -j FILTERBOOTPSNEW
# Delete the old chain if present.
iptables -F FILTERBOOTPS || true
iptables -D INPUT -i $INTERFACE -p udp --dport 67 -j FILTERBOOTPS || true
iptables -X FILTERBOOTPS || true
# Rename the new chain into permanence.
iptables -E FILTERBOOTPSNEW FILTERBOOTPS

View File

@ -1,4 +0,0 @@
nova-compute
os-refresh-config
os-svc-install
package-installs

View File

@ -1,13 +0,0 @@
#!/bin/bash
set -ue
install -m 0755 -o root -g root $(dirname $0)/../bin/filter-bootps /usr/local/bin/filter-bootps
cat > /etc/cron.d/filter-bootps <<EOF
# Ensure we don't answer BOOTP for bare metal nodes not registered with nova.
# This is primarily important on the seed node which is only meant to manage
# the undercloud nodes, not overcloud nodes.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/1 * * * * root filter-bootps
EOF

View File

@ -1,62 +0,0 @@
#!/bin/bash
set -eux
function install_dnsmasq_upstart() {
cat > /etc/init/nova-bm-dnsmasq.conf << eof
start on runlevel [2345]
stop on runlevel [016]
pre-start script
mkdir -p /tftpboot
chown -R nova:nova /tftpboot
killall -9 dnsmasq || echo 'no dnsmasq running'
end script
respawn
respawn limit 2 5
script
exec dnsmasq --conf-file= \\
--keep-in-foreground \\
--port=0 \\
--dhcp-boot=pxelinux.0 \\
--bind-interfaces \\
--pid-file=/var/run/dnsmasq.pid \\
--interface=br-ctlplane \\
--dhcp-range=192.0.2.65,192.0.2.69,29
end script
post-start exec sleep 1
eof
}
function install_dnsmasq_systemd() {
cat > /lib/systemd/system/nova-bm-dnsmasq.service << eof
[Unit]
Description=Nova dnsmasq service
After=openvswitch.service
[Service]
Type=forking
ExecStartPre=-/bin/killall -9 dnsmasq
ExecStart=/sbin/dnsmasq --conf-file= \\
--port=0 \\
--enable-tftp \\
--tftp-root=/tftpboot \\
--dhcp-boot=pxelinux.0 \\
--bind-interfaces \\
--pid-file=/var/run/dnsmasq.pid \\
--interface=br-ctlplane \\
--dhcp-range=192.0.2.65,192.0.2.69,29
[Install]
WantedBy=multi-user.target
Alias=nova-bm-dnsmasq.service
eof
}
if [ "$DIB_INIT_SYSTEM" = "upstart" ]; then
install_dnsmasq_upstart
elif [ "$DIB_INIT_SYSTEM" = "systemd" ]; then
install_dnsmasq_systemd
fi
os-svc-enable -n nova-bm-dnsmasq

View File

@ -1,2 +0,0 @@
dnsmasq
dnsmasq-utils

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
service nova-bm-dnsmasq restart

View File

@ -1,59 +0,0 @@
A self-contained one-node openstack.
Description
-----------
This element contains nova, glance, and keystone services.
When building an image containing boot-stack be sure to add either nova-kvm or
nova-baremetal to enabled the appropriate hypervisor.
The seed-stack-config element can be used to configure boot-stack in the
absence of Heat.
Basic Usage
-----------
See this doc for basic usage instructions:
http://docs.openstack.org/developer/tripleo-incubator/devtest.html
Credentials
-----------
OpenStack credentials are installed to /root/stackrc in the boot-stack machine,
for automation needing them w/in the instance. Credentials are set from
metadata, so consult config.json or your heat parameters.
Utilities
---------
The following utilities are available in the running boot-stack machine:
`reset-db` - Clear all openstack databases.
`boot-stack-logs` - Start a screen session which tails important logs.
Configuration
-------------
For setting up keystone, `controller-address` can be set to an explicit
address that will be used to control the endpoints for the initial
cloud. If it is not set, the default is to try and determine the address
from the default network interface configuration.
Here is an example of its usage in Heat Metadata:
controller-address:
Fn::GetAtt: [ ControllerResource, PublicIp ]
Note that if you are feeding this Metadata to ControllerResource it
will not be fed into the process until the Heat Metadata is refreshed,
since the initial Metadata copy will have '0.0.0.0' (as we don't know
the address until after we create a server record).
Some configuration is tied into the neutron-openvswitch-agent - see the
README.md there as well.

View File

@ -1,30 +0,0 @@
#!/bin/bash
set -eu
if [[ $EUID -ne 0 ]]; then
echo "ERROR: you must be root to run this" 1>&2
exit 1
fi
scr_name=os-logs
scr_file=$(mktemp)
this_dir=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)
cat > $scr_file <<eof
startup_message off
hardstatus alwayslastline "%w"
caption always "%{-b ..}%-w%{+b ..}[[%n%f*%t]]%{-}%+w"
eof
for f in \
/var/log/upstart/nova-compute.log \
/var/log/upstart/nova-scheduler.log; do
if [ -e $f ]; then
echo "screen -t $(basename $f) sh -c \"tail -f $f | ccze\"" >> $scr_file
fi
done
# XXX: Note that this is obsolete if the Neutron DHCP agent is in use.
echo "screen -t dnsmasq sh -c \"tail -f /var/log/syslog | grep dnsmasq\"" >> $scr_file
exec screen -c $scr_file

View File

@ -1,57 +0,0 @@
#!/bin/bash
set -eux
db_pass=$(os-apply-config --key db-password)
PATH=/usr/local/bin:$PATH
# create the database for the specifed service.db config key
# optionally use a second default dsn parameter if key no found
function create_db_from_config() {
dsn=$(os-apply-config --key $1 --type dsn --key-default '')
if [ -z "$dsn" -a -n "${2:-}" ]; then
echo "No configuration found for $1, using default of $2"
dsn=$2
fi
if [ -n "$dsn" ]; then
part=${dsn##*://}
part=${part%%\?*}
database=${part##*/}
dsn_creds=${part%%@*}
dsn_user=${dsn_creds%%:*}
dsn_pass=${dsn_creds##*:}
os-db-create $database $dsn_user $dsn_pass
else
echo "No configuration found for $1, skipping db create"
fi
}
create_db_from_config "keystone.db" "mysql://keystone:${db_pass}@localhost/keystone"
if which cinder-manage 1>/dev/null 2>&1; then
create_db_from_config "cinder.db" "mysql://cinder:${db_pass}@localhost/cinder"
fi
if which ironic-dbsync 1>/dev/null 2>&1; then
create_db_from_config "ironic.db" "mysql://ironic:${db_pass}@localhost/ironic"
fi
if which tuskar-dbsync 1>/dev/null 2>&1; then
create_db_from_config "tuskar.db" "mysql://tuskar:${db_pass}@localhost/tuskar"
fi
if which ceilometer-dbsync 1>/dev/null 2>&1; then
create_db_from_config "ceilometer.db" "mysql://ceilometer:${db_pass}@localhost/ceilometer"
fi
create_db_from_config "nova.db" "mysql://nova:${db_pass}@localhost/nova"
if which nova-baremetal-manage 1>/dev/null 2>&1; then
create_db_from_config "nova.baremetal.db" "mysql://nova_bm:${db_pass}@localhost/nova_bm"
fi
create_db_from_config "glance.db" "mysql://glance:${db_pass}@localhost/glance"
create_db_from_config "heat.db" "mysql://heat:${db_pass}@localhost/heat"
create_db_from_config "neutron.ovs_db" "mysql://neutron:${db_pass}@localhost/ovs_neutron"

View File

@ -1,15 +0,0 @@
glance
heat-api
heat-engine
iptables
keystone
mysql
neutron-openvswitch-agent
neutron-server
nova-api
openstack-clients
os-apply-config
os-refresh-config
os-svc-install
package-installs
sysctl

View File

@ -1,25 +0,0 @@
#!/bin/bash
set -eux
install -m 0755 -o root -g root -d /opt/stack/boot-stack
# tools
for f in `ls $(dirname $0)/../bin`; do
install -m 0755 -o root -g root $(dirname $0)/../bin/$f /usr/local/bin/$f
done
# db
install-packages python-mysqldb
function deps() {
if hash apt-get &> /dev/null; then
apt-get update
fi
install-packages screen ccze
install-packages git ipmitool python-dev python-greenlet libxml2-dev libxslt-dev
install-packages openvswitch-common openvswitch-switch open-iscsi
install-packages python-numpy python-lxml
}
deps
sysctl-set-value "net.ipv4.ip_forward" "1" "Bootstack IPv4 forwarding."

View File

@ -1,4 +0,0 @@
build-essential
git
libssl-dev
python-dev

View File

@ -1,7 +0,0 @@
export NOVA_VERSION=1.1
export OS_PASSWORD={{admin-password}}
export OS_AUTH_URL=http://{{keystone.host}}:5000/v2.0
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export COMPUTE_API_VERSION=1.1
export OS_NO_CACHE=True

View File

@ -1 +0,0 @@
mode: 0600

View File

@ -1,15 +0,0 @@
#!/bin/bash
set -eu
OK=/mnt/state/var/lib/boot-stack/init-openstack.ok
if ! os-is-bootstrap-host || [ -e $OK ] ; then
exit 0
fi
PATH=/usr/local/bin:$PATH
reset-db
mkdir -p $(dirname $OK)
touch $OK

View File

@ -1,7 +0,0 @@
#!/bin/bash
set -eu
# Forward packets to the private ctlplane network
add-rule FORWARD -d 192.0.2.0/24 -j ACCEPT
# Forward packets to the hosts libvirt network
add-rule FORWARD -d 192.168.122.0/24 -j ACCEPT

View File

@ -1 +0,0 @@
Enable the Ceilometer Agent Central service

View File

@ -1,7 +0,0 @@
ceilometer
os-is-bootstrap-host
os-refresh-config
os-svc-install
pacemaker
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-agent-central ceilometer ceilometer-agent-central --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
os-svc-enable -an ceilometer-agent-central
pcmk-service-create -n ceilometer-agent-central

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_agent_central_package": "openstack-ceilometer-central"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-agent-central:
default: ceilometer-agent-central
redhat: openstack-ceilometer-central

View File

@ -1,8 +0,0 @@
Enable the Ceilometer Agent Compute service
This should live alongside nova-compute.
Heat options:
`ceilometer.compute_agent` whether to setup nova-compute to publish metrics for
Ceilometer to consume. Set to `Present` to do so, _empty string_ otherwise.

View File

@ -1,5 +0,0 @@
ceilometer
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
$CEILOMETER_VENV_DIR/bin/pip install libvirt-python
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-agent-compute ceilometer ceilometer-agent-compute --config-dir /etc/ceilometer

View File

@ -1,7 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
os-svc-enable -an ceilometer-agent-compute
os-svc-restart -an ceilometer-agent-compute

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_agent_compute_package": "openstack-ceilometer-compute"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-agent-compute:
default: ceilometer-agent-compute
redhat: openstack-ceilometer-compute

View File

@ -1 +0,0 @@
Enable the Ceilometer Agent Notification service

View File

@ -1,5 +0,0 @@
ceilometer
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-agent-notification ceilometer ceilometer-agent-notification --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
os-svc-enable -an ceilometer-agent-notification
os-svc-restart -an ceilometer-agent-notification

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_agent_notification_package": "openstack-ceilometer-notification"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-agent-notification:
default: ceilometer-agent-notification
redhat: openstack-ceilometer-notification

View File

@ -1 +0,0 @@
Enable the Ceilometer Alarm Evaluator service

View File

@ -1,5 +0,0 @@
ceilometer
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-alarm-evaluator ceilometer ceilometer-alarm-evaluator --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
os-svc-enable -an ceilometer-alarm-evaluator
os-svc-restart -an ceilometer-alarm-evaluator

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_alarm_package": "openstack-ceilometer-alarm"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-alarm-evaluator:
default: ceilometer-alarm-evaluator
redhat: openstack-ceilometer-alarm-evaluator

View File

@ -1 +0,0 @@
Enable the Ceilometer Alarm Notification service

View File

@ -1,6 +0,0 @@
ceilometer
ceilometer-alarm-evaluator
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-alarm-notifier ceilometer ceilometer-alarm-notifier --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
os-svc-enable -an ceilometer-alarm-notifier
os-svc-restart -an ceilometer-alarm-evaluator

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_alarm_package": "openstack-ceilometer-alarm"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-alarm-notifier:
default: ceilometer-alarm-notifier
redhat: openstack-ceilometer-alarm-notifier

View File

@ -1 +0,0 @@
Enable the Ceilometer API service

View File

@ -1,7 +0,0 @@
ceilometer
iptables
os-is-bootstrap-host
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-api ceilometer ceilometer-api --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
if os-is-bootstrap-host ; then
su -s /bin/bash -c 'ceilometer-dbsync --config-file /etc/ceilometer/ceilometer.conf' ceilometer
fi

View File

@ -1,10 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
os-svc-enable -an ceilometer-api
[ -d /mnt/state/var/lib/ceilometer ] || install -d -D -m 0770 -o ceilometer -g ceilometer /mnt/state/var/lib/ceilometer
[ -d /mnt/state/var/lib/ceilometer/keystone-signing ] || install -d -D -m 0770 -o ceilometer -g ceilometer /mnt/state/var/lib/ceilometer/keystone-signing
os-svc-restart -an ceilometer-api

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eu
add-rule INPUT -p tcp --dport 8777 -j ACCEPT

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_api_package": "openstack-ceilometer-api"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-api:
default: ceilometer-api
redhat: openstack-ceilometer-api

View File

@ -1 +0,0 @@
Enable the Ceilometer Collector service

View File

@ -1,5 +0,0 @@
ceilometer
os-refresh-config
os-svc-install
package-installs
pkg-map

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
os-svc-daemon -i "$CEILOMETER_VENV_DIR" ceilometer-collector ceilometer ceilometer-collector --config-dir /etc/ceilometer

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -eux
set -o pipefail
os-svc-enable -an ceilometer-collector
os-svc-restart -an ceilometer-collector

View File

@ -1,5 +0,0 @@
{
"default": {
"ceilometer_collector_package": "openstack-ceilometer-collector"
}
}

View File

@ -1,3 +0,0 @@
ceilometer-collector:
default: ceilometer-collector
redhat: openstack-ceilometer-collector

View File

@ -1,2 +0,0 @@
Will overwrite the pipeline.yaml taken from the Ceilometer repository
defined in ceilometer element install.d.

View File

@ -1,2 +0,0 @@
os-apply-config
ceilometer

View File

@ -1,78 +0,0 @@
---
sources:
- name: meter_source
interval: 600
meters:
- "*"
sinks:
- meter_sink
- name: cpu_source
interval: 600
meters:
- "cpu"
sinks:
- cpu_sink
- name: disk_source
interval: 600
meters:
- "disk.read.bytes"
- "disk.read.requests"
- "disk.write.bytes"
- "disk.write.requests"
sinks:
- disk_sink
- name: network_source
interval: 600
meters:
- "network.incoming.bytes"
- "network.incoming.packets"
- "network.outgoing.bytes"
- "network.outgoing.packets"
sinks:
- network_sink
sinks:
- name: meter_sink
transformers:
publishers:
- rpc://
- name: cpu_sink
transformers:
- name: "rate_of_change"
parameters:
target:
name: "cpu_util"
unit: "%"
type: "gauge"
scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
publishers:
- rpc://
- name: disk_sink
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "disk\\.(read|write)\\.(bytes|requests)"
unit: "(B|request)"
target:
map_to:
name: "disk.\\1.\\2.rate"
unit: "\\1/s"
type: "gauge"
publishers:
- rpc://
- name: network_sink
transformers:
- name: "rate_of_change"
parameters:
source:
map_from:
name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
unit: "(B|packet)"
target:
map_to:
name: "network.\\1.\\2.rate"
unit: "\\1/s"
type: "gauge"
publishers:
- rpc://

View File

@ -1,2 +0,0 @@
Will overwrite the pipeline.yaml taken from the Ceilometer repository
defined in ceilometer element install.d.

View File

@ -1,2 +0,0 @@
os-apply-config
ceilometer

View File

@ -1,38 +0,0 @@
sources:
- name: host_source
interval: 600
meters:
- "hardware.*"
sinks:
- "meter_sink"
- "cpu_sink"
- "swap_sink"
discovery:
- "tripleo_overcloud_nodes"
sinks:
- name: meter_sink
transformers:
publishers:
- rpc://
- name: cpu_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.system_stats.cpu.util"
unit: "%"
type: "gauge"
expr: "100 - $(hardware.system_stats.cpu.idle)"
publishers:
- rpc://
- name: swap_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.memory.swap.util"
unit: "%"
type: "gauge"
expr: "100 - (100 * $(hardware.memory.swap.avail) / $(hardware.memory.swap.total))"
publishers:
- rpc://

View File

@ -1,10 +0,0 @@
Install and configure Ceilometer.
Configuration
-------------
ceilometer:
metering_secret: "unset"
- secret value for signing metering messages
service-password: "unset"
- password for the metering service in Keystone

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eu
sudo rm -fr "${TMP_MOUNT_PATH}/opt/stack/ceilometer"

View File

@ -1,6 +0,0 @@
os-apply-config
os-svc-install
package-installs
pkg-map
selinux
source-repositories

View File

@ -1,6 +0,0 @@
if [ -z "${CEILOMETER_VENV_DIR:-}" ]; then
export CEILOMETER_VENV_DIR=${OPENSTACK_VENV_DIR:-"/opt/stack/venvs/ceilometer"}
fi
if [ -z "${CEILOMETER_EXTRA_INSTALL_OPTS:-}" ]; then
export CEILOMETER_EXTRA_INSTALL_OPTS=${OPENSTACK_EXTRA_INSTALL_OPTS:-""}
fi

View File

@ -1,19 +0,0 @@
#!/bin/bash
set -eux
os-svc-install $CEILOMETER_EXTRA_INSTALL_OPTS -i "$CEILOMETER_VENV_DIR" -u ceilometer -r /opt/stack/ceilometer
install -m 640 -o ceilometer -g ceilometer /opt/stack/ceilometer/etc/ceilometer/pipeline.yaml /etc/ceilometer
install -m 640 -o ceilometer -g ceilometer /opt/stack/ceilometer/etc/ceilometer/api_paste.ini /etc/ceilometer
install -m 640 -o ceilometer -g ceilometer /opt/stack/ceilometer/etc/ceilometer/policy.json /etc/ceilometer
# NOTE(gfidente): the following is needed by v1 api only, removed after icehouse release
# with ceilometer commit: 6a7d6ec198451687ad4389787338988012e6a1fe
if [ -f /opt/stack/ceilometer/etc/ceilometer/sources.json ]; then
install -m 640 -o ceilometer -g ceilometer /opt/stack/ceilometer/etc/ceilometer/sources.json /etc/ceilometer
fi
ln -s $CEILOMETER_VENV_DIR/bin/ceilometer-dbsync /usr/local/bin/ceilometer-dbsync
add-selinux-path-substitution /usr/bin $CEILOMETER_VENV_DIR/bin

Some files were not shown because too many files have changed in this diff Show More