|
18 | 18 |
|
19 | 19 | .. include:: ../common/vars.rst |
20 | 20 |
|
| 21 | +.. _upgrade guide: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/operators/administrator-tasks#olm-upgrading-operators |
| 22 | + |
21 | 23 | ******************************************************* |
22 | 24 | NVIDIA Network Operator Deployment Guide with OpenShift |
23 | 25 | ******************************************************* |
@@ -210,6 +212,122 @@ Example output: |
210 | 212 |
|
211 | 213 | A successful deployment shows a `Running` status. |
212 | 214 |
|
| 215 | +.. _network-operator-upgrade-openshift: |
| 216 | + |
| 217 | +------------------------- |
| 218 | +Network Operator Upgrade |
| 219 | +------------------------- |
| 220 | + |
| 221 | +This section describes how to upgrade the NVIDIA Network Operator on OpenShift Container Platform. |
| 222 | + |
| 223 | +.. note:: |
| 224 | + Updating the NVIDIA Network Operator will not automatically update the NicClusterPolicy components. You will need to manually update the NicClusterPolicy components to the new version. |
| 225 | + |
| 226 | + |
| 227 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 228 | +Upgrade Using OpenShift Web Console |
| 229 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 230 | + |
| 231 | +- In the OpenShift Container Platform web console side menu, select Operators > Installed Operators, and search for the NVIDIA Network Operator. |
| 232 | +- In case that the NVIDIA Network Operator has a pending update, it will display a status with Upgrade available like in the following image: |
| 233 | + |
| 234 | +.. image:: ../images/ocp-upgrade-available.png |
| 235 | + |
| 236 | +- Click on the `Upgrade Available` link, then click `Preview Install Plan` button. |
| 237 | +- Review the install plan, and click `Approve` button to upgrade the NVIDIA Network Operator. |
| 238 | +- Navigate back to the Operators -> Installed Operators page to monitor the progress of the update. When complete, the status changes to `Succeeded` and `Up to date`. |
| 239 | +- For additional information, see the Red Hat OpenShift Container Platform Documentation `upgrade guide`_. |
| 240 | + |
| 241 | + |
| 242 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 243 | +Upgrade Using OpenShift OC CLI |
| 244 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 245 | + |
| 246 | +#. Check the current subscription status to see if an upgrade is available: |
| 247 | + |
| 248 | + .. code-block:: bash |
| 249 | +
|
| 250 | + oc get subscription nvidia-network-operator -n nvidia-network-operator -o yaml |
| 251 | +
|
| 252 | + Look for the following fields in the output: |
| 253 | + |
| 254 | + - `status.state`: Should show `UpgradePending` if an upgrade is available |
| 255 | + - `status.installedCSV`: Shows the currently installed version |
| 256 | + - `status.currentCSV`: Shows the available upgrade version |
| 257 | + - `status.installPlanRef.name`: The name of the install plan that requires approval |
| 258 | + |
| 259 | + Example output: |
| 260 | + |
| 261 | + .. code-block:: yaml |
| 262 | +
|
| 263 | + status: |
| 264 | + currentCSV: nvidia-network-operator.v25.7.0 |
| 265 | + installedCSV: nvidia-network-operator.v25.4.0 |
| 266 | + installPlanRef: |
| 267 | + name: install-r4pvj |
| 268 | + state: UpgradePending |
| 269 | +
|
| 270 | +#. List the install plans to identify the pending one: |
| 271 | + |
| 272 | + .. code-block:: bash |
| 273 | +
|
| 274 | + oc get installplan -n nvidia-network-operator |
| 275 | +
|
| 276 | + Example output: |
| 277 | + |
| 278 | + .. code-block:: bash |
| 279 | +
|
| 280 | + NAME CSV APPROVAL APPROVED |
| 281 | + install-lrwp2 nvidia-network-operator.v25.4.0 Manual true |
| 282 | + install-r4pvj nvidia-network-operator.v25.7.0 Manual false |
| 283 | +
|
| 284 | +#. Review the install plan details before approving: |
| 285 | + |
| 286 | + .. code-block:: bash |
| 287 | +
|
| 288 | + oc get installplan <install-plan-name> -n nvidia-network-operator -o yaml |
| 289 | +
|
| 290 | + Replace `<install-plan-name>` with the name from the previous step (e.g., `install-r4pvj`). |
| 291 | + |
| 292 | +#. Approve the install plan to proceed with the upgrade: |
| 293 | + |
| 294 | + .. code-block:: bash |
| 295 | +
|
| 296 | + oc patch installplan <install-plan-name> -n nvidia-network-operator \ |
| 297 | + --type merge --patch '{"spec":{"approved":true}}' |
| 298 | +
|
| 299 | +#. Monitor the upgrade progress by checking the ClusterServiceVersion: |
| 300 | + |
| 301 | + .. code-block:: bash |
| 302 | +
|
| 303 | + oc get csv -n nvidia-network-operator |
| 304 | +
|
| 305 | + Wait until the new version shows `PHASE: Succeeded`: |
| 306 | + |
| 307 | + .. code-block:: bash |
| 308 | +
|
| 309 | + NAME DISPLAY VERSION REPLACES PHASE |
| 310 | + nvidia-network-operator.v25.7.0 NVIDIA Network Operator 25.7.0 nvidia-network-operator.v25.4.0 Succeeded |
| 311 | +
|
| 312 | +#. Verify the operator pods are running with the new version: |
| 313 | + |
| 314 | + .. code-block:: bash |
| 315 | +
|
| 316 | + oc get pods -n nvidia-network-operator |
| 317 | +
|
| 318 | + Example output: |
| 319 | + |
| 320 | + .. code-block:: bash |
| 321 | +
|
| 322 | + NAME READY STATUS RESTARTS AGE |
| 323 | + nvidia-network-operator-controller-manager-8f8ccf45c-zgfsq 1/1 Running 0 2m |
| 324 | +
|
| 325 | +.. note:: |
| 326 | + After the upgrade is complete, remember to update the NicClusterPolicy components to match the new operator version if needed. |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
213 | 331 | --------------------------------------------------------------------------------- |
214 | 332 | Using Network Operator to Create NicClusterPolicy in OpenShift Container Platform |
215 | 333 | --------------------------------------------------------------------------------- |
|
0 commit comments