7 Validate the Upgrade
Validate the upgrade from Oracle CNE Release 1 to Release 2 succeeded, and that all nodes in the Kubernetes cluster are running the Release 2 OS.
- List the nodes in the cluster.
List the nodes in the Kubernetes cluster to ensure all expected nodes are listed.
kubectl get nodes
Confirm each node
STATUS
is listed asReady
. - Show information about the cluster.
Use the
ocne cluster info
command to display information about the cluster. The syntax is:ocne cluster info
[{-N|--nodes}] nodename, ... [{-s|--skip-nodes }]For more information on the syntax options, see Oracle Cloud Native Environment: CLI.
For example:
ocne cluster info
- Validate the cluster information.
All nodes in the cluster are running the Release 2 image if the output of the
ocne cluster info
command looks similar to:... Node: ocne-control-plane-1 Registry and tag for ostree patch images: registry: container-registry.oracle.com/olcne/ock-ostree tag: 1.29 transport: ostree-unverified-registry Ostree deployments: ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.1 (staged) * ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.0 Node: ocne-control-plane-2 Registry and tag for ostree patch images: registry: container-registry.oracle.com/olcne/ock-ostree tag: 1.29 transport: ostree-unverified-registry Ostree deployments: ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.1 (staged) * ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.0 ...
If any of the nodes aren't running the Release 2 image, the output doesn't include the registry and OSTree information, for example:
... Node: ocne-control-plane-1 Registry and tag for ostree patch images: registry: container-registry.oracle.com/olcne/ock-ostree tag: 1.29 transport: ostree-unverified-registry Ostree deployments: ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.1 (staged) * ock 5d6e86d05fa0b9390c748a0a19288ca32bwer1eac42fef1c048050ce03ffb5ff9.0 Node: ocne-control-plane-2 Registry and tag for ostree patch images: Ostree deployments: ...
- Verify the list of available applications.
Use the
ocne catalog search
command to see the list of applications available in the Oracle catalog. The syntax is:ocne catalog search
[{-N|--name} name] [{-p|--pattern} pattern]For more information on the syntax options, see Oracle Cloud Native Environment: CLI.
For example, to list all the applications available in the Oracle catalog:
ocne catalog search
Ensure all expected applications are available. Verify all Release 1 modules are listed as applications.
- Verify the list of installed applications.
Use the
ocne application list
command to see the list of applications installed in the cluster. The syntax is:ocne application {list|ls}
[{-A|--all}] [{-n|--namespace} namespace]For more information on the syntax options, see Oracle Cloud Native Environment: CLI.
For example, to list all the applications installed in the cluster:
ocne application list --all
Ensure all expected installed applications are listed.