Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
mpuel edited this page Sep 26, 2012 · 27 revisions

You will find here basic documentation about how to install, configure and run osssm service.

APEL/SSM Openstack documentation

1- About

osssm extracts usage records of monitored tenants and forwards them to APEL/SSM accounting system. It interacts with Openstack only through Nova API (you will have to provide a valid user/password/auth_url in the configuration file). Two services are involved:

  • osssm.extract: extract and caches usage records. It is launched as a cron task and should be scheduled as often as reasonable on your configuration.
  • osssm.push: push the spooled usage records to APEL/SSM. It may be scheduled less often as all information is in the spool. It impacts how APEL/SSM centralised information will be up to date.

2- Prerequisites

  • valid APEL/SSM configuration : You first need to install and configure APEL SSM client whose role is to send the accounting usage records to the apropriate accounting database. Please follow the SSMclient-setup.pdf documentation, available on the accounting workgroup page of the FCTF wiki.

The role of apel-ssm-openstack is to extract the accounting data from Openstack cloud manager, format and forward it to the SSM client.

3- Installation

Debian based systems

# download and install the package
$ wget ftp://ftp.in2p3.fr/ccin2p3/egi-acct-osdriver/apel-ssm-openstack_latest.deb
$ dpkg -i apel-ssm-openstack_latest.deb

# configure it
$ man osssmrc
$ vim /etc/osssmrc

# check crons scheduling
$ vim /var/lib/osssm/cron

# start the service
$ service osssm start

RHEL based systems

# download the package and install it
$ wget ftp://ftp.in2p3.fr/ccin2p3/egi-acct-osdriver/apel-ssm-openstack-latest.noarch.rpm
$ yum localinstall -y apel-ssm-openstack-current.noarch.rpm

# configure it
$ man osssmrc
$ vim /etc/osssmrc

# check crons scheduling
$ vim /var/lib/osssm/cron

# enable and start the service
$ chkconfig osssm on
$ service osssm start

4- Configuration

Please refer to osssmrc (5) to get all configuration options details.

5- Known limitations

  • The accounting records are associated to the instance name which is technically not mandatorily unique.
  • Does not report network rx/tx bandwith.
  • Does not handle paused Vms.
  • Does not update the UR for deleted VMs
Clone this wiki locally