This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Cloud BDII info provider

Project Description
# Cloud BDII provider

The Cloud BDII provider generates a GlueSchema v2 representation of cloud
resources for publihing it into a BDII

## Installation

### Binary packages

Packages are available at [EGI's AppDB](
Use the appropriate repos for your distribution and install using the usual tools.

### From source

Get the source by cloning this repo and do a pip install:

git clone
cd BDIIscripts
pip install .

If you plan to use the script in a bdii, the `bdii` package should be also installed
(it should be available in standard OS repositories).

## Generation of the LDIF 

The cloud-info-provider generates a LDIF according to the information in a
yaml file describing the static information of the cloud resources.
By default `/etc/cloud-info-provider/bdii.yaml` is used, but this path can be
overriden with the `--yaml-file` option. A complete example with comments is
available in the `sample.static.yaml` file.

Dynamic information can be further obtained with the middleware providers
(OpenStack and OpenNebula via rOCCI supported currently). Use the
`--middleware` option for specifying the provider to use (see the command
help for exact names). cloud-info-provider will fallback to static information
defined in the yaml file if a dynamic provider is not able to return any
information. See the `sample.openstack.yaml` and `sample.opennebularocci.yaml`
for example configurations for each provider.

There are three different maps in the yaml file considered by the provider:
`site`, `compute`, and `storage`:
* `site` contains basic information of the site. The only attribute to define
here is the `name` which must contain the site name as defined in GOCDB.
Alternatively, the site name can be fetched from
`/etc/glite-info-static/site/site.cfg` (or by the file set with the
`--glite-site-info-static` option).
Any other information is only relevant to generate a LDIF for a complete
site-BDII (*this is not the recommended deployment mode*).

* `compute` should be present for those sites providing a IaaS computing
service. It describes the available resources, service endpoints,
the available VM images and the templates to run those images.
Dynamic providers will fetch most of the information in this section.
See the sample yaml files for details.

* `storage` should be present for sites providing IaaS storage service.
Similarly to the `compute`, it contains a description of the resources
and enpoints providing the service. There are no dynamic providers for
`storage`at the moment.

Each dynamic provider has its own commandline options for specifying how
to connect to the underlying service. Use the `--help` option for a complete
listing of options.

For example for OpenStack, use a command line similar to the following:
cloud-info-provider-service --yaml-file /etc/cloud-info-provider/bdii.yaml \
--middleware OpenStack --os-username <username> --os-password <password> \
--os-tenant-name <tenant> --os-auth-url <auth-url>

**Test the generation of the LDIF before running the provider into your BDII!**

## Running the provider in a resource-BDII

This is the normal deployment mode for the cloud provider. It should be installed
in a node with access to your cloud infrastructure: for OpenStack, access to
nova service is needed; for OpenNebula-rOCCI provider, access to the files
describing the rOCCI templates is needed (e.g. installing the provider in the same
host as rOCCI-server).

### Create the provider script

In `/var/lib/bdii/gip/provider/` create a `cloud-info-provider` file that
calls the provider with the correct options for your site:


cloud-info-provider-service --yaml /etc/cloud-info-provider/openstack.yaml \
--middleware openstack \
--os-username <username> --os-password <passwd> \
--os-tenant-name <tenant> --os-auth-url <url>


Give execution permission:
chmod +x /var/lib/bdii/gip/provider/cloud-info-provider
and test it:
It should output the full ldif describing your site.

### Start the bdii service

Once the provider script is working, start the bdii service:
service bdii start

The ldap server should contain all your cloud resource information:
ldapsearch -x -h localhost -p 2170 -b o=glue

## Adding the resource provider in a site-BDII

Sites should have a dedicated host for the site-BDII. Information on how to
set up this machine is avaiable in the wiki at
[How to publish site information](

Add your cloud-info-provider to your site-BDII by adding a new URL like this:

## Running the cloud-provider as a full site-BDII

**This is not recommended for production!!**

If your site does not have a site-BDII and you want to generate both the
resource information and the site information with the cloud-bdii-provider
you can add in the `/var/lib/bdii/gip/provider/cloud-info-provider` the
`--full-bdii-info` option to the `cloud-info-provider-service`. The YAML
file must contain all your site information as described in the templates.
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cloud-bdii-provider-0.4.dev140.g387348d.tar.gz (32.1 kB) Copy SHA256 Checksum SHA256 Source Oct 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting