Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get HAS seed code from the Linux Foundation Projects page.

Code Block
languagepowershell
git clone https://gerrit.onap.org/r/optf/has


Use virtual environment to create and manage libraries and dependencies for HAS project.

...

Code Block
languagepowershell
virtualenv {virtual_environment_location}

...


source {virtual_environment_location}/bin/activate


Inside of /has/conductor folder, run the following commands:

Code Block
languagepowershell
python setup.py install

...


pip install -e .



In {virtual_environment_location}/bin folder, you should see the five components of HAS/Conductor project and you can with the commands below.

conductor-api,conductor-controller, conductor-solver, conductor-reservation, conductor-data

Installing through docker images

...

Code Block

...

git clone https://gerrit.onap.org/r/optf/has

Use docker scripts inside the repo to start HAS dockers

cd has/

./run-dockers.sh ./conductor.conf

Then you can find all HAS components running.

Configuration

For the configuration inside the config-file, please refer to the README inside Gerrit  

It is worth noting that A&AI and MUSIC may be needed to run HAS project. Please refer to their setup page for installation.

Currently in Beijing release, HAS uses MUSIC 2.5.3 version inside deployment. Please refer to Setup for Developing MUSIC for installation.

Running the example

To start the process, execute the following commands:

languagepowershell
conductor-api --port=8091 -- --config-file={conductor_conf_file_location}

...

 
conductor-controller --config-file={conductor_conf_file_location}

...


conductor-solver --config-file={conductor_conf_file_location}

...


conductor-reservation --config-file={conductor_conf_file_location}

...


conductor-data --config-file={conductor_conf_file_location}


Installing through OOM

Please first follow the steps inside ONAP on Kubernetes with Rancher to build a kubernetes environment for ONAP deployment.

Clone the OOM repository from ONAP Gerrit 

Code Block
languagepowershell
git clone -b casablanca http://gerrit.onap.org/r/oom
cd oom/kubernetes


Install Helm plugins to enable ONAP deployment.

Code Block
languagepowershell
sudo cp -R ~/oom/kubernetes/helm/plugins/ ~/.helm


Configure the onap/values.yaml inside /oom/kubernetes/onap/ folder

Setup the helm server and build local helm repository

Code Block
languagepowershell
cd ~/oom/kubernetes
helm serve &
helm repo add local http://127.0.0.1:8879
make all; make onap

Deploy ONAP through Helm

Code Block
languagepowershell
helm deploy dev local/onap --namespace onap

Load changes inside the development environment


Commiting the Code

git commit -am "Initial proj struct"
git review -s
git commit -as --amend
# scroll down 2 lines (above your Change-ID) insert "Issue-ID: {issue_id}"

...