Versions Compared

Key

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

Table of Contents

Introduction

The rApp Manager is a lifecycle management service for rApps. It gets the rApp as ASD formatted package and lifecycle manages it based on it instance configuration. It uses ONAP ACM for lifecycle management operations and it integrates with other components for managing the rApp.

ASD package contains the details required to create and integrate the required services/components. Each ASD package contains only one rApp and One rApp can have any number of rApp instances.

Source code repository : https://gerrit.o-ran-sc.org/r/gitweb?p=nonrtric%2Fplt%2Frappmanager.git;a=summary

Architecture

...

Image Removed

Integrations

The rApp Manager integrated with the below components to support lifecycle managing the rApp.

ACM

Automation Composition Management (ACM) is a framework that supports Life Cycle Management of Automation Compositions. It supports deployment, monitoring, update and removal of Automation Compositions en-bloc, allowing users to manage their features, services, and capabilities as single logical units. More details about ACM can be found here.

ACM-R supports any number of participants and all the participants can be configured through the configuration in the rApp package.

List of participants used by rApp manager sample rApp.

  • A1PMS Participant - It interacts with A1PMS of NONRTRIC. It is capable of lifecycle managing A1PMS service.
  • Kserve Participant - It interacts with Kserve. It is capable of lifecycle managing Kserve inference service.
  • Kubernetes Participant - It interacts with Helm/Kubernetes. It is capable of lifecycle managing Helm charts.
  • DME Participant -  It interacts with DME(ICS) of NONRTRIC. It is capable of lifecycle managing DME entities.

ACM composition and instance details can be provided as part of rApp package and the package structure can be found here.

DME

The DME(Information Coordination Service (ICS)) is a generic service that maintains data subscriptions. Its main purpose is to decouple data consumers and data producers in a multi vendor environment. A data consumer does not need to know anything about the producers of the data. More details about DME can be found here.

It integrates with rApp manager to enable the rApp produce/consume specific type of data(Information Type in DME terms).

Information type, Data producer/consumer information can be provided as part of rApp package and the package structure can be found here.

SME

The SME(CAPIF) stands for Common API framework and it was developed by 3GPP to enable a unified Northbound API framework across 3GPP network functions, and to ensure that there is a single and harmonized approach for API development. More details about DME can be found here.

It integrates with rApp manager to enable the rApp expose/access/discover endpoints.

Service exposure/access related configurations can be provided as part of rApp package and the package structure can be found here.

State Transitions

rApp States

The rApp lifecycle contains 4 states. The state and transitions are as follows,

  1. COMMISSIONED
    rApp will be in this state right after creation and
    once the DEPRIMING is completed
  2. PRIMING
    This is a transition state. rApp will be in this
    state once the PRIMING requested for rApp
  3. PRIMED
    rApp will be in this state once the PRIMING is
    completed. In this state rApp instances can be
    created
  4. DEPRIMING
    This is a transition state. rApp will be
    in this state once the DEPRIMING requested for rApp

...

Image Removed

rApp Instance States

The rApp Instance lifecycle contains 4 states. The state and transitions are as follows,

  1. UNDEPLOYED
    rApp instance gets created in this state and
    once the rApp Instance undeploy is completed
  2. DEPLOYING
    This is the transition state. rApp instance will
    be in this state once DEPLOY is requested
  3. DEPLOYED
    rApp instance will be in this state once the
    rapp instance deployment is completed.
  4. UNDEPLOYING
    This is a transition state. rApp instance will
    be in this state once UNDEPLOY requested for
    rApp instance

...

Image Removed

Flows

rApp flow

Create rApp

...

API user creates rApp by sending rApp package

...

rApp Manager validates the rApp

...

rApp Manager stores the rApp in the file system if the rApp is valid

...

API user provided with the status of rApp creation.

...

API user request to Prime the rApp

...

rApp Manager fetches the ACM composition from rApp package and 
creates the ACM composition in ACM-R

...

Table of Contents


Introduction

The rApp Manager is a lifecycle management service for rApps. It gets the rApp as an ASD formatted package and lifecycle manages it based on it instance configuration. It uses ONAP ACM for lifecycle management operations and it integrates with other components for managing the rApp.

The ASD package contains the details required to create and integrate the required services/components. Each ASD package contains only one rApp and one rApp can have any number of rApp instances.

Source code repository : https://gerrit.o-ran-sc.org/r/gitweb?p=nonrtric%2Fplt%2Frappmanager.git;a=summary

Architecture


Image Added

rApp Data Model


Image Added


Integrations

The rApp Manager is integrated with the following components to support lifecycle managing the rApp.

ACM

Automation Composition Management (ACM) is a framework that supports Life Cycle Management of Automation Compositions. It supports deployment, monitoring, update and removal of Automation Compositions en-bloc, allowing users to manage their features, services, and capabilities as single logical units. More details about ACM can be found here.

ACM-R has the ability to support an unlimited number of participants and all the participants can be configured through the configuration in the rApp package.

List of participants used by rApp manager sample rApp.

  • A1PMS Participant - It interacts with A1PMS of NONRTRIC. It is capable of lifecycle managing A1PMS service.
  • Kserve Participant - It interacts with Kserve. It is capable of lifecycle managing Kserve inference service.
  • Kubernetes Participant - It interacts with Helm/Kubernetes. It is capable of lifecycle managing Helm charts. It expects the helm charts to be available in the mentioned repository as it doesn't handle the helm chart creation in the chart repository.
  • DME Participant -  It interacts with DME(ICS) of NONRTRIC. It is capable of lifecycle managing DME entities.

ACM composition and instance details can be provided as part of the rApp package and the package structure can be found here.

DME

The DME(Information Coordination Service (ICS)) is a generic service that maintains data subscriptions. Its main purpose is to decouple data consumers and data producers in a multi vendor environment. A data consumer does not need to know anything about the producers of the data. More details about DME can be found here.

It is integrated with rApp manager to enable the rApp to produce/consume specific type of data(Information Type in DME terms).

Information type, and Data producer/consumer information can be provided as part of rApp package and the package structure can be found here.

SME

The CAPIF stands for Common API framework and it was developed by 3GPP to enable a unified Northbound API framework across 3GPP network functions, and to ensure that there is a single and harmonized approach for API development. More details about SME can be found here.

It is integrated with rApp manager to enable the rApp to expose/access/discover endpoints.

Service exposure/access related configurations can be provided as part of rApp package and the package structure can be found here.


State Transitions

rApp States

The rApp lifecycle contains 4 states. The state and transitions are as follows,



  1. COMMISSIONED
    rApp get created in this state and once the
    DEPRIMING is completed
  2. PRIMING
    This is a transition state. rApp will be in this
    state once the PRIMING requested for rApp
  3. PRIMED
    rApp will be in this state once the PRIMING is
    completed. In this state rApp instances can be
    created
  4. DEPRIMING
    This is a transition state. rApp will be
    in this state once the DEPRIMING requested for rApp

Image Added


rApp Instance States

The rApp Instance lifecycle contains 4 states. The state and transitions are as follows,



  1. UNDEPLOYED
    rApp instance gets created in this state and
    once the rApp Instance undeploy is completed
  2. DEPLOYING
    This is the transition state. rApp instance will
    be in this state once DEPLOY is requested
  3. DEPLOYED
    rApp instance will be in this state once the
    rapp instance deployment is completed.
  4. UNDEPLOYING
    This is a transition state. rApp instance will
    be in this state once UNDEPLOY requested for
    rApp instance

Image Added


Flows

rApp flow

Create rApp

  1. API user creates rApp by sending rApp package
  2. rApp Manager validates the rApp
  3. rApp Manager stores the rApp in the file system if the rApp is valid
  4. API user provided with the status of rApp creation.
  5. API user request to Prime the rApp
  6. rApp Manager fetches the ACM composition from rApp package and 
    creates the ACM composition in ACM-R
  7. rApp Manager gets the ACM composition creation status from ACM-R
  8. rApp Manager request ACM-R to prime the ACM composition 
  9. rApp Manager gets the ACM composition priming status from ACM-R
  10. rApp Manager checks with DME for the unknown information type from rApp package
  11. rApp Manager get the information type availability from DME
  12. API user provided with the status of rApp priming

Delete rApp

  1. API user request to Deprime rApp
  2. rApp Manager request ACM-R to deprime the ACM composition 
  3. rApp Manager get the status of ACM composition depriming.
  4. rApp Manager requests ACM-R to delete the ACM composition 
  5. rApp Manager gets the status of ACM composition deletion
  6. API user provided with the deprime rApp status.
  7. API user request to delete the rApp
  8. rApp Manager validates that the rApp is in COMMISSIONED state and 
    there is no rApp Instances are available.
  9. API User provided with delete rApp status

Image Added


rApp Instance flow

Create rApp Instance

  1. API user request to create rApp Instance with the resource details from rApp package
  2. API user get the rApp instance creation response

Deploy rApp Instance

  1. API user request to deploy rApp instance
  2. rApp Manager fetches the rApp package from file system and fetches the 
    resources mentioned in the rApp instance.
  3. rApp Manager request ACM-R with 
to
  1. the 
prime
  1. necessary 
the
  1. details 
ACM
  1. from 
composition 
  1. rApp 
Manager
  1. package 
gets
  1. to 
the

  1. Instantiate ACM
composition priming status from ACM-R
  1. instance
  2. rApp Manager 
checks with DME for the unknown information type from rApp package
  1. gets instantiate ACM instance response
  2. rApp Manager 
get the information type availability from DME
  • API user provided with the status of rApp priming
  • Delete rApp

    1. API user request to Deprime rApp
    2. rApp Manager request ACM-R to deprime the ACM composition 
    3. rApp Manager get the status of ACM composition depriming.
    4. rApp Manager requests ACM-R to delete the ACM composition 
    5. rApp Manager gets the status of ACM composition deletion
    6. API user provided with the deprime rApp status.
    7. API user request to delete the rApp
    8. rApp Manager validates that the rApp is in COMMISSIONED state and 
      there is no rApp Instances are available.
    9. API User provided with delete rApp status

    Image Removed

    rApp Instance flow

    Create rApp Instance

    1. API user request to create rApp Instance with the resource details from rApp package
    2. API user get the rApp instance creation response

    Deploy rApp Instance

    1. API user request to deploy rApp instance
    2. rApp Manager fetches the rApp package from file system and fetches the 
      resources mentioned in the rApp instance.
    3. rApp Manager request ACM-R with the necessary details from rApp package to 
      Instantiate ACM instance
    4. rApp Manager gets instantiate ACM instance responserequest ACM-R to deploy ACM instance
    5. ACM-R deploys the A1PMS instance if it is configured in the ACM instance
    6. ACM-R gets the A1PMS deployment status
    7. ACM-R deploys the Kserve instance if it is configured in the ACM instance
    8. ACM-R gets the Kserve deployment status
    9. ACM-R deploys the Kubernetes instance if it is configured in the ACM instance
    10. ACM-R gets the Kubernetes deployment status
    11. ACM-R deploys the DME instance if it is configured in the ACM instance
    12. ACM-R gets the DME deployment status
    13. rApp Manager gets ACM deployment status
    14. rApp Manager request SME to create the entities in rApp instance
    15. SME creates the entities provided by rApp Manager
    16. rApp manager get the response of SME entities creation
    17. API user provided with the status of rApp instance deployment. rApp Manager combines 
      the status of ACM deployment and SME deployment to provide the rApp instance status.

    Undeploy rApp Instance

    1. API user request to undeploy rApp instance
    2. rApp Manager fetches the rApp and rApp instance details
    3. rApp Manager request ACM-R to undeploy deploythe ACM instance
    4. ACM-R deploysundeploy the A1PMS instance if it is configured in the ACM instancealready deployed
    5. ACM-R gets the A1PMS deploymentundeploy status
    6. ACM-R deploysundeploy the Kserve instance if it is configured in the ACM instancealready deployed
    7. ACM-R gets the Kserve deploymentundeploy status
    8. ACM-R deploysundeploy the Kubernetes instance if it is configured in the ACM instancealready deployed
    9. ACM-R gets the Kubernetes deploymentundeploy status
    10. ACM-R deploysundeploy the DME instance if it is configured in the ACM instancealready deployed
    11. ACM-R gets the DME deploymentundeploy status
    12. rApp Manager getsget ACM deploymentundeploy status
    13. rApp Manager request SMEACM-R to createdelete the entities inACM rApp instanceSME
    14. rApp createsManager theget entitiesresponse providedof byACM rAppinstance Managerdeletion
    15. rApp managerManager getrequest theSME responseto ofdelete SME entities
    16. SME creationAPIdeletes userthe providedentities withcreated theas statuspart of rApp instance deployment. 
    17. rApp Manager combinesget 
      the statusresponse of SME ACMentities deploymentdeletion
    18. API anduser SMEget deploymentthe tostatus provideof theundeploy rApp instance status.
    Undeploy

    Delete rApp Instance

    1. API user request to undeploy rApp instancerApp Manager fetchesto thedelete rApp and rApp instance details
    2. rApp Manager request ACM-R to undeploy the ACM instance
    3. ACM-R undeploy the A1PMS instance if it is already deployed
    4. ACM-R gets the A1PMS undeploy status
    5. ACM-R undeploy the Kserve instance if it is already deployed
    6. ACM-R gets the Kserve undeploy status
    7. ACM-R undeploy the Kubernetes instance if it is already deployed
    8. ACM-R gets the Kubernetes undeploy status
    9. ACM-R undeploy the DME instance if it is already deployed
    10. ACM-R gets the DME undeploy status
    11. rApp Manager get ACM undeploy status
    12. rApp Manager request ACM-R to delete the ACM instance
    13. rApp Manager get response of ACM instance deletion
    14. rApp Manager request SME to delete SME entities
    15. SME deletes the entities created as part of rApp
    16. rApp Manager get the response of SME entities deletion
    17. API user get the status of undeploy rApp instance

    Delete rApp Instance

    1. API user request rApp Manager to delete rApp Instance
    2. API user gets delete rApp instance response

    Image Removed

    Sample rApp package structure

    Warning

    This packaging structure is a prototype and subject to change

    The sample rApp package structure shown below and the location of relevant files for each integration is provided.

    ...

    ACM (Files/Acm)

    • Definition - Files/Acm/Definition (Only one file)
    • Instances - Files/Acm/instances

    DME (Files/Dme)

    • Consumer Information Types - Files/Dme/consumerinfotypes
    • Producer information Types -  Files/Dme/producerinfotypes
    • Information Consumers - Files/Dme/infoconsumers
    • Information Producers - Files/Dme/infoproducers

    SME (Files/Sme)

    • Providers Functions - Files/Sme/providers
    • Service Api -  Files/Sme/serviceapis
    • Invokers - Files/Sme/invokers

    ...

    Image Removed

    Image Removed

    CSAR File Generation

    CSAR file generator is available in the rAppmanager repository here

    "rappmanager/csar-generator/resources" folder contains the resources to build the rApp package.

    ...

    1. Instance
    2. API user gets delete rApp instance response


    Image Added



    Sample rApp package structure

    Warning

    This packaging structure is a prototype and subject to change


    The sample rApp package structure shown below and the location of relevant files for each integration is provided.


    ACM (Files/Acm)

    • Definition - Files/Acm/Definition (Only one file)
    • Instances - Files/Acm/instances

    DME (Files/Dme)

    • Consumer Information Types - Files/Dme/consumerinfotypes
    • Producer information Types -  Files/Dme/producerinfotypes
    • Information Consumers - Files/Dme/infoconsumers
    • Information Producers - Files/Dme/infoproducers

    SME (Files/Sme)

    • Providers Functions - Files/Sme/providers
    • Service Api -  Files/Sme/serviceapis
    • Invokers - Files/Sme/invokers

    Image Added



    Image Added



    CSAR File Generation

    CSAR file generator is available in the rAppmanager repository here (i-release)

    "rappmanager/csar-generator/resources" folder contains the resources to build the rApp package.

    The contents of the "resources" directory can be modified as required and the package can be generated as shown below,

    Code Block
    languagebash
    titleLinux: Generate rApp package
    > ./generate.sh


    Code Block
    languagepowershell
    titleWindows: Generate rApp package
    > ./generate.bat

    This will generate a package named "rapp.csar". It can be renamed as required.

    This generated package can be used with rApp Manager to create rApp.

    Deployment Instructions

    The scripts for the deployments of rApp Manager and its dependent components are available here (i-release).

    Tip

    These scripts are specifically designed for a fresh environment. Some tweaks may be required to run these in an environment where there are some existing installations

    Pre-requisites

    • Kubernetes Cluster (V1.24.6)
    • GIT

    Environment setup

    The installation scripts shown here installs all the required components.

    ACM components should be configured with couple of other components for the participants to work.

    In case some of the installation is already setup or not set by the installation scripts, the below environment variables can be used to set the configurations ACM through installation scripts.


    Tip

    Ignore the below variables if the entire environment is being setup by the following installation scripts


    Variable NameDescriptionDefault Value
    A1PMS_HOST
    Address of the A1PMS. 
    It will be accessed from A1PMS participant.
    http://policymanagementservice.nonrtric:9080
    CHART_REPO_HOST
    Address of the chart repository. 
    It will be used by Kubernetes participant.
    http://IP_ADDRESS:8879/charts
    IP_ADDRESS: IP of the host in which 
    the installation scripts are running.

    Installation

    All components can be installed using the command below,

    Code Block
    languagebash
    titleLinux: Generate rApp package
    > ./generate.sh>./install-all.sh


    Individual components can be installed using the commands below,

    To install the tools required for other installer scripts.

    Code Block
    languagepowershelltitleWindows: Generate rApp packagebash
    > ./generate.bat

    This will generate a package named "rapp.csar". It can be renamed as required.

    This generated package can be used with rApp Manager to create rApp.

    Deployment Instructions

    The scripts for the deployments of rApp Manager and its dependent components are available here.

    Tip

    These scripts are specifically designed for a fresh environment. Some tweaks may be required to run these in an environment where there are some existing installations

    Pre-requisites

    • Kubernetes Cluster(V1.24.6)
    • GIT

    Installation

    ...

    ./install-base.sh

    To install the ACM, and it's related components.

    Code Block
    languagebash
    >./install-acm.sh

    To install the Kserve, and it's related components.

    Code Block
    languagebash
    >./install-kserve.sh

    To installs the NONRTRIC components.

    Code Block
    languagebash
    >./install-all.sh

    ...

    Uninstallation

    ...

    nonrtric.sh


    Installed Components

    The below components should be up and running for the rApp Manager integrations to work properly.

    Istio components

    Image Added


    Cert Manager components

    Image Added


    Kserve components

    Kserve ComponentsImage Added


    ACM Components

    Image Added


    NONRTRIC Components

    Image Added

    Troubleshooting

    1. If Kserve installation failed or end up in the below state after "install-all.sh", Try run "patch-kserve.sh" script after "install-all.sh"

      Image Added

      Image Added


    Uninstallation

    To uninstall all the components

    Code Block
    languagebash
    >./uninstall-all.sh

    ...