Update vLB ScaleOut use case doc
[integration.git] / docs / docs_5G_PNF_Software_Upgrade_With_Schema_Update.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 .. _docs_5g_pnf_software_upgrade_with_schema_update:
5
6 :orphan:
7
8 Support xNF Software Upgrade in association to schema updates
9 -------------------------------------------------------------
10
11 Description
12 ~~~~~~~~~~~
13
14 A schema update in relation to a xNF software upgrades is a routine for network upgrade to support new xNF features, improve efficiency or increase xNF capacity on the field, and to  eliminate bugs.  This use case provides to ONAP an advantage in orchestrating and managing the Life Cycle of a Network Services in-line with business and service objectives. Deployment and orchestration of new services over CNFs,  VNFs and PNFs in a model and software driven way simplifies the network management. Enables operators and service providers to manage the Life Cycle of a Network Service. Assuring continuity of operation of services is crucial for production and carrier grade environments. The actualization or upgrades of software and in consequence required changes in the service model is a natural part of service instance life cycle. Without the support of ONAP service update with schema change, service life cycle management by ONAP can be very difficult which can impact the quality and continuity of services.
15
16
17 Current Status in Guilin
18 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
20 xNF Software Upgrade with xNF artifacts updating in Release G
21 -------------------------------------------------------------
22
23 The following is the xNF software upgrade procedure with schema update.
24
25 .. image:: files/softwareUpgrade/SchemaUpdate.png
26
27 1. A vendor shall provide
28      a. a new VNF/PNF package with updated artifacts, and
29      b. the new VNF/ PNF software image to the operator.
30 2. At receiving of the new package, the operator shall
31      a. onboard the new package and create a new resource template or update the existing resource template (PNF or VNF)
32      b. update the existing service template with the new or updated resource template
33      c. distribute the updated service template to run time.
34 3. At run time, the operator shall, based on the updated service template,
35      a. upgrade a service instance and its resource instances, and
36      b. update the AAI entry accordingly
37
38 The above procedure is based on the following conditions:
39
40 * When updating a service template at design time, the resource instance name and network topology shall be unchanged.
41
42 * A service template must be upgradable from any previous versions, including that any new resource template of a given resource instance (within the service template) must be upgradeable from any previous resource template versions.
43
44 * At run time, resource upgrade sequence is not sensitive in service instance upgrading procedure.
45
46 Function limitations in Release G
47 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48
49 * The operator shall know the possible/feasible resource upgrade path based on vendor provided information.
50
51 * When operator updating a service template, the updated service template must be upgradable from any previous versions:
52     - Within the service template, the resource instance name and network topology are unchanged.
53     - The new resource template of a given resource instance (within the service template) must be upgradeable from any previous resource template versions.
54
55 .. note::
56     This is to avoid adding possible upgrade paths info and upgrade sequence info into SDC model
57
58 Update a xNF resource template from a new onboarding package
59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
61 When updating a resource template from a new VSP casr, the new onboarded descriptor and the new onboarded artifacts will be transformed into the new version of the resource csar. The current resource name and invariantUUID will be remained.
62
63 As an alternative, a resource csar can be updated manually using SDC GUI.
64
65 .. image:: files/softwareUpgrade/OnboardingCsar.png
66
67 The update path (green path in above picture) is supported in the current SDC implementation. However, there are bugs which need to be fixed.
68
69 Service level LCM workflow in SO
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71
72 .. image:: files/softwareUpgrade/ServiceLevelWorkflow.png
73
74 A generic SO workflow is created which can be used to upgrade one service instance based on the updated service template. This service level workflow is network function type independent. When upgrade one resource instance, the subsequent resource level upgrade workflow is selected based on the network function type. It contains following main steps:
75
76 * Service Level Preparation
77     - Creating resource template instance upgrade list by comparing the service templates
78     - Select a resource level health check workflow based on the resource type
79     - Execute the selected resource level health check workflow on all resource instances within the service
80 * Service Level Upgrade
81     - Select a resource level upgrade workflow based on the resource type
82     - Execute the selected resource level upgrade workflow on each upgrading resource instances
83     - Update the software version, model-invariant-id and model-version-id of the resource template in the A&AI entry at end of each Resource level upgrade workflow
84 * Service Level Update
85     - Update the model-version-id of the service template in the A&AI entry
86 * Service Level postCheck
87     - Select a resource level health check workflow based on the resource type
88     - Execute the selected resource level health check workflow on all resource instances within the service
89
90 The following is an example of the service level workflow with PNF upgrade sub-workflow is called at Service Level Upgrade step:
91
92 .. image:: files/softwareUpgrade/ServiceLevelUpgrade.png
93
94 Workflow view
95 ~~~~~~~~~~~~~
96
97 .. image:: files/softwareUpgrade/WorkflowView.png
98
99 SO APIs
100 ~~~~~~~
101 .. csv-table:: use case table
102    :file: schema-update-apis.csv
103    :widths: 60,20,20
104    :header-rows: 1
105
106 Reference
107 ~~~~~~~~~~~
108
109 `PNF Software Upgrade with Schema Update Wiki Page <https://wiki.onap.org/pages/viewpage.action?pageId=81400388#SupportxNFSoftwareUpgradeinassociationtoschemaupdates-DevelopmentStatus>`_