Apply a Patch
This section describes the general process to apply a patch to CPS.
Patches must be applied during a maintenance window. This section includes instructions for stopping all CPS components before applying the patch and restarting the components after the patch has been applied.
Note |
Only one patch can be applied to CPS at a time. If you have already applied a patch, you must Undo and then Remove the existing patch before applying the new patch. Refer to Undo a Patch and Remove a Patch for more information. To determine if a patch is currently applied to the system refer to List Applied Patches. |
Procedure
Step 1 |
Run patch -u and patch -r to remove any applied patches from the Cluster Manager before proceeding. For more information, refer to Undo a Patch and Remove a Patch. |
Step 2 |
Download the latest patch file from a location provided by your Cisco representative to the Cluster Manager VM. |
Step 3 |
Log in to the Cluster Manager as a root user. |
Step 4 |
Download the patch file to the Cluster Manager VM. For example:
where,
|
Step 5 |
Run the patch -a command to apply the patch:
where
For example:
|
Step 6 |
Run the following command to restore the Policy Builder configurations.
|
Step 7 |
Run build_all.sh script to create updated CPS packages. This builds updated VM images on the Cluster Manager with the new patch applied.
|
Step 8 |
Update the VMs with the new software using reinit.sh script. This triggers each CPS VM to download and install the updated VM images from the Cluster Manager:
|
Step 9 |
Refer to section Rolling Restart of CPS VMs QNS Process (Odd Sides) and Rolling Restart of CPS VMs QNS Process (Even Sides) for further steps. |
Step 10 |
Run about.sh to verify that the component is updated:
|
What to do next
After applying a patch in HA deployment, run the following command from Cluster Manager:
puppet
apply --logdest=/var/log/cluman/puppet-custom-run.log
--modulepath=/opt/cluman/puppet/modules --config=/opt/cluman/puppet/puppet.conf
/opt/cluman/puppet/nodes/node_repo.pp
Note |
Manually enter
|
After applying the
puppet
apply
command, run the following command from Cluster Manager to
update the
/etc/httpd/conf/httpd.conf file on all VMs:
/var/qps/install/current/scripts/modules/update_httpd_conf.py
Rolling Restart of CPS VMs QNS Process (Odd Sides)
Important |
The commands mentioned in the steps must be entered manually. |
Procedure
Step 1 |
Stop Policy Server (qns) process:
|
Step 2 |
Verify whether the Policy Server (qns) process has stopped:
|
Step 3 |
Start Policy Server (qns) process:
|
Step 4 |
Verify that the Policy Server (qns) process has started:
|
Step 5 |
Verify the CPS
health status using the
|
Rolling Restart of CPS VMs QNS Process (Even Sides)
Important |
The commands mentioned in the steps must be entered manually. |
Procedure
Step 1 |
Stop Policy Server (qns) process:
|
Step 2 |
Verify whether the Policy Server (qns) process has stopped:
|
Step 3 |
Start Policy Server (qns) process:
|
Step 4 |
Verify that the Policy Server (qns) process has started:
|
Step 5 |
Verify the CPS
health status using the
|