From b4d666ff63acd269b0acb2c4419643863c683750 Mon Sep 17 00:00:00 2001 From: Vu Tran Date: Tue, 30 Sep 2014 12:22:12 -0400 Subject: add generic monitor framework Instead of having a central file or group of files to describe what data resources should be monitored. The content of these files will depend on what core system monitoring is used ((e.g. Nagios or Monasca). It's desirable to have each recipe describes what it wants be monitored in generic way such that various system monitors can understand and convert these into their format. If a recipe wishes to register itself to system monitor, it inherits monitor bbclass and use MONITOR_SERVICE_PACKAGES and MONITOR_SERVICE_ to indicate what processes should should be monitored. Also MONITOR_CHECKS_ variale can be used to pass list of scripts which will be run on target and if any of these scripts fail then will report. Eventually monitor.bbclass will be expanded to allow recipe to describe more complicated information passed down to system monitor (e.g. Nagios or Monasca) Signed-off-by: Vu Tran Signed-off-by: Bruce Ashfield --- meta-openstack/recipes-extended/images/openstack-image-aio.bb | 1 + meta-openstack/recipes-extended/images/openstack-image-compute.bb | 1 + meta-openstack/recipes-extended/images/openstack-image-controller.bb | 1 + 3 files changed, 3 insertions(+) (limited to 'meta-openstack/recipes-extended/images') diff --git a/meta-openstack/recipes-extended/images/openstack-image-aio.bb b/meta-openstack/recipes-extended/images/openstack-image-aio.bb index 3aff066..ec34770 100644 --- a/meta-openstack/recipes-extended/images/openstack-image-aio.bb +++ b/meta-openstack/recipes-extended/images/openstack-image-aio.bb @@ -25,6 +25,7 @@ IMAGE_FEATURES += "ssh-server-openssh" inherit core-image inherit openstack-base inherit identity +inherit monitor # check for 5G of free space, so we use 5G as a starting point. IMAGE_ROOTFS_EXTRA_SPACE_append += "+ 5000000" diff --git a/meta-openstack/recipes-extended/images/openstack-image-compute.bb b/meta-openstack/recipes-extended/images/openstack-image-compute.bb index e9f90e8..979e525 100644 --- a/meta-openstack/recipes-extended/images/openstack-image-compute.bb +++ b/meta-openstack/recipes-extended/images/openstack-image-compute.bb @@ -16,6 +16,7 @@ IMAGE_FEATURES += "ssh-server-openssh" inherit core-image inherit openstack-base +inherit monitor # Ensure extra space for guest images, and rabbit MQ has a hard coded # check for 2G of free space, so we use 3G as a starting point. diff --git a/meta-openstack/recipes-extended/images/openstack-image-controller.bb b/meta-openstack/recipes-extended/images/openstack-image-controller.bb index d2cc90f..a410acf 100644 --- a/meta-openstack/recipes-extended/images/openstack-image-controller.bb +++ b/meta-openstack/recipes-extended/images/openstack-image-controller.bb @@ -21,6 +21,7 @@ POST_KEYSTONE_SETUP_COMMAND = "/etc/keystone/hybrid-backend-setup" inherit core-image inherit openstack-base inherit identity +inherit monitor # Ensure extra space for guest images, and rabbit MQ has a hard coded # check for 2G of free space, so we use 5G as a starting point. -- cgit v1.2.3-54-g00ecf