.. This work is licensed under a Creative Commons Attribution 4.0
.. International License. http://creativecommons.org/licenses/by/4.0
.. Copyright 2019 ONAP Contributors.  All rights reserved.

.. _doc_guide_user_des_ser-dis:

Service Distribution
====================

Each ONAP platform operator will have a specific set of policies
and procedures for approving Services and deploying them in the
operator's ONAP environment. This outline describes the general
flow of such procedures.

**Goal:** Add all information required to create, instantiate, and
manage a service in Runtime.

**Tools:** SDC

**SDC user roles:** Designer


|image1|

**Figure: Workflow for Service Distribution**

Steps
-----

- `Distribute Service`_
- `Monitor Distribution`_

.. _doc_guide_user_des_ser-dis-start:

Distribute Service
------------------

**Prerequisites:** The Service is Certified.

**Steps**


#. Sign in to SDC as Designer.
#. From the SDC HOME page, click CATALOG and search for the service.
   It should read *Waiting For Distribution*.
#. Select the service that is *Ready for Distribution*.

   |image2|

#. Review the version history to verify that the correct version is
   selected.
#. In the header, click *Distribute*.

   The service state changes to *Distributed*
#. Continue with the step `Monitor Distribution`_


.. _doc_guide_user_des_ser-dis-mon:

Monitor Distribution
--------------------

**Steps**

#. Sign in to SDC as Designer.
#. From the SDC HOME page, click CATALOG and search for the service.
#. Select the service that is in *Distributed* state.
#. Click *Distribution* in the left pane.
   The Distribution Report displays.

   |image3|

#. In the Distribution Report, navigate to the Distribution ID for the
   service and click the adjacent down arrow.
   The report shows all components associated with the service and their
   distribution statuses.
#. Review the status of each component.
#. If deploy errors are shown, the reason has to be investigated and the
   Service can be *Redistributed*


.. |image1| image:: media/sdc-service-distribution-workflow.png
.. |image2| image:: media/sdc-service-distribute.png
.. |image3| image:: media/sdc-service-distribute-monitor.png