Skip to content

Commit 109570f

Browse files
Merge pull request #295347 from msftadam/patch-60
Update safe-upgrade-practices.md
2 parents 59fbd27 + 36163a8 commit 109570f

File tree

1 file changed

+47
-42
lines changed

1 file changed

+47
-42
lines changed

articles/operator-service-manager/safe-upgrade-practices.md

Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,52 +12,57 @@ ms.service: azure-operator-service-manager
1212
This article introduces Azure Operator Service Manager (AOSM) safe upgrade practices (SUP). This feature set enables an end user to safely execute complex upgrades of container network function (CNF) workloads hosted on Azure Operator Nexus, in compliance with partner In Service Software Upgrade (ISSU) requirements, where applicable. Look for future articles to expand on advanced SUP features and capabilities.
1313

1414
## Introduction to safe upgrades
15-
A given network service supported by AOSM is composed of one to many CNFs which, over time, require software upgrades. For each upgrade, it is necessary to run one to many helm operations, updating dependent network function applications (NfApps), in a particular order, in a manner which least impacts the network service. AOSM SUP represents a set of features, which enables safe automation of these operations on Azure Operator Nexus.
15+
A given network service supported by AOSM is composed of one to many CNFs which, over time, require software upgrades. For each upgrade, it is necessary to run one to many helm operations, updating dependent network function applications (nfApps), in a particular order, in a manner which least impacts the network service. AOSM SUP represents a set of features, which enables safe automation of these operations on Azure Operator Nexus.
1616

17-
* SNS Reput Support - Execute helm upgrade operation across all NfApps in NFDV.
17+
* SNS Reput Support - Execute helm upgrade operation across all nfApps in network function design version (NFDV).
1818
* Nexus Platform - Support SNS reput operations on Nexus platform targets.
19-
* Operation Time-outs - Ability to set operational time-outs for each NfApp operation.
20-
* Synchronous Operations - Ability to run one serial NfApp operation at a time.
21-
* Control Upgrade Order - Define different NfApp sequence for install and upgrade.
22-
* Pause On Failure - Default behavior pauses after an NfApp operation failure.
23-
* Rollback On Failure - Optional behavior, rollsback all completed NfApps prior to operation failure.
19+
* Operation Time-outs - Ability to set operational time-outs for each nfApp operation.
20+
* Synchronous Operations - Ability to run one serial nfApp operation at a time.
21+
* Control Upgrade Order - Define different nfApp sequence for install and upgrade.
22+
* Pause On Failure - Default behavior pauses after an nfApp operation failure.
23+
* Rollback On Failure - Optional behavior, rollsback all completed nfApps prior to operation failure.
2424
* Single Chart Test Validation - Running a helm test operation after a create or update.
25-
* Skip NfApp on No Change - Skip processing of NfApps where no changes result.
25+
* Skip nfApp on No Change - Skip processing of nfApps where no changes result.
2626
* Image Preloading - Ability to preload images to edge repository.
2727

2828
## Safe upgrade approach
29-
To update an existing Azure Operator Service Manager site network service (SNS), the Operator executes a reput update request against the deployed SNS resource. Where the SNS contains CNFs with multiple NfApps, the request is fanned out across all NfApps defined in the network function definition version (NFDV). By default, in the order, which they appear, or optionally in the order defined by `updateDependsOn` parameter.
29+
To update an existing Azure Operator Service Manager site network service (SNS), the Operator executes a reput update request against the deployed SNS resource. Where the SNS contains CNFs with multiple nfApps, the request is fanned out across all nfApps defined in the network function definition version (NFDV). By default, in the order, which they appear, or optionally in the order defined by `updateDependsOn` parameter.
3030

31-
For each NfApp, the reput update request supports increasing a helm chart version, adding/removing helm values and/or adding/removing any NfApps. Time-outs can be set per NfApp, based on known allowable runtimes, but NfApps can only be processed in serial order, one after the other. The reput update implements the following processing logic:
31+
For each nfApp, the reput update request supports increasing a helm chart version, adding/removing helm values and/or adding/removing any nfApps. Time-outs can be set per nfApp, based on known allowable runtimes, but nfApps can only be processed in serial order, one after the other. The reput update implements the following processing logic:
3232

33-
* NfApps are processed following either updateDependsOn ordering, or in the sequential order they appear.
34-
* NfApps with parameter `applicationEnabled` set to disable are skipped.
35-
* NfApps with parameter `skipUpgrade` set to enabled are skipped if no changes detected.
36-
* NFApps which are common between old and new NFDV are upgraded.
37-
* NFApps which are only in the new NFDV are installed.
38-
* NFApps deployed, but not referenced by the new NFDV, are deleted.
33+
* nfApps are processed following either updateDependsOn ordering, or in the sequential order they appear.
34+
* nfApps with parameter `applicationEnabled` set to disable are skipped.
35+
* nfApps with parameter `skipUpgrade` set to enabled are skipped if no changes detected.
36+
* nfApps which are common between old and new NFDV are upgraded.
37+
* nfApps which are only in the new NFDV are installed.
38+
* nfApps deployed, but not referenced by the new NFDV, are deleted.
3939

40-
To ensure outcomes, NfApp testing is supported using helm, either helm upgrade pre/post tests, or standalone helm tests. For pre/post tests failures, the atomic parameter is honored. With atomic/true, the failed chart is rolled back. With atomic/false, no rollback is executed. For more information on standalone helm testing, see the following article: [Run tests after install or upgrade](safe-upgrades-helm-test.md)
40+
To ensure outcomes, nfApp testing is supported using helm, either helm upgrade pre/post tests, or standalone helm tests. For pre/post tests failures, the atomic parameter is honored. With atomic/true, the failed chart is rolled back. With atomic/false, no rollback is executed. For more information on standalone helm testing, see the following article: [Run tests after install or upgrade](safe-upgrades-helm-test.md)
4141

4242
## Considerations for in-service upgrades
4343
Azure Operator Service Manager generally supports in service upgrades, an upgrade method which advances a deployment version without interrupting the running service. Some considerations are necessary to ensure the proper behavior of AOSM during ISSU operations.
4444
* Where AOSM performs an upgrade against an ordered set of multiple nfApps, AOSM first upgrades or creates all new nfApps, then deletes all old nfApps. This approach ensures service is not impacted until all new nfApps are ready but requires extra platform capacity for transient hosting of both old and new nfApps.
45-
* Where AOSM upgrades an NfApp with multiple replica, AOSM honors the deployment profile settings for rolling or recreate option. Where rolling is used, expose the values `maxUnavailable` and `maxSurge` as CGS parameters, which can then be set via operator CGV at run-time.
45+
* Where AOSM upgrades an nfApp with multiple replica, AOSM honors the deployment profile settings for rolling or recreate option. Where rolling is used, expose the values `maxUnavailable` and `maxSurge` as CGS parameters, which can then be set via operator CGV at run-time.
4646

4747
Ultimately, the ability for a given service to be upgraded without interruption is a feature of the service itself. Consult further with the service publisher to understand the in-service upgrade capabilities and ensure they are aligned with the proper AOSM behavioral options.
4848

4949
## Safe upgrade prerequisites
5050
When planning for an upgrade using Azure Operator Service Manager, address the following requirements in advance of upgrade execution to optimize the time spent attempting the upgrade.
5151

5252
- Onboard updated artifacts using publisher and/or designer workflows.
53-
- Publisher, store, network service design (NSDg), and network function design group (NFDg) are static and do not need to change.
54-
- A new artifact manifest is needed to store the new charts and images. For more information, see onboarding documentation for details on uploading new charts and images.
55-
- New NFDV and network service design version (NSDV) are needed, under existing NFDg and NSDg.
53+
- Publisher, artifact store, network service design group (NSDG), and network function design group (NFDG) are immutabe and cannot change.
54+
- Changing one of these resources would require deployment of a new NF via put.
55+
- A new artifact manifest is needed to store the new charts and images.
56+
- For more information, see [onboarding documentation](how-to-manage-artifacts-nexus.md) for details on uploading new charts and images.
57+
- A new NFDV, and optionally network service design version (NSDV), is needed.
5658
- We cover basic changes to the NFDV in the step by step section.
5759
- New NSDV is only required if a new configuration group schema (CGS) version is being introduced.
5860
- If necessary, new CGS.
5961
- Required if an upgrade introduces new exposed configuration parameters.
6062

63+
> [!NOTE]
64+
> NSDVs and NFDVs with different major versions can be supported in the same NSDG and NFDG
65+
6166
- Create updated artifacts using Operator workflow.
6267
- If necessary, create new configuration group values (CGVs) based on new CGS.
6368
- Reuse and craft payload by confirming the existing site and site network service objects.
@@ -69,40 +74,40 @@ When planning for an upgrade using Azure Operator Service Manager, address the f
6974
Follow the following process to trigger an upgrade with Azure Operator Service Manager.
7075

7176
### Create new NFDV resource
72-
For new NFDV versions, it must be in a valid SemVer format, where only higher incrementing values of patch and minor versions updates are allowed. A lower NFDV version is not allowed. Given a CNF deployed using NFDV 2.0.0, the new NFDV can be of version 2.0.1, or 2.1.0, but not 1.0.0, or 3.0.0.
77+
For new NFDV versions, it must be in a valid SemVer format. The new version can be an upgrade, a greater value versus the deployed version, or an downgrade, a lower value versus the deployed version. The new version can differ by major, minor or patch values.
7378

7479
### Update new NFDV parameters
75-
Helm chart versions can be updated, or Helm values can be updated or parameterized as necessary. New NfApps can also be added where they did not exist in deployed version.
80+
Helm chart versions can be updated, or Helm values can be updated or parameterized as necessary. New nfApps can also be added where they did not exist in deployed version.
7681

77-
### Update NFDV for desired NfApp order
78-
UpdateDependsOn is an NFDV parameter used to specify ordering of NfApps during update operations. If UpdateDependsOn is not provided, serial ordering of CNF applications, as appearing in the NFDV is used.
82+
### Update NFDV for desired nfApp order
83+
UpdateDependsOn is an NFDV parameter used to specify ordering of nfApps during update operations. If `updateDependsOn` is not provided, serial ordering of CNF applications, as appearing in the NFDV is used.
7984

80-
### Update NFDV for desired upgrade behavior
81-
Make sure to set any desired CNF application time-outs, the atomic parameter, and rollbackOnTestFailure parameter. It may be useful to change these parameters over time as more confidence is gained in the upgrade.
85+
### Update ARM template for desired upgrade behavior
86+
Make sure to set any desired CNF application `timeout`, the `atomic` parameter, and `rollbackOnTestFailure` parameter. It may be useful to change these parameters over time as more confidence is gained in the upgrade.
8287

8388
### Issue SNS reput
84-
With onboarding complete, the reput operation is submitted. Depending on the number, size and complexity of the NfApps, the reput operation could take some time to complete (multiple hours).
89+
With onboarding complete, the reput operation is submitted. Depending on the number, size and complexity of the nfApps, the reput operation could take some time to complete (multiple hours).
8590

8691
### Examine reput results
8792
If the reput is reporting a successful result, the upgrade is complete and the user should validate the state and availability of the service. If the reput is reporting a failure, follow the steps in the upgrade failure recovery section to continue.
8893

8994
## Safe upgrade retry procedure
9095
In cases where a reput update fails, the following process can be followed to retry the operation.
9196

92-
### Diagnose failed NfApp
93-
Resolve the root cause for NfApp failure by analyzing logs and other debugging information.
97+
### Diagnose failed nfApp
98+
Resolve the root cause for nfApp failure by analyzing logs and other debugging information.
9499

95100
### Manually skip completed charts
96-
After fixing the failed NfApp, but before attempting an upgrade retry, consider changing the applicationEnablement parameter to accelerate retry behavior. This parameter can be set false, where an NfApp should be skipped. This parameter can be useful where an NfApp does not require an upgraded.
101+
After fixing the failed nfApp, but before attempting an upgrade retry, consider changing the `applicationEnablement` parameter to accelerate retry behavior. This parameter can be set false, where an nfApp should be skipped. This parameter can be useful where an nfApp does not require an upgraded.
97102

98103
### Issue SNS reput retry (repeat until success)
99-
By default, the reput retries NfApps in the declared update order, unless they are skipped using applicationEnablement flag.
104+
By default, the reput retries nfApps in the declared update order, unless they are skipped using `applicationEnablement` flag.
100105

101106
## Skip nfApps using applicationEnablement
102-
In the NFDV resource, under deployParametersMappingRuleProfile there is the property applicationEnablement of type enum, which takes values: Unknown, Enabled, or disabled. It can be used to exclude NfApp operations during network function (NF) deployment.
107+
In the NFDV resource, under `deployParametersMappingRuleProfile` there is the property `applicationEnablement` of type enum, which takes values: Unknown, Enabled, or disabled. It can be used to exclude nfApp operations during network function (NF) deployment.
103108

104109
### Publisher changes
105-
For the applicationEnablement property, the publisher has two options: either provide a default value or parameterize it.
110+
For the `applicationEnablement` property, the publisher has two options: either provide a default value or parameterize it.
106111

107112
#### Sample NFDV
108113
The NFDV is used by publisher to set default values for applicationEnablement.
@@ -164,7 +169,7 @@ The NFDV is used by publisher to set default values for applicationEnablement.
164169
```
165170

166171
#### Sample configuration group schema (CGS) resource
167-
The CGS is used by the publisher to require a roleOverrideValues variable to be provided by Operator at run-time. RoleOverrideValues can include nondefault settings for applicationEnablement.
172+
The CGS is used by the publisher to require a `roleOverrideValues` variable to be provided by Operator at run-time. `roleOverrideValues` can include nondefault settings for `applicationEnablement`.
168173

169174
```json
170175
{
@@ -221,10 +226,10 @@ The CGS is used by the publisher to require a roleOverrideValues variable to be
221226
```
222227

223228
### Operator changes
224-
Operators inherit default applicationEnablement values as defined by the NFDV. If applicationEnablement is parameterized in CGS, then it must be passed through the deploymentValues property at runtime.
229+
Operators inherit default `applicationEnablement` values as defined by the NFDV. If `applicationEnablement` is parameterized in CGS, then it must be passed through the `deploymentValues` property at runtime.
225230

226231
#### Sample configuration group value (CGV) resource
227-
The CGV is used by the operator to set the roleOverrideValues variable at run-time. RoleOverrideValues include nondefault settings for applicationEnablement.
232+
The CGV is used by the operator to set the `roleOverrideValues` variable at run-time. `roleOverrideValues` include nondefault settings for `applicationEnablement`.
228233

229234
```json
230235
{
@@ -243,7 +248,7 @@ The CGV is used by the operator to set the roleOverrideValues variable at run-ti
243248
```
244249

245250
#### Sample NF ARM template
246-
The NF ARM template is used by operator to submit the roleOverrideValues variable, set by CGV, to the resource provider (RP). The operator can change the applicationEnablement setting in CGV, as needed, and resubmit the same NF ARM template, to alter behavior between iterations.
251+
The NF ARM template is used by operator to submit the `roleOverrideValues` variable, set by CGV, to the resource provider (RP). The operator can change the `applicationEnablement` setting in CGV, as needed, and resubmit the same NF ARM template, to alter behavior between iterations.
247252

248253
```json
249254
{
@@ -305,8 +310,8 @@ The NF ARM template is used by operator to submit the roleOverrideValues variabl
305310
}
306311
```
307312

308-
## Skip NfApps which have no change
309-
The `skipUpgrade` feature is designed to optimize the time taken for CNF upgrades. When the publisher enables this flag in the `roleOverrideValues` under `upgradeOptions`, the AOSM service layer performs certain prechecks, to determine whether an upgrade for a specific `nFApplication` can be skipped. If all precheck criteria are met, the upgrade is skipped for that application. Otherwise, an upgrade is executed at the cluster level.
313+
## Skip nfApps which have no change
314+
The `skipUpgrade` feature is designed to optimize the time taken for CNF upgrades. When the publisher enables this flag in the `roleOverrideValues` under `upgradeOptions`, the AOSM service layer performs certain prechecks, to determine whether an upgrade for a specific `nfApplication` can be skipped. If all precheck criteria are met, the upgrade is skipped for that application. Otherwise, an upgrade is executed at the cluster level.
310315

311316
### Precheck Criteria
312317
An upgrade can be skipped if all the following conditions are met:
@@ -340,7 +345,7 @@ To enable the SkipUpgrade feature via `roleOverrideValues`, refer to the followi
340345
}
341346
```
342347
#### Explanation of the Example
343-
- **NfApplication: `hellotest`**
348+
- **nfApplication: `hellotest`**
344349
- The `skipUpgrade` flag is enabled. If the upgrade request for `hellotest` meets the precheck criteria, the upgrade is skipped.
345-
- **NfApplication: `runnerTest`**
350+
- **nfApplication: `runnerTest`**
346351
- The `skipUpgrade` flag is not specified. Therefore, `runnerTest` executes a traditional Helm upgrade at the cluster level, even if the precheck criteria are met.

0 commit comments

Comments
 (0)