7 HAS charts are located in the `OOM repository <https://git.onap.org/oom/>`__
9 Please refer OOM documentation for deploying/undeploying the OOF compoenents
10 via helm charts in the k8s environment.
15 HAS components can be deployed in two ways in a local environment for development
21 Building Docker Images
22 ~~~~~~~~~~~~~~~~~~~~~~
24 Build the HAS docker images using the maven build from the root of the project
28 git clone --depth 1 https://gerrit.onap.org/r/optf/has
32 Installing the components and simulators
33 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 HAS docker containers can be installed using the shell scripts in the CSIT directory
36 which includes the script to deploy the startup dependencies(SMS, ETCD) and a
41 export WORKSPACE=$(pwd)/csit
42 ./csit/plans/default/setup.sh
44 Similarly the installed components can be deleted using the teardown script.
48 export WORKSPACE=$(pwd)/csit
49 ./csit/plans/default/teardown.sh
51 Note: The simulator setup can be disabled by the commenting out the commands from
54 Installation from the source
55 ----------------------------
57 HAS components can be installed locally by directly in a linux based environment.
58 This will be significant for testing and debugging during developme
63 Conductor is officially supported on most of the linux based environment, but of
64 the development and testing were done on Ubuntu based machines.
66 Ensure the following packages are present, as they may not be
72 Installing Dependent Components(AAF-SMS, ETCD/MUSIC)
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75 The scripts to install and uninstall the components are present in the
78 **Note**: For setting up SMS, ETCD and MUSIC, docker must be present in
81 For installing/uninstalling AAF-SMS,
94 For installing/uninstalling ETCD
100 source etcd_Script.sh
102 source etcd_teardown_script.sh
104 Installing From Source
105 ~~~~~~~~~~~~~~~~~~~~~~
107 **IMPORTANT**: Perform the steps in this section after *optionally*
108 configuring and activating a python virtual environment.
110 Conductor source in ONAP is maintained in
111 https://gerrit.onap.org/r/optf/has.
113 Clone the git repository, and then install from within the ``conductor``
118 git clone --depth 1 https://gerrit.onap.org/r/optf/has
120 pip install --no-cache-dir -e .
122 Verifying Installation
123 ~~~~~~~~~~~~~~~~~~~~~~
125 Each of the five Conductor services may be invoked with the ``--help``
130 conductor-api -- --help
131 conductor-controller --help
132 conductor-data --help
133 conductor-solver --help
134 conductor-reservation --help
136 **NOTE**: The ``conductor-api`` command is deliberate. ``--`` is used as
137 as separator between the arguments used to start the WSGI server and the
138 arguments passed to the WSGI application.
140 Running for the First Time
141 ~~~~~~~~~~~~~~~~~~~~~~~~~~
143 Each Conductor component may be run interactively. In this case, the
144 user does not necessarily matter.
146 When running interactively, it is suggested to run each command in a
147 separate terminal session and in the following order:
151 conductor-data --config-file=/etc/conductor/conductor.conf
152 conductor-controller --config-file=/etc/conductor/conductor.conf
153 conductor-solver --config-file=/etc/conductor/conductor.conf
154 conductor-reservation --config-file=/etc/conductor/conductor.conf
155 conductor-api --port=8091 -- --config-file=/etc/conductor/conductor.conf
157 Sample API Calls and Homing Templates
158 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160 A `Postman <http://getpostman.com/>`__ collection illustrating sample
161 requests is available upon request. The collection will also be added in
164 `Sample homing templates <example.html>`__ are also