INDIGO - DataCloud Releases
  • Introduction
  • Data Center Solutions
  • Data Solutions
  • Automated Solutions
  • High-level user oriented service
  • Common Solutions
  • INDIGO-2 ElectricIndigo
    • Generic Installation and Configuration Guide - INDIGO-2
    • INDIGO-2 Services & Applications
      • Analytics Portlets
      • CDMI Server
      • CDMI S3 QoS Interface
      • CDMI STORM Plugin
      • CloudInfoProvider
      • CloudProviderRanker
      • CLUES
      • CMDB
      • Core PaaS
        • Accounting
        • Kubernetes
        • Mesos Cluster
        • Monitoring - Zabbix Probes
      • dCache
      • Partition Director(DynPart)
      • Extended OpenStack and OpenNebula Functionalities
        • OpenStack Preemptible Instances Extensions
          • OpenStack Client for OPIE
        • OpenStack Identity Authentication Library
        • Keystone AAI support
        • Heat-Translator
        • Nova-Docker
        • Docker support for OpenNebula (ONEdock)
        • RepoSync
      • FutureGateway
      • Identity Harmonization Service
      • INDIGO IAM
      • INDIGO OMT
      • INDIGO OMT iOS
      • INDIGO Plugins
        • INDIGO Kepler
      • Infrastructure Manager
      • Infrastructure Manager Java API
      • Liferay Plugins
      • OIDC-Agent
      • ONEDATA
      • ONE-FaSS
      • OCCI support for OpenStack and OpenNebula
        • OpenStack OCCI Interface
        • pOCCI
        • jOCCI
      • Ophidia
      • Orchestrator
        • Orchent
      • QoS/SLA Management Service
      • Network Orchestrator Wrapper (NOW)
      • Synergy
      • TOSCA Parser & Types
      • Token Translation Service (WaTTS)
        • Token Translation Service Client (WaTTSon)
      • udocker
    • Updates
      • Sixth Update of INDIGO-2
      • Fifth Update of INDIGO-2
      • Fourth Update of INDIGO-2
      • Third Update of INDIGO-2
      • Second Update of INDIGO-2
      • First Update of INDIGO-2
  • INDIGO-1 MidnightBlue
    • Generic Installation and Configuration Guide - INDIGO-1
    • INDIGO-1 Services & Applications
      • CDMI Server
      • CloudInfoProvider
      • CloudProviderRanker
      • CLUES
      • Core PaaS
        • Accounting
        • Kubernetes
        • Mesos Cluster
        • Monitoring - Zabbix Probes
      • dCache
      • Partition Director(DynPart)
      • Extended OpenStack and OpenNebula Functionalities
        • OpenStack Preemptible Instances Extensions
        • OpenStack Identity Authentication Library
        • Keystone AAI support
        • Heat-Translator
        • Nova-Docker
        • Docker support for OpenNebula (ONEdock)
        • OpenStack Client
        • OpenStack NOVA Client
        • RepoSync
      • FutureGateway
        • FutureGateway API Server
        • FutureGateway API Server Daemon
        • FutureGateway jSAGA Adaptors
        • FutureGateway Portal Setup
        • fgTools
      • Identity Harmonization Service
      • INDIGO IAM
      • INDIGO OMT
      • INDIGO Plugins
        • INDIGO Kepler
      • Infrastructure Manager
      • Infrastructure Manager Java API
      • jSAGA ResourceManager API
      • Liferay IAM
      • ONEDATA
      • OCCI support for OpenStack and OpenNebula
        • OpenStack OCCI Interface
        • pOCCI
        • rOCCI
        • jOCCI
      • Ophidia
      • Orchestrator
      • QoS/SLA Management Service
      • Synergy
      • TOSCA Parser & Types
      • Token Translation Service
      • udocker
    • Updates
      • Nineth Update of INDIGO-1
      • Eighth Update of INDIGO-1
      • Seventh Update of INDIGO-1
      • Sixth Update of INDIGO-1
      • Fifth Update of INDIGO-1
      • Fourth Update of INDIGO-1
      • Third Update of INDIGO-1
      • Second Update of INDIGO-1
      • First Update of INDIGO-1
    • Service template
Powered by GitBook
On this page
  • Overview
  • Summary:
  • Release Notes v. 1.3.2-1
  • What's new
  • Deployment Notes
  • Known Issues
  • List of Artifacts
  • Documentation
  • Support
  1. INDIGO-2 ElectricIndigo
  2. INDIGO-2 Services & Applications
  3. Core PaaS

Accounting

PreviousCore PaaSNextKubernetes

Last updated 6 years ago

The APEL project provides accounting for the Indigo DataCloud project. It is written in Python and uses MySQL.

Overview

APEL Cloud Accounting can account for the usage of OpenNebula and OpenStack instances. Accounting "collectors" need to be installed on machines with access to the underlying Cloud infrastructure. The collectors can be found .

The collectors produce "Usage Records" in the APEL-Cloud v0.2 or v0.4 message formats. Information about these format can be found .

These records need to be sent as POST requests to the REST endpoint .../api/v1/cloud/record, where ... is the machine hosting the docker image. A POST request requires an X.509 certificate to authenticate the request. The hostname, which should be the same as the common name (CN) contained in the X.509 certificate, must be listed as a provider for the request to be authorized.

Accepted records are summarised twice daily. These summaries can be accessed with a GET request to .../api/v1/cloud/record/summary. Summaries can be filtered using key=value pairs. See for a list of valid supported key=value pairs. A GET request requires an IAM access token be included in the request. This token is then sent to the IAM to authenticate the ID of the service requesting access to the summary. This ID needs to be in ALLOWED_FOR_GET in apel_rest/settings.py for access to be authorized. See for instructions on adding service to ALLOWED_FOR_GET

It is currently expected that only the QoS/SLA tool will interact with these summaries.

Summary:

  • Updates

Release Notes v. 1.3.2-1

What's new

  • Dockerhub Image Tag: 1.3.2-1, containing:

    • APEL REST Interface version 1.3.2-1

    • APEL Server version 1.6.0-1

  • New Features:

  • Patches, Bug Fixes and Documentation updates:

List of RfCs

Deployment Notes

  • Installation methods

    • Kubernetes YAML files also provided.

  • Upgrade methods

Known Issues

  • N/A

List of Artifacts

  • The supported platforms

    • CentOS7 and Ubuntu 16. As the software is deployed as a docker container, any OS with docker

      should be able to deploy the Accounting Service

  • Docker Container:

Documentation

Support

Allow for the Identity and Access Management (IAM) URL to be set in settings.py:

Add the ability to locally ban/allow POST requests:

Add a simple script to sender to the APEL REST interface:

Add ability to query summaries by GlobalUserName:

Upgrade to APEL 1.6.0:

Reduction of duplicate log entries:

Clearer exception handling:

Example summary output to documentation:

Improve the install documentation:

Add Fetching of Certificate Revokation Lists to Docker build:

Explicitly set UpdateTime to update to current time on a change to the row:

Refactor the external call to get the list of providers to single method

Added a link to the Service Reference Card to Summary.md:

Removal of the method level getLogger() calls:

Improve exception handling should provider JSON not be retrieved:

Remove hardcoded urls from test suite:

Add example summary output to documentation:

Remove allowed failure of Python 2.7 tests as this version should be checked:

Allow for the Identity and Access Management (IAM) URL to be set in settings.py:

Improve the install documentation:

Add Fetching of Certificate Revokation Lists to Docker build:

Add the ability to locally ban/allow POST requests:

Replace default cursor object with a DictCursor:

Explicitly set UpdateTime to update to current time on a change to the row:

Add a simple script to sender to the APEL REST interface:

Add ability to query summaries by GlobalUserName:

Upgrade to APEL 1.6.0:

Running the docker image on Centos 7 and Ubuntu 16.04:

How to update an already deployed service to 1.3.2 (from 1.2.1):

For more details please see detailed

Please use the

https://github.com/apel/rest/pull/23
https://github.com/apel/rest/pull/26
https://github.com/apel/rest/pull/29
https://github.com/apel/rest/pull/30
https://github.com/apel/rest/pull/32
https://github.com/apel/rest/pull/18
https://github.com/apel/rest/pull/19
https://github.com/apel/rest/pull/21
https://github.com/apel/rest/pull/24
https://github.com/apel/rest/pull/25
https://github.com/apel/rest/pull/28
https://github.com/apel/rest/pull/16
https://github.com/apel/rest/pull/17
https://github.com/apel/rest/pull/18
https://github.com/apel/rest/pull/19
https://github.com/apel/rest/pull/20
https://github.com/apel/rest/pull/21
https://github.com/apel/rest/pull/22
https://github.com/apel/rest/pull/23
https://github.com/apel/rest/pull/24
https://github.com/apel/rest/pull/25
https://github.com/apel/rest/pull/26
https://github.com/apel/rest/pull/27
https://github.com/apel/rest/pull/28
https://github.com/apel/rest/pull/29
https://github.com/apel/rest/pull/30
https://github.com/apel/rest/pull/32
https://github.com/indigo-dc/Accounting#running-the-docker-image-on-centos-7-and-ubuntu-1604
https://github.com/indigo-dc/Accounting/blob/dev/doc/admin.md#how-to-update-an-already-deployed-service-to-130-from-121
Instalation & Configuration Guide
indigodatacloud/accounting:indigo_2
Developer guide
Deployment and Administration guide
Service Reference Card
User guide
INDIGO - DataCloud CatchAll GGUS Support Unit
here
here
here
Supported key=value pairs
Authorize new WP5 components to view Summaries
Accounting v. 1.4.0
Release Notes v 1.3.2
What's new
List of RfCs
Deployment Notes
Known Issues
List of Artifacts
Documentation
Support