wiki:Tutorials/4G5G/oran

Version 3 (modified by seskar, 4 years ago) ( diff )

Site Navigation

  1. COSMOS Testbed Overview
    1. Concepts
    1. Testbed Workflow
    1. Availability and Resource Status
    1. Events and Conferences
  2. Getting Started
    1. Make an Account
    2. Create and Configure SSH Keys
    3. Make a Reservation
    4. Log in to your Reservation
    5. Control Resources with OMF
    6. Run a Hello World Experiment
    7. Get Help and Support
  3. COSMOS/ORBIT User Guide
    1. The COSMOS Portal
    2. Connecting to the Testbed
    3. Running Experiments
    4. Policies and Support
    5. Quick Links
    1. Policies
    1. Account Creation
    1. Camera Streaming
    1. Scheduling and Reservations
    1. Disk Images
    1. Frequently Asked Questions
    1. Resource Control with OMF
  4. COSMOS Portal
    1. Your First Visit
    2. Setting Up Your Account
    3. Reserving Testbed Time
    4. Monitoring Your Experiment
    5. Connecting via SSH
    6. Managing Disk Images
    7. Joining the Community
    8. Browsing Users and Groups
    9. Tips
  5. Account Management
    1. Edit Profile
    2. Change Password
    3. SSH Keys
  6. Portal Dashboard
    1. Profile Card
    2. Usage Statistics
    3. Community Forum
  7. Directory
    1. Users
    2. Groups
    3. Privacy Note
  8. Disk Images
    1. Browsing Images
    2. Image Details
    3. Searching and Sorting
    4. Managing Your Images
    5. Baseline Images
    6. Saving Custom Images
    7. Storage and Retention
  9. Community Forum
    1. Accessing the Forum
    2. Forum Categories
    3. How to Use the Forum
    4. Forum Etiquette
    5. Privacy and Access
  10. Getting Started with the COSMOS Portal
    1. Creating an Account
    2. Logging In
    3. What to Do After Logging In
  11. SSH Access to Testbed Nodes
    1. Access Model
    2. Console Servers
    3. Basic Connection
    4. SSH Config File
    5. SSH Tunneling
    6. File Transfer
    7. Troubleshooting
  12. Scheduler
    1. Calendar View
    2. Reservation Colors
    3. Creating a Reservation
    4. Competing for a Slot
    5. Modifying or Canceling Reservations
    6. My Reservations
    7. Resource Information
  13. Testbed Status
    1. Node Status Grid
    2. RF Matrix Control (SB4)
    3. Understanding Node States During Experiments
    1. Remote Access
    1. Chrome Remote Desktop Setup Page
  14. Installing Chrome Remote Desktop (CRD) on a Custom Image
    1. Measurement & Result Collection
    1. Storage
    1. Support
    1. Contributing to the Wiki
  15. Tutorials
    1. SDR and Wireless
    2. Wireless Digital Twins
    3. Optical Networking
    4. Wired Networking
    5. Edge Computing
    6. 4G/5G Systems
    7. Orchestration Platforms
  16. Architecture
    1. Data Flow
    1. Deployment Map
    1. Domains
    1. Naming Convention
    1. Networks
    1. Optical
  17. Resources, Services and APIs
    1. RF Control
    2. SDR Control
    3. Compute Control
    4. Network Control
    5. Optical Control
  18. Datasets
  19. Hardware Info
    1. Cameras
    1. Compute
    1. FR3 SDRs
    1. Network
    1. Nodes
    1. Optical
    1. RF Subsystems
    1. Antennas
    1. Full-Duplex Radio
    1. RF Front End
    1. Software Defined Radios (SDR)
  20. RF Policies & Compliance
    1. Outdoor Radio Frequency Allocation
    2. Program Experiment License
    3. Spectrum Monitoring
    4. Emergency Stop Procedures
    5. Network and Platform Security

ONAP/ORAN Tutorial

Description

Prerequisites

In order to access the test bed, create a reservationand have it approved by the reservation service. Access to the resources is granted after the reservation is confirmed. Please follow the process shown on the COSMOS getting started page to get started.

Resources required

One of the servers in any of the COSMOS domains.

Tutorial Setup

For this tutorial, the assumption is that the you made a reservation for sb1.cosmos-lab.org domain. Follow the steps below to gain access to the sandbox 1 console and set up nodes with appropriate images.

  1. If you don't have one already, sign up for a COSMOS account
  2. Create a resource reservation on sandbox 1
  3. Login into sandbox 1 console (console.sb1.cosmos-lab.org) with two SSH sessions.
  4. Make sure all the resources in the domain are turned off:
    omf tell -a offh -t system:topo:allres  
    
    For this tutorial we will be using the SB1 servers, srv1-lg1
  5. Load ORAN image oran-20220427.ndz on srv1-lg1:
    omf load -i oran-20220427.ndz -t srv1-lg1 -r 60
    

This image is fairly large and will take up to 7 minutes to load.

  1. Turn all the required resources on and check the status
    omf tell -a on -t srv1-lg1
    
    omf stat -t system:topo:allres
    
  2. ssh to the nodes, use option -Y for using GUI. Alos, please make sure to tunnel ports 30091 and 30205 though the console (or use VPN so you can gain subnet access from your local machine).

Tutorial Execution

Check that the services are running by executing the commad:

root@srv1-lg1:~# kubectl get pods -n onap && kubectl get pods -n nonrtric

The output should look like:

NAME                                               READY   STATUS                            RESTARTS        AGE
onap-dmaap-dr-mariadb-init-config-job--1-hlqc8     0/1     Completed                         0               75m
onap-policy-galera-config--1-tqwwf                 0/1     Completed                         0               70m
onap-policy-clamp-galera-config--1-tnccf           0/1     Completed                         0               70m
onap-nengdb-init-config-job--1-xsbs6               0/1     Completed                         0               68m
onap-sdnc-dbinit-job--1-62vpb                      0/1     Completed                         0               68m
onap-dmaap-bc-dmaap-provisioning--1-5dj7p          0/1     Completed                         0               75m
onap-sdnc-sdnrdb-init-job--1-rmsmb                 0/1     Completed                         0               68m
onap-sdnrdb-master-0                               1/1     Running                           1 (28m ago)     68m
onap-aaf-sms-quorumclient-2                        1/1     Running                           1 (28m ago)     76m
onap-consul-7f67bc4d4f-qgghd                       1/1     Running                           1 (28m ago)     77m
onap-consul-server-0                               1/1     Running                           1 (28m ago)     77m
onap-dbc-pg-primary-74fd9c6b4-fs5kx                1/1     Running                           1 (28m ago)     75m
onap-sdnc-dmaap-listener-765d56c76d-qzkqx          0/1     Init:1/2                          0               68m
onap-aaf-sms-vault-0                               2/2     Running                           2 (28m ago)     77m
onap-mariadb-galera-0                              2/2     Running                           2 (28m ago)     75m
onap-dbc-pg-replica-6c94cf676-4pxxb                1/1     Running                           1 (28m ago)     75m
onap-aaf-sms-quorumclient-0                        1/1     Running                           1 (28m ago)     77m
onap-aaf-sms-quorumclient-1                        1/1     Running                           1 (28m ago)     76m
onap-aaf-cass-7b5ffc99ff-9m6t2                     1/1     Running                           1 (28m ago)     77m
onap-policy-mariadb-0                              2/2     Running                           3 (26m ago)     70m
onap-message-router-zookeeper-0                    1/1     Running                           1 (28m ago)     75m
onap-sdnc-ansible-server-9dcfc6846-kxnp9           1/1     Running                           1 (28m ago)     68m
onap-dcae-healthcheck-8647b8857b-ppdn6             1/1     Running                           2 (26m ago)     76m
onap-aaf-service-576849df76-mrdds                  1/1     Running                           3 (26m ago)     77m
onap-aaf-locate-6786b49d8d-4ngzg                   1/1     Running                           1 (28m ago)     77m
onap-aaf-fs-844878ff4-vjb9j                        1/1     Running                           1 (28m ago)     77m
onap-aaf-oauth-d47557fcb-n7lzq                     1/1     Running                           1 (28m ago)     77m
onap-aaf-cm-84f5df554b-qcc99                       1/1     Running                           1 (28m ago)     77m
onap-aaf-gui-5948c9d4bd-44mpf                      1/1     Running                           1 (28m ago)     77m
onap-policy-clamp-cl-pf-ppnt-84fbbcc979-wnmhd      1/1     Running                           1 (28m ago)     70m
onap-dmaap-bc-78b9bd844-wzr64                      0/1     Init:5/6                          1               75m
onap-policy-clamp-cl-http-ppnt-8587f99d74-9kqt6    1/1     Running                           1 (28m ago)     70m
onap-sdnrdb-coordinating-only-5f87cb6d74-tgc5p     2/2     Running                           2 (28m ago)     68m
onap-policy-clamp-fe-56c59bc9fc-2mr99              1/1     Running                           1 (28m ago)     70m
onap-policy-api-64655b4bbd-rlptb                   1/1     Running                           1 (28m ago)     70m
onap-policy-gui-59b76dd7db-pqw5b                   1/1     Running                           1 (28m ago)     70m
onap-policy-clamp-cl-k8s-ppnt-6ddb58cfbd-8rcj5     1/1     Running                           1 (28m ago)     70m
onap-policy-clamp-be-b8fcc698d-c7fdn               1/1     Running                           1 (28m ago)     70m
onap-policy-clamp-cl-runtime-867fd4765-9zn2s       1/1     Running                           1 (28m ago)     70m
onap-policy-apex-pdp-0                             1/1     Running                           1 (28m ago)     70m
onap-aaf-sms-7885fd9f5c-v8xpq                      1/1     Running                           1 (28m ago)     77m
onap-policy-pap-7dd48d6d69-swbcd                   1/1     Running                           1 (28m ago)     70m
onap-sdnc-dgbuilder-8d946cb6b-jct5g                1/1     Running                           1 (28m ago)     68m
onap-dmaap-dr-prov-6ddbc5595-x9zs7                 2/2     Running                           2 (28m ago)     75m
onap-a1policymanagement-0                          2/2     Running                           2 (28m ago)     77m
onap-dmaap-dr-node-0                               2/2     Running                           2 (28m ago)     75m
onap-sdnc-web-55b974859d-7f72m                     1/1     Running                           1 (28m ago)     68m
onap-dcae-config-binding-service-f95cf8997-7pqj7   4/4     Running                           4 (28m ago)     76m
onap-dcae-ves-collector-7bb58645f6-wjmr7           2/2     Running                           2 (28m ago)     76m
onap-dcae-cloudify-manager-85cfdc498b-p9fq9        1/1     Running                           1 (28m ago)     76m
onap-sdnc-0                                        2/2     Running                           2 (28m ago)     68m
onap-network-name-gen-699cdbd4b5-f9shp             1/1     Running                           13 (21m ago)    68m
onap-aaf-sms-preload--1-xw2z8                      0/1     Init:CreateContainerConfigError   2               77m
onap-message-router-kafka-0                        0/1     CrashLoopBackOff                  8 (3m55s ago)   75m
onap-message-router-0                              0/1     CrashLoopBackOff                  8 (3m28s ago)   75m
NAME                                    READY   STATUS    RESTARTS      AGE
a1-sim-std-0-7d7d6d5b69-q4tf8           1/1     Running   1 (28m ago)   67m
a1-sim-std-1-6d7b644cbb-vhndk           1/1     Running   1 (28m ago)   67m
a1-sim-std2-0-64cc667968-m6rp6          1/1     Running   1 (28m ago)   67m
a1-sim-osc-1-5bb7478885-25rmb           1/1     Running   1 (28m ago)   67m
topology-6c5cd99d6d-qnrzr               1/1     Running   1 (28m ago)   67m
helmmanager-0                           1/1     Running   1 (28m ago)   67m
a1-sim-std2-1-b668b97df-662zs           1/1     Running   1 (28m ago)   67m
rappcatalogueservice-765d8c69fd-zp57s   1/1     Running   1 (28m ago)   67m
dmaapadapterservice-0                   1/1     Running   1 (28m ago)   67m
a1-sim-osc-0-547cc8fc84-fmddw           1/1     Running   1 (28m ago)   67m
informationservice-0                    1/1     Running   1 (28m ago)   67m
nonrtricgateway-689d9cf595-gltwm        1/1     Running   2 (27m ago)   67m
dmaapmediatorservice-0                  1/1     Running   3 (26m ago)   67m
oran-nonrtric-kong-594db9cb8b-pqbhg     2/2     Running   8 (26m ago)   67m
controlpanel-6fb4f88778-rl5gx           1/1     Running   4 (26m ago)   67m
oru-app-cd86cbb85-9wbck                 1/1     Running   1 (28m ago)   67m

In case you want to build your own ORAN image, start with the ubuntu2004.ndz and remove snapd restriction from it with: }}}

sudo rm /etc/apt/preferences.d/snapd

Install snapd:

sudo apt update
sudo apt install snapd

Add to /etc/profile

export LC_ALL=C.UTF-8
export LANG=C.UTF-8

exit the ssh session and come back. Install a local Kubernetes with MicroK8s:

sudo snap install microk8s --classic

Grab the O-RAN installation scripts:

git clone --recursive https://github.com/sebdet/oran-deployment.git

And then install them

./oran-deployment/scripts/layer-0/0-setup-microk8s.sh
./oran-deployment/scripts/layer-0/0-setup-charts-museum.sh
./oran-deployment/scripts/layer-0/0-setup-helm3.sh
./oran-deployment/scripts/layer-1/1-build-all-charts.sh
./oran-deployment/scripts/layer-2/2-install-oran.sh

No-RT RIC Web Page Screenshot [Image(ONAP.png, 600 )]]

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.