You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Software Requirements (Reference setup)


Component


Recommendation

System/OS

Ubuntu 18.04.1 LTS   64 bit
Disk space> 5GB
GITVersion 2.17.1
Python2.7x
Maven3.6.0
Java/JDKJava 8 (JDK version 1.8.0_282)

Installation of dependencies


1. Install Java JDK

Java JDK version should be 1.8+ for now [Note that it must be 1.8.x for now]. Get the supported version from Oracle or use the OpenJDK packages.

Steps to install Open JDK

  • sudo apt-get update
  • sudo apt-get install openjdk-8-jdk

Check your installation using the command : java  -version


2. Install Maven (Version 3.6.0)

Maven version should be 3 +. 

To install maven follow these steps:

  • sudo apt update
  • sudo apt install maven
  • Check the installation using : mvn -version

3. Download xconf server code

We can download the latest xconfserver code from https://github.com/rdkcentral/xconfserver. The latest version of the code is available in main branch.

4. Install and setup Cassandra(Version 3.11.9)

Install Cassandra

To install Cassandra , follow the below steps

  • Download the tarball file for the version 3.11.9 : 
    wget -c https://archive.apache.org/dist/cassandra/3.11.9/apache-cassandra-3.11.9-bin.tar.gz  
  • Unpack the tarball :  
    tar -xvf  apache-cassandra-3.11.9-bin.tar.gz

  • Step into apache-cassandra-3.11.9 folder :
    cd apache-cassandra-3.11.9

  • To start Cassandra, run the following command
    sudo bin/cassandra

  • To verify that Cassandra is up and running, enter the following command :
    bin/nodetool status

Configure Cassandra

Note :  For the next step, make sure that python is installed. Because cqlsh is python based command line tool. If python is not installed , use this command : sudo apt install python2.7

  • schema.cql file is available in 'xconf-angular-admin/src/test/resources/schema.cql'. We can use this cql file to create a corresponding schema . Open another terminal , step into apache-cassandra-3.11.9 folder and  run the following command
          bin/cqlsh -f  { path-to-the-schem.cql file}
         eg : bin/cqlsh  -f ~/xconf/xconfserver/xconf-angular-admin/src/test/resources/schema.cql
  • To check if tables are created successfully, we can use cqlsh 
  • To start cqlsh, step into cassandra folder and enter the command:
     bin/cqlsh 
  • It gives cassandra cqlsh prompt as output. To check if all the tables are present enter the following commands in cqlsh prompt :
          USE "demo"; 

          DESCRIBE KEYSPACE;
  • To exit from cqlsh prompt, we can use the command : quit


Configuration and Service startup


1. Start Cassandra Service

  • To start an Xconf application, start the Cassandra server by executing the following commands:  
          cd apache-cassandra-3.11.9
          sudo bin/cassandra
  • Status of xconf server can be verified by using  the command
          bin/nodetool status

2. Configure and Start Application Services

a. Build Project

  • Go to the xconf-server folder and run the following command to download all dependencies.
          cd ~/xconf/xconfserver
  • Run the following command from the xconfserver folder 
          mvn clean install


b. Configure Angular Admin UI


  • For first time application deployment, create a "service.properties"  file under the path xconfserver/xconf-angular-admin/src/main/resources/service.properties with the following contents. The sample service.properties file will be available in xconf-angular-admin/src/test/resources/service.properties, the below content is taken from there and modified with change in cassandra port.

                  

  

cassandra.keyspaceName=demo

cassandra.contactPoints=127.0.0.1

cassandra.username=

cassandra.password=

cassandra.port=9042

cassandra.authKey=


dataaccess.cache.tickDuration=60000

dataaccess.cache.retryCountUntilFullRefresh=10

dataaccess.cache.changedKeysTimeWindowSize=900000

dataaccess.cache.reloadCacheEntries=false

dataaccess.cache.reloadCacheEntriesTimeout=1

dataaccess.cache.reloadCacheEntriesTimeUnit=DAYS

dataaccess.cache.numberOfEntriesToProcessSequentially=10000

dataaccess.cache.keysetChunkSizeForMassCacheLoad=500

dataaccess.cache.changedKeysCfName=XconfChangedKeys4


  • Go to xconf-angular-admin folder
         cd ~/xconf/xconfserver/xconf-angular-admin
  • Run the following command from xconf-angular-admin folder
        mvn jetty:run -DappConfig=${path-to-service-properties} -f pom.xml
  • For first time run only, we need to specify the path to service.properties . For the subsequent runs execute the below command in the folder xconfserver/xconf-angular-admin:          mvn jetty:run

To run the admin UI launch it as http://<XCONF-SERVER-IP>:19093/admin/  in any browser. This will redirect to the login page.


If the user wants both read and write permissions ,then enter username and password for the login are admin and admin respectively

If the user wants only read permissions ,then enter username and password for the login are user and user respectively.

c. Configure DataService


  • For first time application deployment, create a "service.properties"  file under the path xconfserver/xconf-dataservice/src/main/resources/service.properties with the following contents. The sample service.properties file will be available in xconf-dataservice/src/test/resources/service.properties, the below content is taken from there and modified with change in cassandra port.

    cassandra.keyspaceName=demo

    cassandra.contactPoints=127.0.0.1

    cassandra.username=

    cassandra.password=

    cassandra.port=9042

    cassandra.authKey=


    dataaccess.cache.tickDuration=60000

    dataaccess.cache.retryCountUntilFullRefresh=10

    dataaccess.cache.changedKeysTimeWindowSize=900000

    dataaccess.cache.reloadCacheEntries=false

    dataaccess.cache.reloadCacheEntriesTimeout=1

    dataaccess.cache.reloadCacheEntriesTimeUnit=DAYS

    dataaccess.cache.numberOfEntriesToProcessSequentially=10000

    dataaccess.cache.keysetChunkSizeForMassCacheLoad=500

    dataaccess.cache.changedKeysCfName=XconfChangedKeys4

  • Step into xconf-dataservice folder
     
        cd ~xconf/xconfserver/xconf-dataservice
  • Run the following command from xconf-angular-admin folder
        mvn jetty:run -DappConfig=${path-to-service-properties} -f pom.xml

  • For first time run only, we need to specify the path to service.properties . For the subsequent runs execute the below command in the folder xconfserver/xconf-dataservice:

         mvn jetty:run      
  

To launch the application go to http://<XCONF-SERVER-IP>:19092/queries/environments .  To verify, add an entry in the environments tab of the xconf admin application and check whether the same is updated here in data service.


NOTE: To run the Admin UI and data service applications in background start jetty server as follows:

nohup mvn jetty:run &

Configuration and Validation of Admin UI 

Admin UI Common Configuration

Below steps will affect all the features in xconf system and should be configured after initial setup. Go to the steps given in site navigation step and press on create button to create new entries.

Define Environments

Site Navigation: <xconf-server>:19093 >> Common >> Environments | Example URL:

Define Models

Site Navigation: http://<XCONF-SERVER>:19093 >> Common >> Models | Example URL :

Define MAC List (This will be used to target certain list of MACs against a particular feature configuration)


Site Navigation http://<XCONF-SERVER>:19093 >> Common >> MAC List | Example URL :
 


Define IP list

Site Navigation http://<XCONF-SERVER>:19093 >> Common >> IP List | Example URL :

 

Feature Validation(RFC)

Configuration

RDK Feature control configuration can be added by adding below 2 sections

  1. Define the Feature
  2. Define the Feature Rule


  • Define the feature

A new feature can be defined via RFC-> Feature -> Create. Feature name should be unique and understandable, Config data should be key value pairs, and Effective Immediate true means it will be effected immediately after the settings is obtained at CPE device.

Site Navigation | http://<XCONF_SERVER>:19093 >> RFC >> Feature


  • Define the Feature Rule

Feature rule is to map devices to a particular feature. A new feature rule can be created via RFC->feature rule -> Create

Site Navigation | http://<XCONF_SERVER>:19093 >> RFC >> Feature Rule


Validation - TBD


Feature Validation (LogUpload)


Configuration


1. Create upload repository via DCM->Upload repository -> Create.   Here we can add where to configure the log upload, is the upload url and which protocol is used)

Site Navigation | http://<XCONF_SERVER>:19093 >> DCM >> UploadRepository


2. Create rule via DCM->Formulas->Create. 

Site Navigation | http://<XCONF_SERVER>:19093 >>DCM >> Formulas


3.  Once you save the created formula  , then a ‘define Settings’ tab with ‘Create Device Settings’, ‘Create log settings’, Create VOD settings’ will be available

4.  Edit the  Device Settings tab

5.  Edit the Log upload Setting (Create schedule & Add the upload repository created beforehand.


Validation - TBD


Feature Validation (Telemetry)


  1. Telemetry configuration can be done by adding a permanent profile which contains below objects
    1. Upload repository
    2. Profile options (Header, content, frequency etc.)
  2. Creating a targeting rule which is basically mapping the profile to a set of MAC/IP/Device etc.


Configuration


  1. Create a permanent profile Telemetry - > Permanent Profiles -> Create
Site Navigation: http://<XCONF_SERVER>:19093 >> Telemetry >> Permanent Profiles

     2. Once you save the permanent profile, you will get a message overlay ‘Profile added to the pending changes’. Then go to Changes -> select the profile you create -> Click on “Approve selected changes”.
Then the permanent profile will be listed under Telemetry - > Permanent profiles

Site Navigation: http://<XCONF_SERVER>:19093 >> Changes




     3. Create targeting rule via Telemetry -> Targeting rules. Targeting rules is to map the profiles with rules.

Site Navigation: http://<XCONF_SERVER>:19093 >> Telemetry >> Targeting Rule












  • No labels