S3 Marketplace

Overview

This Marketplace uses an S3 API-capable service as the backend. This means Marketplace Appliances will be stored in the official AWS S3 service , or in services that implement that API, like Ceph Object Gateway S3.

Limitations

Since the S3 API does not provide a value for available space, this space is hard-coded into the driver file, limiting it to 1TB. See below to learn how to change the default value.

Requirements

To use this driver you require access to an S3 API-capable service:

Make sure you obtain both an access_key and a secret_key of a user that has access to a bucket with the exclusive purpose of storing Marketplace Apps.

Configuration

These are the configuration attributes of a Marketplace template of the S3 kind:

AttributeRequiredDescription
NAMEYESMarketplace name that is going to be shown in OpenNebula.
MARKET_MADYESMust be s3.
ACCESS_KEY_IDYESThe access key of the S3 user.
SECRET_ACCESS_KEYYESThe secret key of the S3 user.
BUCKETYESThe bucket where the files will be stored.
REGIONYESThe region to connect to. If you are using Ceph S3 any value here will work.
TOTAL_MBNOThis parameter defines the total size of the Marketplace in MB. It defaults to 1048576 (MB).
READ_LENGTHNOSplit the file into chunks of this size in MB, never use a value larger than 100. Defaults to 32 (MB).

The following attributes are required for non AWS s3 implementtions

AttributeDescription
AWSMust be no.
SIGNATURE_VERSIONMust be s3.
FORCE_PATH_STYLEMust be YES.
ENDPOINTPreferably don’t use an endpoint that includes the bucket as the leading part of the Host’s URL.

For example, the following template illustrates the definition of a Ceph S3 Marketplace:

$ cat market.conf
NAME              = S3CephMarket
ACCESS_KEY_ID     = "*********************"
SECRET_ACCESS_KEY = "*********************"
BUCKET            = "opennebula-market"
ENDPOINT          = "http://ceph-gw.opennebula.org"
FORCE_PATH_STYLE  = "YES"
MARKET_MAD        = s3
REGION            = "default"
SIGNATURE_VERSION = s3
AWS               = no

which is created by passing the following command:

$ onemarket create market.conf
ID: 100

Tuning & Extending

In order to change the available size of the Marketplace from 1 TB to your desired value, you can modify /var/lib/one/remotes/market/s3/monitor and change:

TOTAL_MB_DEFAULT = 1048576 # Default maximum 1TB

System administrators and integrators are encouraged to modify these drivers in order to integrate them with their datacenter. Please refer to the Market Driver Development guide to learn about the driver details.