...
After you build the A1 adapter artefacts, down below CCSDK repo's and build it,
Project | Repo | Gerrit Link | Command | Note |
---|---|---|---|---|
CCSDK | ccsdk/parent | git clone "https://gerrit.onap.org/r/ccsdk/parent" -b guilin | mvn clean install -Dmaven.test.skip=true | If the parent artefacts are not release you need to build this repo in order to build other ccsdk repo's (Including ccsdk/oran/a1-adapter) |
CCSDK | ccsdk/feature | git clone "https://gerrit.onap.org/r/ccsdk/features" -b guilin | mvn clean install -Dmaven.test.skip=true | |
CCSDK | ccsdk/distribution | git clone "https://gerrit.onap.org/r/ccsdk/distribution" -b guilin | mvn clean install -Dmaven.test.skip=true -Pdocker | Creates the CCSDK docker image |
SDNC | sdnc/northbound | git clone "https://gerrit.onap.org/r/sdnc/northbound" -b guilin | mvn clean install -Dmaven.test.skip=true | |
SDNC | sdnc/oam | git clone "https://gerrit.onap.org/r/sdnc/oam" -b guilin | mvn clean install -Dmaven.test.skip=true -Pdocker | Creates the SDNC docker image. Make sure you refer the right docker image version the pom file. |
Once you build all the projects, you will see the CCSDK & SDNC docker images,
Code Block | ||||
---|---|---|---|---|
| ||||
onap/sdnc-image 2.1-SNAPSHOT-latest f902a050eead 7 weeks ago 2.44GB onap/sdnc-image 2.1.0-SNAPSHOT-20200924T135831Z f902a050eead 7 weeks ago 2.44GB onap/sdnc-image 2.1.0-SNAPSHOT-latest f902a050eead 7 weeks ago 2.44GB onap/sdnc-image latest f902a050eead 7 weeks ago 2.44GB |
Run A1
...
A1 Controller must be started first to set up docker network
...
Change directory:
cd nonrtric/sdnc-a1-controller/oam/installation/src/main/yaml
...
Run docker container using the command below
docker-compose up a1-controller
the container is ready once message "Healthcheck Passed in XX seconds." appears
note that certificate-related errors "cp: can't stat '/opt/opendaylight/current/certs/*': No such file or directory" and "Error: File not found in path entered" can be ignored
The Karaf logs of A1 controller can be followed e.g. by using command
...
Policy Adapter
To view the A1 policy operations, you need to run the SDNC docker image. This image has few other docker image dependency but not all are important for A1 policy testing. To bring up the sdnc container for A1 Policy Management testing you can do below change to the docker compose file,
Code Block | ||
---|---|---|
| ||
In sdnc/oam repo
cd sdnc/oam/installation/src/main/yaml
docker-compose up |
Edit the docker compose file and keep only sdnc & maria db images. Rest of the images are not necessary for A1 Policy testing. However if you want to change the DG and run your own DG, you may need to keep the Directed Graph image.
The SDNC image will take a while to install all the features into Karaf Server. You can check the logs of the server at /opt/opendaylight/data/log/karaf.log
...
Open Daylight GUI
...
The A1 Policy in ODL GUI can be accessed by
...
this URL
...
,
http://localhost:8282/apidoc/explorer/index.html
Username/password: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
Run Near-RT RIC A1 Simulator Docker Containers
...