<commit_before>Scality Object Storage backend for OpenStack Glance
===================================================
This package implements a back-end for OpenStack_ Glance_ storing objects in a
Scality_ RING installation.

.. _OpenStack: http://openstack.org
.. _Glance: http://docs.openstack.org/developer/glance/
.. _Scality: http://scality.com

Installation
------------
This package depends on `Scality Sproxyd client`_, a Python client library for Scality Sproxyd connector. It must 
be installed first before installing this package.

.. _Scality Sproxyd client: https://github.com/scality/scality-sproxyd-client

1. Install this package:

   .. code-block:: console

       python setup.py install

2. Configure Glance API. Edit your *glance-api.conf* file to add the Scality backend to the list of known
   Glance stores:

   .. code-block:: ini

    [glance_store]
    stores = glance.store.filesystem.Store,
             glance.store.scality.Store,
             glance.store.http.Store
   **N.B** This is an configuration example. Just make sure *glance.store.scality.Store* appears in the list
   of *stores* in the *[glance_store]* section of *glance-api.conf*.

3. Set to which Sproxyd connectors to connect to. Edit your *glance-api.conf* file and add, in the 
   *[glance_store]* section, the list of your Sproxyd connectors configured to accept **query by path**:

   .. code-block:: ini

    [glance_store]
    scality_sproxyd_endpoints = http://4.5.9.2:81/proxy/chord_path/,http://4.5.9.4:81/proxy/arc_path/

4. (optionnal) Use the Scality Store as the default image store. Newly uploaded Glance image will be stored in
   Scality Ring. As of OpenStack Kilo, the default store has to be set in both the DEFAULT
   section and the glance_store section, for compatibility reason.
   
   .. code-block:: ini
   
    [DEFAULT]
    default_store = scality
    [glance_store]
    default_store = scality<commit_msg>Take into accounts Nicolas' comments<commit_after>Scality Object Storage backend for OpenStack Glance
===================================================
This package implements a back-end for OpenStack_ Glance_ storing objects in a
Scality_ RING installation.

.. _OpenStack: http://openstack.org
.. _Glance: http://docs.openstack.org/developer/glance/
.. _Scality: http://scality.com

Installation
------------
This package depends on `Scality Sproxyd client`_, a Python client library for Scality Sproxyd connector. It must 
be installed before installing this package.

.. _Scality Sproxyd client: https://github.com/scality/scality-sproxyd-client

1. Install this package:

   .. code-block:: console

       python setup.py install

2. Configure Glance API. Edit your *glance-api.conf* file to add the Scality backend to the list of known
   Glance stores:

   .. code-block:: ini

    [glance_store]
    stores = glance.store.filesystem.Store,
             glance.store.scality.Store,
             glance.store.http.Store
   **N.B** This is a configuration example. Just make sure *glance.store.scality.Store* appears in the list
   of *stores* in the *[glance_store]* section of *glance-api.conf*.

3. Configure the Sproxyd connectors to use. Edit *glance-api.conf* and add the list of your Sproxyd connectors
configured to accept **query by path** in the *[glance_store]* section:

   .. code-block:: ini

    [glance_store]
    scality_sproxyd_endpoints = http://172.16.17.32:81/proxy/chord_path/,http://172.16.31.10:81/proxy/arc_path/

4. (optional) Use the Scality Store as the default image store. Newly uploaded Glance image will be stored in
   Scality Ring. As of OpenStack Kilo, the default store has to be set in both the *DEFAULT*
   section and the *glance_store* section, for compatibility reasons.
   
   .. code-block:: ini
   
    [DEFAULT]
    default_store = scality
    [glance_store]
    default_store = scality
{'fraction_non_alphanumeric': 0.11963824289405685, 'fraction_numerical': 0.010852713178294573, 'mean_word_length': 3.449425287356322, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '850142', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1133, 'n_words': 404}