Enable ceilometer in devstack
Magnum is going to send metrics/notifications to ceilometer. The metrics will be leveraged to trigger ceilometer alarms, which is needed to achieve autoscaling bay. Change-Id: Ib80c9ab699a72701cefc4dfeb7f2542cecd8f2c9 Partially-Implements: blueprint autoscale-bay Partially-Implements: blueprint magnum-notifications
This commit is contained in:
parent
3df5e26a68
commit
a2f803f031
|
@ -175,6 +175,10 @@ function create_magnum_conf {
|
|||
|
||||
iniset $MAGNUM_CONF DEFAULT enabled_ssl_apis "$MAGNUM_ENABLED_APIS"
|
||||
fi
|
||||
|
||||
if is_service_enabled ceilometer; then
|
||||
iniset $MAGNUM_CONF DEFAULT notification_driver "messaging"
|
||||
fi
|
||||
}
|
||||
|
||||
function update_heat_policy {
|
||||
|
|
|
@ -31,6 +31,15 @@ enable_service h-api
|
|||
enable_service h-api-cfn
|
||||
enable_service h-api-cw
|
||||
|
||||
# Enable Ceilometer services
|
||||
enable_service ceilometer-acompute
|
||||
enable_service ceilometer-acentral
|
||||
enable_service ceilometer-anotification
|
||||
enable_service ceilometer-collector
|
||||
enable_service ceilometer-api
|
||||
enable_service ceilometer-alarm-notifier
|
||||
enable_service ceilometer-alarm-evaluator
|
||||
|
||||
# Enable Magnum services
|
||||
enable_service m-api
|
||||
enable_service m-cond
|
||||
|
|
|
@ -81,6 +81,18 @@ http://docs.openstack.org/developer/devstack/configuration.html
|
|||
More neutron configuration information can be found at
|
||||
http://docs.openstack.org/developer/devstack/guides/neutron.html
|
||||
|
||||
Optionally, you can enable ceilometer in devstack. If ceilometer is enabled,
|
||||
magnum will periodically send metrics to ceilometer. If you need this feature,
|
||||
add the following lines to your `local.conf` file::
|
||||
|
||||
enable_service ceilometer-acompute
|
||||
enable_service ceilometer-acentral
|
||||
enable_service ceilometer-anotification
|
||||
enable_service ceilometer-collector
|
||||
enable_service ceilometer-api
|
||||
enable_service ceilometer-alarm-notifier
|
||||
enable_service ceilometer-alarm-evaluator
|
||||
|
||||
Create a local.sh to automatically make necessary networking changes during
|
||||
the devstack deployment process. This will allow bays spawned by magnum to
|
||||
access the internet through PUBLIC_INTERFACE::
|
||||
|
@ -188,6 +200,10 @@ Configure magnum::
|
|||
sudo sed -i "s/#auth_uri\s*=.*/auth_uri=http:\/\/127.0.0.1:5000\/v2.0/" \
|
||||
/etc/magnum/magnum.conf
|
||||
|
||||
# set notification_driver (if using ceilometer)
|
||||
sudo sed -i "s/#notification_driver\s*=.*/notification_driver=messaging/" \
|
||||
/etc/magnum/magnum.conf
|
||||
|
||||
Clone and install the magnum client::
|
||||
|
||||
cd ~
|
||||
|
|
Loading…
Reference in New Issue