Topics

OTF deployment related queries #nonrtric


sangeetha-kr@...
 

Hi,
  I have referred below installation document guide for deploying OTF in my lab and got few doubts on this deployment part to proceed. 

 

 

 

https://docs.o-ran-sc.org/projects/o-ran-sc-it-otf/en/latest/developer-guide.html

  

Below are the points :

 

1. From this git repository I am able to see OTF deployment in 3 ways , one using helm charts, another in docker and third one is yaml.

I have tried docker way and successfully deployed OTF frontend, OTF service api and Camunda. All 3 came up but Service API and Camunda stopped after running for 1min.

Kindly guide me in which way you have stood up OTF and comment on this service api, camunda for exit status.

 

OTF git hub:

https://gerrit.o-ran-sc.org/r/gitweb?p=it/otf.git;a=summary

 

commands used to deploy:

 

docker run -itd --name otffrontend --privileged -e OTF_URL='http://192.168.122.243:8082/' -p 8082:32524 --network='host' otf-frontend:0.0.1-SNAPSHOT

docker run -d --network="host" otf-service-api:0.0.1-SNAPSHOT

docker run -d --network="host"otf-camunda:0.0.1-SNAPSHOT

 

 

root@master:~# docker ps -a | grep otf

8c448241ac2a        otf-service-api:0.0.1-SNAPSHOT                "java -jar app.jar"      37 seconds ago      Up 35 seconds                                         admiring_fermi

10cbfa833782        otf-frontend:0.0.1-SNAPSHOT                   "npm start"              5 hours ago         Up 5 hours                  0.0.0.0:8082->32524/tcp   otffrontend

9cda7a44edca        otf-camunda:0.0.1-SNAPSHOT                    "java -jar app.jar"      3 days ago          Exited (1) 3 days ago                                 otfcamunda

 

root@master:~# docker ps -a | grep otf

8c448241ac2a        otf-service-api:0.0.1-SNAPSHOT                "java -jar app.jar"      52 seconds ago      Exited (1) 13 seconds ago                                     admiring_fermi

10cbfa833782        otf-frontend:0.0.1-SNAPSHOT                   "npm start"              5 hours ago         Up 5 hours                          0.0.0.0:8082->32524/tcp   otffrontend

9cda7a44edca        otf-camunda:0.0.1-SNAPSHOT                    "java -jar app.jar"      3 days ago          Exited (1) 3 days ago                                         otfcamunda

  

2. Under OTF database I have seen installdbs.sh file to run but i did not find this file available in the git repository.

Kindly help me the steps to follow up for installing the database.

 

run sudo installdbs.sh and export PATH=/usr/local/mysql/bin:$PATH to add mysql commands to path

run sudo createMongoUser.sh

edit mongo to create a replica set by modifying replication and net fields on file /etc/mongod.conf

add security: authorization: ‘enabled’

after script is ran mysql should be able to be used, connect to mysql using the password set by script and mysql command and

alter the root password

alter user ‘root’@’localhost’ identified by ‘new_password’

grant root ability to connect remotely

grant all on . to ‘root’@’%’ identified by ‘password’

create db and exit mysql shell

create database ‘new_db’

create tables using mysql scripts

mysql -u root -p db < engine.sql

 

 

3. After deploying this OTF frontend docker, UI part of it is not working when i tried to open, but ports are in listening state.

Guide me how to view this UI part of OTF.

 

root@master:~#  lsof -i -P -n | grep 8082

docker-pr 13763            root    4u  IPv6 307767967      0t0  TCP *:8082 (LISTEN)

root@master:~#

 
Please help suggesting the solution for resolving above queries to proceed further.

Thanks & Regards,

Sangeetha.

 

 

 


jx088j@...
 

The database deployment instructions have changed recently. Attached is the new deployment instructions. The database should be set up first.

Thanks,

Justin